public class RunRemoteQuery extends FSMActivity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPENAME |
Constructor and Description |
---|
RunRemoteQuery(HyperGraphPeer thisPeer,
HGQueryCondition expression,
boolean deref,
int limit,
HGPeerIdentity target) |
RunRemoteQuery(HyperGraphPeer thisPeer,
java.util.UUID id) |
Modifier and Type | Method and Description |
---|---|
HGQueryCondition |
getExpression() |
int |
getLimit() |
<T> java.util.List<T> |
getResult() |
HGPeerIdentity |
getTarget() |
java.lang.String |
getType()
Return the type name of this activity.
|
void |
initiate()
Empty method - override to implement activity initiation.
|
boolean |
isDeref() |
WorkflowStateConstant |
onQuery(Json msg) |
WorkflowStateConstant |
onResponse(Json msg) |
void |
setDeref(boolean deref) |
void |
setExpression(HGQueryCondition expression) |
void |
setLimit(int limit) |
<T> void |
setResult(java.util.List<T> result) |
void |
setTarget(HGPeerIdentity target) |
handleMessage, onPeerFailure, onPeerNotUnderstand
public static final java.lang.String TYPENAME
public RunRemoteQuery(HyperGraphPeer thisPeer, java.util.UUID id)
public RunRemoteQuery(HyperGraphPeer thisPeer, HGQueryCondition expression, boolean deref, int limit, HGPeerIdentity target)
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.
public void initiate()
FSMActivity
Empty method - override to implement activity initiation.
initiate
in class FSMActivity
public WorkflowStateConstant onQuery(Json msg)
public WorkflowStateConstant onResponse(Json msg)
public HGQueryCondition getExpression()
public void setExpression(HGQueryCondition expression)
public HGPeerIdentity getTarget()
public void setTarget(HGPeerIdentity target)
public boolean isDeref()
public void setDeref(boolean deref)
public int getLimit()
public void setLimit(int limit)
public <T> java.util.List<T> getResult()
public <T> void setResult(java.util.List<T> result)