public interface Action
Modifier and Type | Method and Description |
---|---|
void |
addFunctionParamVal(FunctionDescriptor.FunctionParamValue val)
When the action class is initialized by the framework, this method is used to set the action function parameter.
|
ActionDef |
getActionDef()
Gets the associated action definition
|
ActionHandlerContext |
getActionHandlerContext()
Gets the associated context handler.
|
java.lang.String |
getAlertDetails()
Gets the alert details such as other supplementary information such as email ids, etc.
|
java.lang.String |
getAlertLevel()
Gets the alert level from the underlying ActionDef
|
java.lang.String |
getAlertText()
Gets the associated Alert Text.
|
java.lang.String |
getAlertType()
Gets the type of the action, if any.
|
FunctionDescriptor.FunctionParamValue |
getFunctionParamValue(java.lang.String paramName)
Returns the values for the given parameter
|
java.util.Collection<FunctionDescriptor.FunctionParamValue> |
getFunctionParamValues()
Returns all the function parameter values.
|
java.lang.String |
getName()
Gets the name of the action, if any.
|
boolean |
isSetAction()
Returns true if this is a Set action, false if it is a Clear action
|
void |
performAction(Rule rule,
MetricNodeEvent node)
Perform the action.
|
void |
setActionDef(ActionDef actionDef)
Set the action definition
|
void |
setSetAction(boolean isSetAction)
Set to true if this is a Set action
|
ActionHandlerContext getActionHandlerContext()
void performAction(Rule rule, MetricNodeEvent node) throws java.lang.Exception
rule
- the rule that triggered this action.node
- the node event that triggered this action.java.lang.Exception
void addFunctionParamVal(FunctionDescriptor.FunctionParamValue val)
java.util.Collection<FunctionDescriptor.FunctionParamValue> getFunctionParamValues()
FunctionDescriptor.FunctionParamValue getFunctionParamValue(java.lang.String paramName)
paramName
- the parameter to use.void setActionDef(ActionDef actionDef)
actionDef
- the action definition to associate.ActionDef getActionDef()
java.lang.String getName()
java.lang.String getAlertType()
boolean isSetAction()
void setSetAction(boolean isSetAction)
isSetAction
- java.lang.String getAlertText()
java.lang.String getAlertLevel()
java.lang.String getAlertDetails()
Copyright © 2000-2014 TIBCO Inc. All Rights Reserved.