solar.service.dan
Class ProxyOperator

java.lang.Object
  |
  +--solar.service.dan.GraphNode
        |
        +--solar.service.dan.Filter
              |
              +--solar.service.dan.Operator
                    |
                    +--solar.service.dan.ProxyOperator
All Implemented Interfaces:
DanConstants, Identifiable

public class ProxyOperator
extends Operator

A proxy operator deligates the duty to its assgined event handler.

Version:
$Id: ProxyOperator.java,v 1.1 2003/09/19 00:38:30 glchen Exp $
Author:
Guanling Chen

Field Summary
protected  EventHandler _handler
           
 
Fields inherited from class solar.service.dan.GraphNode
_gid
 
Fields inherited from interface solar.service.dan.DanConstants
DAN_INPORT, DAN_OUTPORT
 
Constructor Summary
ProxyOperator(EventHandler handler)
           
 
Method Summary
 void handleEvent(Event evt)
          Handle the event being actively pushed/published to this operator.
 java.lang.Object handleQuery(Request query)
          Handle the query being actively pulled by downstream operators.
 
Methods inherited from class solar.service.dan.GraphNode
getId, getInputPorts, 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

_handler

protected EventHandler _handler
Constructor Detail

ProxyOperator

public ProxyOperator(EventHandler handler)
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

handleQuery

public java.lang.Object handleQuery(Request query)
                             throws java.lang.Exception
Description copied from class: GraphNode
Handle the query being actively pulled by downstream operators.

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