org.hypergraphdb.peer.workflow
Class QueryTaskClient

java.lang.Object
  extended by org.hypergraphdb.peer.workflow.Activity
      extended by org.hypergraphdb.peer.workflow.QueryTaskClient

public class QueryTaskClient
extends Activity


Constructor Summary
QueryTaskClient(HyperGraphPeer thisPeer, HyperGraph tempGraph)
           
QueryTaskClient(HyperGraphPeer thisPeer, HyperGraph tempGraph, java.util.Iterator<java.lang.Object> targets, HGHandle handle)
           
QueryTaskClient(HyperGraphPeer thisPeer, HyperGraph tempGraph, java.util.Iterator<java.lang.Object> targets, HGQueryCondition cond, boolean getObject)
           
QueryTaskClient(HyperGraphPeer thisPeer, HyperGraph tempGraph, PeerFilterEvaluator evaluator, HGHandle handle)
           
QueryTaskClient(HyperGraphPeer thisPeer, HyperGraph tempGraph, PeerFilterEvaluator evaluator, HGQueryCondition cond, boolean getObject)
           
 
Method Summary
 java.util.ArrayList<java.lang.Object> getResult()
           
 void handleMessage(Message msg)
           Handle an incoming that was identified as belonging to this activity.
 void initiate()
           Called by the framework to initiate a new activity.
 void setResult(java.util.ArrayList<java.lang.Object> result)
           
 
Methods inherited from class org.hypergraphdb.peer.workflow.Activity
getFuture, getId, getState, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryTaskClient

public QueryTaskClient(HyperGraphPeer thisPeer,
                       HyperGraph tempGraph)

QueryTaskClient

public QueryTaskClient(HyperGraphPeer thisPeer,
                       HyperGraph tempGraph,
                       PeerFilterEvaluator evaluator,
                       HGQueryCondition cond,
                       boolean getObject)

QueryTaskClient

public QueryTaskClient(HyperGraphPeer thisPeer,
                       HyperGraph tempGraph,
                       java.util.Iterator<java.lang.Object> targets,
                       HGQueryCondition cond,
                       boolean getObject)

QueryTaskClient

public QueryTaskClient(HyperGraphPeer thisPeer,
                       HyperGraph tempGraph,
                       PeerFilterEvaluator evaluator,
                       HGHandle handle)

QueryTaskClient

public QueryTaskClient(HyperGraphPeer thisPeer,
                       HyperGraph tempGraph,
                       java.util.Iterator<java.lang.Object> targets,
                       HGHandle handle)
Method Detail

initiate

public void initiate()
Description copied from class: Activity

Called by the framework to initiate a new activity. This method is only invoked at the peer initiating the activity. Once an activity has been initiated, its state changes to Started.

Specified by:
initiate in class Activity

handleMessage

public void handleMessage(Message msg)
Description copied from class: Activity

Handle an incoming that was identified as belonging to this activity.

Specified by:
handleMessage in class Activity
Parameters:
msg - The full message.

getResult

public java.util.ArrayList<java.lang.Object> getResult()

setResult

public void setResult(java.util.ArrayList<java.lang.Object> result)