solar.test
Class EventPrinter

java.lang.Object
  |
  +--solar.service.dan.GraphNode
        |
        +--solar.service.dan.Application
              |
              +--solar.test.EventPrinter
All Implemented Interfaces:
DanConstants, Identifiable

public class EventPrinter
extends Application

A simple Solar application that make subscriptions to print all receive events.

Version:
$Id: EventPrinter.java,v 1.6 2003/09/26 19:47:19 glchen Exp $
Author:
Guanling Chen

Field Summary
 
Fields inherited from class solar.service.dan.GraphNode
_gid
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Constructor Summary
EventPrinter()
           
 
Method Summary
 void handleEvent(Event evt)
          Handle the event being actively pushed/published to this operator.
static void main(java.lang.String[] args)
          Start the event printer and make subscription.
 
Methods inherited from class solar.service.dan.Application
getOutputPorts, handleQuery
 
Methods inherited from class solar.service.dan.GraphNode
getId, getInputPorts, 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
 

Constructor Detail

EventPrinter

public EventPrinter()
Method Detail

handleEvent

public void handleEvent(Event evt)
                 throws java.lang.Exception
Description copied from class: GraphNode
Handle the event being actively pushed/published to this operator.

Specified by:
handleEvent in class GraphNode
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Start the event printer and make subscription. Command line usage:

-host tahoe -port 5470 -query "[source=clock]"

or:

-host tahoe -port 5470 -subfile graph.xml -root \$root

java.lang.Exception