public class RemoteQueryExecution<T> extends FSMActivity
Modifier and Type | Class and Description |
---|---|
static class |
RemoteQueryExecution.IterateActivity<E> |
Modifier and Type | Field and Description |
---|---|
static WorkflowStateConstant |
ResultSetOpen |
static java.lang.String |
TYPENAME |
Constructor and Description |
---|
RemoteQueryExecution(HyperGraphPeer thisPeer,
HGQueryCondition expression,
HGPeerIdentity target) |
RemoteQueryExecution(HyperGraphPeer thisPeer,
java.util.UUID id) |
Modifier and Type | Method and Description |
---|---|
HGSearchResult<T> |
getSearchResult() |
java.lang.String |
getType()
Return the type name of this activity.
|
void |
initiate()
Empty method - override to implement activity initiation.
|
WorkflowStateConstant |
onClose(Json msg) |
WorkflowStateConstant |
onClosed(Json msg) |
WorkflowStateConstant |
onQuery(Json msg) |
WorkflowStateConstant |
onQueryPerformed(Json msg) |
handleMessage, onPeerFailure, onPeerNotUnderstand
public static final java.lang.String TYPENAME
public static final WorkflowStateConstant ResultSetOpen
public RemoteQueryExecution(HyperGraphPeer thisPeer, java.util.UUID id)
public RemoteQueryExecution(HyperGraphPeer thisPeer, HGQueryCondition expression, HGPeerIdentity target)
public void initiate()
FSMActivity
Empty method - override to implement activity initiation.
initiate
in class FSMActivity
public WorkflowStateConstant onQuery(Json msg) throws java.lang.Throwable
java.lang.Throwable
public WorkflowStateConstant onQueryPerformed(Json msg) throws java.lang.Throwable
java.lang.Throwable
public WorkflowStateConstant onClose(Json msg) throws java.lang.Throwable
java.lang.Throwable
public WorkflowStateConstant onClosed(Json msg)
public HGSearchResult<T> getSearchResult()
public java.lang.String getType()
Activity
Return the type name of this activity. By the default to fully-qualified class name is returned. This method can be overridden by sub-classes to provide a short and/or more human-readable type name.