|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--solar.service.dan.GraphNode
|
+--solar.service.dan.Source
|
+--solar.test.ClockSource
A source periodically publishes events containing current timestamp.
| Field Summary | |
protected int |
_sleep
|
| Fields inherited from class solar.service.dan.GraphNode |
_gid |
| Fields inherited from interface solar.service.dan.DanConstants |
DAN_INPORT, DAN_OUTPORT |
| Constructor Summary | |
ClockSource(int sleep)
|
|
| Method Summary | |
java.lang.Object |
handleQuery(Request query)
Handle the query being actively pulled by downstream operators. |
static void |
main(java.lang.String[] args)
Start the clock source and advertise a name for it. |
void |
run()
The execution body of this source. |
| Methods inherited from class solar.service.dan.Source |
getInputPorts, handleEvent |
| Methods inherited from class solar.service.dan.GraphNode |
getId, getOutputPorts, handleEvent, handleQuery, init, init, publish, publish, setId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int _sleep
| Constructor Detail |
public ClockSource(int sleep)
| Method Detail |
public void run()
throws java.lang.Exception
Source
run in class Sourcejava.lang.Exception
public java.lang.Object handleQuery(Request query)
throws java.lang.Exception
GraphNode
handleQuery in class GraphNodejava.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
-host tahoe -port 5470 -name "[source=clock]"
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||