Package org.netxms.client.datacollection
Class TableThreshold
java.lang.Object
org.netxms.client.datacollection.TableThreshold
Threshold definition for table DCI
-
Constructor Summary
ModifierConstructorDescriptionCreate new empty thresholdprotected
TableThreshold
(NXCPMessage msg, long baseId) Create from NXCP messageCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionDuplicate threshold for later use (do not copy ID for duplicated threshold)protected long
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP message with threshold dataint
Get activation event codeGet threshold condition as textint
Get deactivation event codelong
getId()
long
Get next available field IDint
Get sample countvoid
setActivationEvent
(int activationEvent) Set activation event codevoid
setConditions
(List<List<TableCondition>> conditions) void
setDeactivationEvent
(int deactivationEvent) Set deactivation event codevoid
setSampleCount
(int sampleCount) Set sample count
-
Constructor Details
-
TableThreshold
public TableThreshold()Create new empty threshold -
TableThreshold
Copy constructor- Parameters:
src
- source object
-
TableThreshold
Create from NXCP message- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
-
Method Details
-
fillMessage
Fill NXCP message with threshold data- Parameters:
msg
- NXCP messagebaseId
- base field ID- Returns:
- next free field ID
-
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
- Returns:
- the conditions
-
setConditions
- Parameters:
conditions
- the conditions to set
-
getId
public long getId()- Returns:
- the id
-
duplicate
Duplicate threshold for later use (do not copy ID for duplicated threshold)- Returns:
- threshold copy
-