public class ConsequenceAction extends Action
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CNAME |
| Constructor and Description |
|---|
ConsequenceAction(java.lang.String microAgentName,
COM.TIBCO.hawk.talon.MethodInvocation mi)
Constructs a ConsequenceAction with default values for
the perform action policy (PerformOnceOnly) and escalation period (0).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a copy of this object
|
boolean |
equals(java.lang.Object obj)
Compares two ConsequenceActions for equality.
|
int |
getEscalationTime()
Returns the escalation time of this action.
|
PerformActionPolicy |
getPerformActionPolicy()
Returns the perform action policy.
|
void |
setEscalationTime(int sec)
Sets the escalation time of this action.
|
void |
setPerformActionPolicy(PerformActionPolicy policy)
Sets the perform action policy.
|
java.lang.String |
toString()
Returns string representation of this action.
|
getMethodInvocation, getMicroAgentName, getProperties, setMethodInvocation, setMicroAgentName, setPropertiesgetName, getSchedule, setName, setSchedulepublic ConsequenceAction(java.lang.String microAgentName,
COM.TIBCO.hawk.talon.MethodInvocation mi)
throws java.lang.IllegalArgumentException
microAgentName - microagent name for this action, must not be null or empty stringmi - method invocation for this actionjava.lang.IllegalArgumentException - if microagent name is null or empty stringjava.lang.IllegalArgumentException - if method invocation is nullpublic int getEscalationTime()
public void setEscalationTime(int sec)
sec - the escalation time in seconds.java.lang.IllegalArgumentException - if time is negative.public void setPerformActionPolicy(PerformActionPolicy policy)
java.lang.IllegalArgumentException - of the perform action policy is
not one of the supported policies.public PerformActionPolicy getPerformActionPolicy()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
public java.lang.Object clone()
clone in class RulebaseElementCopyright © 2000-2021 TIBCO Inc. All Rights Reserved.