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