jpl.mipl.mdms.FileService.spider.api
Class SpiderFei

java.lang.Object
  extended by jpl.mipl.mdms.FileService.spider.api.SpiderFei

public class SpiderFei
extends java.lang.Object


Constructor Summary
SpiderFei(java.lang.String user, java.lang.String passwd, java.lang.String fileType, java.lang.String localPath, boolean autoDelete)
          Constructor.
SpiderFei(java.lang.String user, java.lang.String passwd, java.lang.String srvGrpName, java.lang.String fileType, java.lang.String localPath, boolean autoDelete)
          Constructor.
 
Method Summary
 void addResultToDataParts(Result r)
          Adds an FEI Result object to the Spider DataParts list.
 void addResultToDataSink(Result r)
          adds an FEI Result object to the Spider DataSink list.
 void addResultToDataSource(Result r)
          Adds an FEI Result object to the Spider DataSource list.
 void halt()
          Deprecated. This does not guarantee that all result had been pulled before closing the FEI connection.
 void publish(java.lang.String fn)
          Transfer the specied file to FEI.
 void setDataParts(ProductAvailableType prodAvail)
          Writes the DataParts list to the specified ProductAvailable object
 void setDataParts(ProductAvailableType prodAvail, java.util.ArrayList results)
          Writes the DataParts of the specified ProductAvailable object according to the specified List of FEI Results objects.
 void setDataSink(ProductAvailableType prodAvail)
          Writes the DataSink list to the specified ProductAvailable object
 void setDataSink(ProductAvailableType prodAvail, java.util.ArrayList results)
          Writes the DataSink of the specified ProductAvailable object according to the specified List of FEI Results objects.
 void setDataSource(ProcessInitType procInit)
          Writes the DataSource list to the specified ProcessInit object
 void setDataSource(ProcessInitType procInit, java.util.ArrayList results)
          Writes the DataSource of the specified ProcessInit object according to the specified List of FEI Results objects.
 void setDataSource(ProductAvailableType prodAvail)
          Writes the DataSource list to the specified ProductAvailable object
 void setDataSource(ProductAvailableType prodAvail, java.util.ArrayList results)
          Writes the DataSource of the specified ProductAvailable object according to the specified List of FEI Results objects.
 void startResultsManager()
          Initialize and start the Results Collection Thread.
 void stopResultsManager()
          Terminate the Results Collection Thread.
 void terminate()
          Close the FEI object nicely.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpiderFei

public SpiderFei(java.lang.String user,
                 java.lang.String passwd,
                 java.lang.String fileType,
                 java.lang.String localPath,
                 boolean autoDelete)
Constructor. Initializes stuff, and starts up a thread to collect FEI results.

Parameters:
user - FEI username
passwd - FEI password
fileType - FEI filetype to talk to
localPath - PATH to where the message files are stored on disk
autoDelete - Turns ON/OFF clean up of message file after successful trasferr to FEI

SpiderFei

public SpiderFei(java.lang.String user,
                 java.lang.String passwd,
                 java.lang.String srvGrpName,
                 java.lang.String fileType,
                 java.lang.String localPath,
                 boolean autoDelete)
Constructor. Initializes stuff, and starts up a thread to collect FEI results.

Parameters:
user - FEI username
passwd - FEI password
srvGrpName - FEI server group name, which includes the specified filetype
fileType - FEI filetype to talk to
localPath - PATH to where the message files are stored on disk
autoDelete - Turns ON/OFF clean up of message file after successful trasferr to FEI
Method Detail

startResultsManager

public void startResultsManager()
Initialize and start the Results Collection Thread.


stopResultsManager

public void stopResultsManager()
Terminate the Results Collection Thread.


addResultToDataSource

public void addResultToDataSource(Result r)
Adds an FEI Result object to the Spider DataSource list. The List will be written out and cleaned on the call to the "publish" method.

Parameters:
r - FEI Result object

addResultToDataParts

public void addResultToDataParts(Result r)
Adds an FEI Result object to the Spider DataParts list. The List will be written out and cleaned on the call to the "publish" method.

Parameters:
r - FEI Result object

addResultToDataSink

public void addResultToDataSink(Result r)
adds an FEI Result object to the Spider DataSink list. The List will be written out and cleaned on the call to the "publish" method.

Parameters:
r - FEI Result object

setDataSource

public void setDataSource(ProcessInitType procInit)
Writes the DataSource list to the specified ProcessInit object

Parameters:
procInit - Spider XML schema generated ProcessInit object

setDataSource

public void setDataSource(ProductAvailableType prodAvail)
Writes the DataSource list to the specified ProductAvailable object

Parameters:
prodAvail - Spider XML schema generated ProductAvailable object

setDataParts

public void setDataParts(ProductAvailableType prodAvail)
Writes the DataParts list to the specified ProductAvailable object

Parameters:
prodAvail - Spider XML schema generated ProductAvailable object

setDataSink

public void setDataSink(ProductAvailableType prodAvail)
Writes the DataSink list to the specified ProductAvailable object

Parameters:
prodAvail - Spider XML schema generated ProductAvailable object

setDataSource

public void setDataSource(ProcessInitType procInit,
                          java.util.ArrayList results)
Writes the DataSource of the specified ProcessInit object according to the specified List of FEI Results objects.

Parameters:
procInit - spider XML schema generated ProcessInit
results - list of FEI Result objects

setDataSource

public void setDataSource(ProductAvailableType prodAvail,
                          java.util.ArrayList results)
Writes the DataSource of the specified ProductAvailable object according to the specified List of FEI Results objects.

Parameters:
prodAvail - spider XML schema generated ProductAvailable
results - list of FEI Result objects

setDataParts

public void setDataParts(ProductAvailableType prodAvail,
                         java.util.ArrayList results)
Writes the DataParts of the specified ProductAvailable object according to the specified List of FEI Results objects.

Parameters:
prodAvail - spider XML schema generated ProductAvailable
results - list of FEI Result objects

setDataSink

public void setDataSink(ProductAvailableType prodAvail,
                        java.util.ArrayList results)
Writes the DataSink of the specified ProductAvailable object according to the specified List of FEI Results objects.

Parameters:
prodAvail - spider XML schema generated ProductAvailable
results - list of FEI Result objects

publish

public void publish(java.lang.String fn)
Transfer the specied file to FEI.

Parameters:
fn - the filename to be transferred. (no PATH info here)

terminate

public void terminate()
Close the FEI object nicely.


halt

public void halt()
Deprecated. This does not guarantee that all result had been pulled before closing the FEI connection.

Close the FEI object immediatelly.