|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject jpl.mipl.pgs.core.PGS_Stream
Purpose: The stream class.
Copyright 2002, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge.2004. ========================================================================== Modification History : -------------------- Date Who What -------------------------------------------------------------------------- ==========================================================================
Field Summary | |
protected String |
className
|
protected String |
instrument
|
protected Logger |
logger
|
protected String |
mission
|
protected String |
streamId
|
protected PGS_UPF |
upf
|
protected PGS_WorkerObject |
wo
|
protected PGS_WorkerObjectRunner |
wor
|
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Fields inherited from interface jpl.mipl.pgs.core.PGS_PersistentServerBase_IF |
backupFileExtension |
Constructor Summary | |
PGS_Stream(PGS_UPF upf,
PGS_WorkerObjectFactory woFactory,
Properties props)
Constructor. |
Method Summary | |
void |
addFilesToFEI(String fileType,
String[] fileNames,
String comment,
boolean waitForResults)
Adds the given file(s) to the given file type with the given comment. |
int |
addRequest(Hashtable req)
|
String |
getIdentification()
Returns the correct detailed information about the stream which is used in logging and notification. |
Logger |
getLogger()
Returns reference to the logger object. |
PGS_TelemetryDataObject |
getNextDataObject()
For obtaining raw telemetry data. |
Hashtable |
getRequest(int reqId)
|
Hashtable[] |
getRequests()
|
int |
getRequestStatus(int reqId)
|
int |
getStatus()
|
PGS_UPF |
getUPFParser()
Returns reference to an upf parser object. |
boolean |
handleFEIError(PGS_FEIFileAddException fae)
For analyzing the FEI error caused when trying to add a file to FEI file type. |
boolean |
handleFEIError(SessionException se)
For analyzing a session error. |
void |
logMessage(String message)
Logs the given message as INFO message. |
boolean |
okayToContinue()
A false value means processing must be stop at once. |
void |
replaceFilesInFEI(String fileType,
String[] fileNames,
String comment,
boolean waitForResults)
Replace the given file(s) to the given file type with the given comment. |
void |
setActual(PGS_PersistentServerBase_IF pbs)
|
void |
setDataSource(PGS_TelemetryDataSource psb)
Set the data source to be used by this stream. |
boolean |
shutdown(String userID,
String OWHP,
int reason,
String explanation)
|
int |
start()
|
void |
stop(int stopCode,
String stopReason)
Indicates that the processing needs to be stopped immediately. |
void |
stopRequest(int requestId)
|
void |
updateRequest(Hashtable req)
|
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected PGS_WorkerObject wo
protected PGS_UPF upf
protected Logger logger
protected String mission
protected String instrument
protected String streamId
protected final String className
protected PGS_WorkerObjectRunner wor
Constructor Detail |
public PGS_Stream(PGS_UPF upf, PGS_WorkerObjectFactory woFactory, Properties props) throws PGS_MissingParameterException, IllegalArgumentException, PGS_Exception, RemoteException
upf
- The UPF parser to be used for obtaining paramters.woFactory
- The worker object factory to be utilized for
creating worker objects.props
- Contains the following configuration parameters:
PGS_MissingParameterException
- If either the MISSION or
INSTRUMENT keywords are missing from the UPF.
IllegalArgumentException
- If any value specified in the
UPF for use by the stream class (e.g., PGS_LOGGER) is not
usable.
PGS_Exception
- If an exception is caught while create and
initilizing worker object.
RemoteException
for more detail.
Method Detail |
public void setDataSource(PGS_TelemetryDataSource psb)
public int start()
start
in interface PGS_WorkerHelper
public void logMessage(String message)
PGS_WorkerHelper
logMessage
in interface PGS_WorkerHelper
public PGS_TelemetryDataObject getNextDataObject() throws PGS_Exception
getNextDataObject
in interface PGS_WorkerHelper
Any
- exception thrown by the Telemetry Data Source object(s).
PGS_Exception
public void stop(int stopCode, String stopReason)
stop
in interface PGS_WorkerHelper
public boolean okayToContinue()
okayToContinue
in interface PGS_WorkerHelper
public String getIdentification()
getIdentification
in interface PGS_WorkerHelper
public PGS_UPF getUPFParser()
getUPFParser
in interface PGS_WorkerHelper
public Logger getLogger()
getLogger
in interface PGS_WorkerHelper
public boolean handleFEIError(SessionException se)
PGS_FEIErrorHandler
handleFEIError
in interface PGS_FEIErrorHandler
public boolean handleFEIError(PGS_FEIFileAddException fae)
PGS_FEIErrorHandler
handleFEIError
in interface PGS_FEIErrorHandler
public void replaceFilesInFEI(String fileType, String[] fileNames, String comment, boolean waitForResults)
PGS_WorkerHelper
replaceFilesInFEI
in interface PGS_WorkerHelper
public void addFilesToFEI(String fileType, String[] fileNames, String comment, boolean waitForResults)
PGS_WorkerHelper
addFilesToFEI
in interface PGS_WorkerHelper
public int addRequest(Hashtable req) throws RemoteException
addRequest
in interface PGS_PersistentServerBase_IF
RemoteException
public Hashtable getRequest(int reqId) throws RemoteException
getRequest
in interface PGS_PersistentServerBase_IF
RemoteException
public int getRequestStatus(int reqId) throws RemoteException
getRequestStatus
in interface PGS_PersistentServerBase_IF
RemoteException
public Hashtable[] getRequests() throws RemoteException
getRequests
in interface PGS_PersistentServerBase_IF
RemoteException
public void setActual(PGS_PersistentServerBase_IF pbs) throws RemoteException
setActual
in interface PGS_PersistentServerBase_IF
RemoteException
public void updateRequest(Hashtable req) throws RemoteException
updateRequest
in interface PGS_PersistentServerBase_IF
RemoteException
public void stopRequest(int requestId) throws RemoteException
stopRequest
in interface PGS_PersistentServerBase_IF
RemoteException
public int getStatus() throws RemoteException
getStatus
in interface PGS_ServerBase_IF
RemoteException
public boolean shutdown(String userID, String OWHP, int reason, String explanation) throws RemoteException
shutdown
in interface PGS_ServerBase_IF
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |