|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.dan.NodeHandler
The wrapper class of graph nodes through which the resident sources and operators interact with other services of the local Planet.
Field Summary | |
protected GraphNode |
_gnode
|
protected java.util.List |
_inputs
|
protected java.util.List |
_outputs
|
protected boolean |
_pullOnly
|
protected boolean |
_pushOnly
|
protected java.lang.Thread |
_runner
|
Fields inherited from interface solar.service.dan.DanConstants |
DAN_INPORT, DAN_OUTPORT |
Constructor Summary | |
NodeHandler(GraphNode gnode)
|
Method Summary | |
void |
attachInputPipe(Pipe pipe,
InputPort inport)
Attach an input pipe to this data sink. |
void |
attachOutputPipe(Pipe pipe,
OutputPort outport)
Attach an output pipe to this data source at a specific port. |
Pipe[] |
getInputPipes()
Return all the input pipes in an array. |
InputPort[] |
getInputPorts()
Return all the input ports in an array. |
Pipe[] |
getOutputPipes()
Return all the output pipes in an array. |
OutputPort[] |
getOutputPorts()
Return all the output ports in an array. |
void |
publish(Event evt)
Publish an event to all its subscribers. |
void |
publish(Event evt,
java.lang.String outport)
Publish an event to all its subscribers through a specified port. |
java.lang.Object |
pullData(java.lang.Object query,
OutputPort outport)
Pull data from this data source at a specific port. |
void |
pushData(java.lang.Object data,
InputPort inport)
Push data to this data sink at a specific port. |
void |
run()
|
void |
start()
Start this graph node as a thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List _inputs
protected java.util.List _outputs
protected GraphNode _gnode
protected boolean _pullOnly
protected boolean _pushOnly
protected java.lang.Thread _runner
Constructor Detail |
public NodeHandler(GraphNode gnode)
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void attachOutputPipe(Pipe pipe, OutputPort outport) throws FapException
DataSource
attachOutputPipe
in interface DataSource
FapException
public Pipe[] getOutputPipes()
DataSource
getOutputPipes
in interface DataSource
public OutputPort[] getOutputPorts()
DataSource
getOutputPorts
in interface DataSource
public java.lang.Object pullData(java.lang.Object query, OutputPort outport) throws FapException
DataSource
pullData
in interface DataSource
FapException
public void attachInputPipe(Pipe pipe, InputPort inport) throws FapException
DataSink
attachInputPipe
in interface DataSink
FapException
public Pipe[] getInputPipes()
DataSink
getInputPipes
in interface DataSink
public InputPort[] getInputPorts()
DataSink
getInputPorts
in interface DataSink
public void pushData(java.lang.Object data, InputPort inport) throws FapException
DataSink
pushData
in interface DataSink
FapException
public void start()
public void publish(Event evt) throws java.lang.Exception
java.lang.Exception
public void publish(Event evt, java.lang.String outport) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |