com.ace.moab.api.triggers
Class TriggerThreshold
java.lang.Object
com.ace.moab.api.triggers.TriggerThreshold
public class TriggerThreshold
- extends java.lang.Object
This class specifies the threshold used to
determine if a trigger attached to an object
should be fired. A metric type, comparator,
and value describe the threshold.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TriggerThreshold
public TriggerThreshold()
getMetric
public TriggerThresholdMetric getMetric()
setMetric
public void setMetric(TriggerThresholdMetric metric)
getMetricName
public java.lang.String getMetricName()
setMetricName
public void setMetricName(java.lang.String metricName)
getOperator
public com.moab.api.util.ComparisonOperator getOperator()
setOperator
public void setOperator(com.moab.api.util.ComparisonOperator operator)
getValue
public double getValue()
setValue
public void setValue(double value)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
parseString
public static TriggerThreshold parseString(java.lang.String string)
Parses a string and converts it into a TriggerThreshold object.
If the String is unrecognizable, null
is returned.
An example of the correct syntax to be parsed is "GMetric[matlab] > 1.10".
- Parameters:
string
- the string to be parsed.
- Returns:
- the corresponding TriggerThreshold object.
Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.