|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netxms.client.datacollection.Threshold
public class Threshold
Represents data collection item's threshold
| Field Summary | |
|---|---|
static int |
F_AVERAGE
|
static int |
F_DEVIATION
|
static int |
F_DIFF
|
static int |
F_ERROR
|
static int |
F_LAST
|
static int |
F_SUM
|
static int |
OP_EQ
|
static int |
OP_GT
|
static int |
OP_GT_EQ
|
static int |
OP_LE
|
static int |
OP_LE_EQ
|
static int |
OP_LIKE
|
static int |
OP_NE
|
static int |
OP_NOTLIKE
|
| Constructor Summary | |
|---|---|
Threshold()
Create new threshold object |
|
Threshold(NXCPMessage msg,
long baseId)
Create DCI threshold object from NXCP message |
|
Threshold(Threshold src)
Copy constructor |
|
| Method Summary | |
|---|---|
protected void |
fillMessage(NXCPMessage msg,
long baseId)
Fill NXCP message with threshold's data. |
int |
getArg1()
|
int |
getArg2()
|
int |
getCurrentSeverity()
|
int |
getFireEvent()
|
int |
getFunction()
|
long |
getId()
|
java.util.Date |
getLastEventTimestamp()
|
int |
getOperation()
|
int |
getRearmEvent()
|
int |
getRepeatInterval()
|
java.lang.String |
getValue()
|
boolean |
isActive()
Returns true if threshold is currently active (it's condition was evaluated to true at last poll). |
void |
setArg1(int arg1)
|
void |
setArg2(int arg2)
|
void |
setFireEvent(int fireEvent)
|
void |
setFunction(int function)
|
void |
setOperation(int operation)
|
void |
setRearmEvent(int rearmEvent)
|
void |
setRepeatInterval(int repeatInterval)
|
void |
setValue(java.lang.String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int F_LAST
public static final int F_AVERAGE
public static final int F_DEVIATION
public static final int F_DIFF
public static final int F_ERROR
public static final int F_SUM
public static final int OP_LE
public static final int OP_LE_EQ
public static final int OP_EQ
public static final int OP_GT_EQ
public static final int OP_GT
public static final int OP_NE
public static final int OP_LIKE
public static final int OP_NOTLIKE
| Constructor Detail |
|---|
public Threshold(NXCPMessage msg,
long baseId)
msg - NXCP messagebaseId - Base variable ID for this threshold in messagepublic Threshold()
public Threshold(Threshold src)
src - source object| Method Detail |
|---|
protected void fillMessage(NXCPMessage msg,
long baseId)
msg - NXCP messagebaseId - Base variable identifierpublic int getFireEvent()
public void setFireEvent(int fireEvent)
fireEvent - the fireEvent to setpublic int getRearmEvent()
public void setRearmEvent(int rearmEvent)
rearmEvent - the rearmEvent to setpublic int getArg1()
public void setArg1(int arg1)
arg1 - the arg1 to setpublic int getArg2()
public void setArg2(int arg2)
arg2 - the arg2 to setpublic int getFunction()
public void setFunction(int function)
function - the function to setpublic int getOperation()
public void setOperation(int operation)
operation - the operation to setpublic int getRepeatInterval()
public void setRepeatInterval(int repeatInterval)
repeatInterval - the repeatInterval to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - the value to setpublic long getId()
public boolean isActive()
public int getCurrentSeverity()
public java.util.Date getLastEventTimestamp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||