|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ninja.activeproxy.path.Connector
Connector is the base abstract class that other connectors should inherit from. There are only two methods that connectors must implement: createReader() and createWriter().
Field Summary | |
private java.lang.Object |
info
|
private Operator |
operator
|
private java.lang.Object |
pathID
|
Constructor Summary | |
Connector()
Constructs a connector with no operator or path ID specified. |
|
Connector(Operator operator,
java.lang.Object pathID)
Constructs a connector with the specified operator and path ID. |
Method Summary | |
abstract void |
createReader()
Creates a reader for an operator. |
abstract void |
createWriter(java.lang.Object info)
Creates a writer for an operator. |
java.lang.Object |
getCommunicationInfo()
Returns the information object. |
Operator |
getOperator()
Returns the operator for which this connector creates a reader/writer. |
java.lang.Object |
getPathID()
Returns the path ID of the path that will go through the operator. |
void |
setCommunicationInfo(java.lang.Object info)
Sets the information object necessary for the previous operator in the path to setup its writer. |
void |
setOperator(Operator operator)
Sets the operator for which this connector creates a reader/writer. |
void |
setOperatorReader(java.io.InputStream obj)
Sets the reader of the operator. |
void |
setOperatorWriter(java.io.OutputStream obj)
Sets the writer of the operator. |
void |
setPathID(java.lang.Object pathID)
Sets the path ID of the path that will go through the operator. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Operator operator
private java.lang.Object pathID
private java.lang.Object info
Constructor Detail |
public Connector()
public Connector(Operator operator, java.lang.Object pathID)
operator
- operator for which the connector creates a reader/writer.pathID
- path ID for the path that will go through the operator.Method Detail |
public void setOperator(Operator operator)
operator
- operator for which this connector creates a reader/writer.public Operator getOperator()
public void setPathID(java.lang.Object pathID)
pathID
- path ID.public java.lang.Object getPathID()
public void setOperatorReader(java.io.InputStream obj)
obj
- input stream of the operator.public void setOperatorWriter(java.io.OutputStream obj)
obj
- output stream of the operator.public void setCommunicationInfo(java.lang.Object info)
info
- information object.public java.lang.Object getCommunicationInfo()
public abstract void createReader()
public abstract void createWriter(java.lang.Object info)
info
- information object from the next operator in the path.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |