|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for operators.
| Method Summary | |
java.lang.Object |
getCommunicationInfo(java.lang.Object pathID)
Returns an object which the previous operator in the path will use to create a connection with this operator. |
java.lang.String |
getIdentification()
Returns an identification string that will be used to generate a unique path ID; the unique path ID will be generated by using both the source's and destination's identifications. |
java.lang.String |
getOperatorDescription()
Returns an operator description. |
OperatorIF |
getOperatorToNotify(java.lang.Object pathID)
Returns the operator which would be notified in case of path failure. |
java.net.InetAddress |
hostName()
|
boolean |
isPathAlive(java.lang.Object pathID)
Determines if the path specified by the given path ID still runs (there is a thread handling this path) through this operator. |
boolean |
isReaderReady(java.lang.Object pathID)
Determines if the reader for this operator in the path has been set. |
boolean |
isReady(java.lang.Object pathID)
Determines if the reader and writer for this operator in the path have been set. |
boolean |
isWriterReady(java.lang.Object pathID)
Determines if the writer for this operator in the path has been set. |
void |
kill(java.lang.Object pathID)
Tears down the connections established by this operator in the path, cleans up state associated with this path and kills its thread of execution. |
void |
loadInputConnector(java.net.URL inputConnectorURL,
java.lang.String inputConnectorClass,
java.lang.Object pathID)
Loads and instantiates the input connector. |
void |
loadOutputConnector(java.net.URL outputConnectorURL,
java.lang.String outputConnectorClass,
java.lang.Object pathID)
Loads and instantiates the output connector. |
void |
pathFailed(java.lang.Object pathID)
Takes an action when the path fails. |
void |
resume(java.lang.Object pathID)
Resume the thread managing the specified pathID. |
void |
setOperatorToNotify(OperatorIF operatorToNotify,
java.lang.Object pathID)
Sets the operator to notify in case of path failure; used for failure detection while the path is running. |
void |
setupReader(java.lang.Object pathID)
Sets up the reader for this operator in the path with the given ID. |
void |
setupWriter(OperatorIF nextOperator,
java.lang.Object pathID)
Sets up the writer for this operator in the path with the given ID. |
void |
start(java.lang.Object pathID)
Starts a new thread of execution in the operator to service the path identified by path ID. |
void |
suspend(java.lang.Object pathID)
Suspend the thread managing the specified pathID. |
| Method Detail |
public void loadInputConnector(java.net.URL inputConnectorURL,
java.lang.String inputConnectorClass,
java.lang.Object pathID)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.rmi.RemoteException
inputConnectorURL - URL where the input connector can be downloaded from.inputConnectorClass - input connector class.pathID - path ID.
public void loadOutputConnector(java.net.URL outputConnectorURL,
java.lang.String outputConnectorClass,
java.lang.Object pathID)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.rmi.RemoteException
outputConnectorURL - URL where the output connector can be downloaded from.outputConnectorClass - output connector class.pathID - path ID.
public void setupReader(java.lang.Object pathID)
throws InvalidPathIDException,
java.rmi.RemoteException
pathID - path ID.
public void setupWriter(OperatorIF nextOperator,
java.lang.Object pathID)
throws InvalidPathIDException,
java.rmi.RemoteException
pathID - path ID.nextOperator - next operator in the path.
public void setOperatorToNotify(OperatorIF operatorToNotify,
java.lang.Object pathID)
throws java.rmi.RemoteException
operatorToNotify - operator to be notified in case of path failure.pathID - path ID.
public OperatorIF getOperatorToNotify(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - path ID.
public java.lang.Object getCommunicationInfo(java.lang.Object pathID)
throws InvalidPathIDException,
java.rmi.RemoteException
pathID - path ID.
public void pathFailed(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - path ID.
public boolean isPathAlive(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - path ID.
public boolean isReady(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - path ID.
public boolean isReaderReady(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - path ID.
public boolean isWriterReady(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - path ID.
public void start(java.lang.Object pathID)
throws InvalidPathIDException,
java.rmi.RemoteException
pathID - path ID.
public void kill(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - path ID.
public java.lang.String getIdentification()
throws java.rmi.RemoteException
public java.lang.String getOperatorDescription()
throws java.rmi.RemoteException
public java.net.InetAddress hostName()
throws java.rmi.RemoteException
public void suspend(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - The pathID to suspend.
public void resume(java.lang.Object pathID)
throws java.rmi.RemoteException
pathID - The pathID to resume.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||