|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.dan.GraphNode
The interface for all nodes in the graph. There are three types of nodes: sources, operators, and applications.
Field Summary | |
protected Id |
_gid
|
private NodeHandler |
_handler
|
Fields inherited from interface solar.service.dan.DanConstants |
DAN_INPORT, DAN_OUTPORT |
Constructor Summary | |
GraphNode()
|
Method Summary | |
Id |
getId()
Return the ID of this object. |
java.util.List |
getInputPorts()
Return a list of input ports of this node. |
java.util.List |
getOutputPorts()
Return a list of output ports of this node. |
abstract void |
handleEvent(Event evt)
Handle the event being actively pushed/published to this operator. |
void |
handleEvent(Event evt,
java.lang.String inport)
Handle the event coming from the specified input port. |
abstract java.lang.Object |
handleQuery(Request query)
Handle the query being actively pulled by downstream operators. |
java.lang.Object |
handleQuery(Request query,
java.lang.String outport)
Handle the query coming from the specified output port. |
void |
init(NodeHandler handler)
Initialize the source with a handler. |
void |
init(serp.util.Options opts)
Customized initialization derived from graph spec. |
protected void |
publish(Event evt)
|
protected void |
publish(Event evt,
java.lang.String outport)
|
void |
setId(Id gid)
Set the ID of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Id _gid
private NodeHandler _handler
Constructor Detail |
public GraphNode()
Method Detail |
public void setId(Id gid)
Identifiable
setId
in interface Identifiable
public Id getId()
Identifiable
getId
in interface Identifiable
public void init(serp.util.Options opts) throws java.lang.Exception
java.lang.Exception
public void init(NodeHandler handler)
public java.util.List getInputPorts()
public java.util.List getOutputPorts()
public abstract void handleEvent(Event evt) throws java.lang.Exception
java.lang.Exception
public void handleEvent(Event evt, java.lang.String inport) throws java.lang.Exception
java.lang.Exception
public abstract java.lang.Object handleQuery(Request query) throws java.lang.Exception
java.lang.Exception
public java.lang.Object handleQuery(Request query, java.lang.String outport) throws java.lang.Exception
java.lang.Exception
protected final void publish(Event evt) throws java.lang.Exception
java.lang.Exception
protected final 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 |