Package org.netxms.client.datacollection
Class TableThreshold
- java.lang.Object
-
- org.netxms.client.datacollection.TableThreshold
-
public class TableThreshold extends Object
Threshold definition for table DCI
-
-
Constructor Summary
Constructors Modifier Constructor Description TableThreshold()Create new empty thresholdprotectedTableThreshold(org.netxms.base.NXCPMessage msg, long baseId)Create from NXCP messageTableThreshold(TableThreshold src)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longfillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with threshold dataintgetActivationEvent()Get activation event codeStringgetConditionAsText()Get threshold condition as textList<List<TableCondition>>getConditions()intgetDeactivationEvent()Get deactivation event codelonggetId()longgetNextFieldId()Get next available field IDintgetSampleCount()Get sample countvoidsetActivationEvent(int activationEvent)Set activation event codevoidsetConditions(List<List<TableCondition>> conditions)voidsetDeactivationEvent(int deactivationEvent)Set deactivation event codevoidsetSampleCount(int sampleCount)Set sample count
-
-
-
Constructor Detail
-
TableThreshold
public TableThreshold()
Create new empty threshold
-
TableThreshold
public TableThreshold(TableThreshold src)
Copy constructor- Parameters:
src-
-
TableThreshold
protected TableThreshold(org.netxms.base.NXCPMessage msg, long baseId)Create from NXCP message- Parameters:
msg-baseId-
-
-
Method Detail
-
fillMessage
protected long fillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message with threshold data- Parameters:
msg- NXCP messagebaseId- base field ID- Returns:
- next free field ID
-
getConditionAsText
public String getConditionAsText()
Get threshold condition as text- Returns:
- textual representation of threshold condition
-
getNextFieldId
public long getNextFieldId()
Get next available field ID- Returns:
- next available field ID
-
getActivationEvent
public int getActivationEvent()
Get activation event code- Returns:
- activation event code
-
setActivationEvent
public void setActivationEvent(int activationEvent)
Set activation event code- Parameters:
activationEvent- new activation event code
-
getDeactivationEvent
public int getDeactivationEvent()
Get deactivation event code- Returns:
- deactivation event code
-
setDeactivationEvent
public void setDeactivationEvent(int deactivationEvent)
Set deactivation event code- Parameters:
deactivationEvent- new deactivation event code
-
getSampleCount
public int getSampleCount()
Get sample count- Returns:
- sample count
-
setSampleCount
public void setSampleCount(int sampleCount)
Set sample count- Parameters:
sampleCount- new sample count
-
getConditions
public List<List<TableCondition>> getConditions()
- Returns:
- the conditions
-
setConditions
public void setConditions(List<List<TableCondition>> conditions)
- Parameters:
conditions- the conditions to set
-
getId
public long getId()
- Returns:
- the id
-
-