public abstract class DciValue extends Object
Modifier | Constructor and Description |
---|---|
protected |
DciValue(long nodeId,
org.netxms.base.NXCPMessage msg,
long base)
Constructor for creating DciValue from NXCP message
|
|
DciValue(long id,
String value,
int dataType,
int status)
Constructor for creating DCIValue from last values message
|
Modifier and Type | Method and Description |
---|---|
static DciValue |
createFromMessage(long nodeId,
org.netxms.base.NXCPMessage msg,
long base)
Factory method to create correct DciValue subclass from NXCP message.
|
String |
format(String formatString)
Returns formated DCI value or string with format error and correct type of DCI value;
|
Threshold |
getActiveThreshold() |
int |
getDataType() |
int |
getDcObjectType() |
String |
getDescription() |
int |
getErrorCount() |
long |
getId() |
String |
getName() |
long |
getNodeId() |
int |
getSource() |
int |
getStatus() |
long |
getTemplateDciId() |
Severity |
getThresholdSeverity()
Get severity of active threshold
|
Date |
getTimestamp() |
String |
getValue() |
protected DciValue(long nodeId, org.netxms.base.NXCPMessage msg, long base)
nodeId
- owning node IDmsg
- NXCP messagebase
- Base variable ID for value objectpublic DciValue(long id, String value, int dataType, int status)
id
- value
- dataType
- status
- public static DciValue createFromMessage(long nodeId, org.netxms.base.NXCPMessage msg, long base)
nodeId
- owning node IDmsg
- NXCP messagebase
- Base variable ID for value objectpublic String format(String formatString)
formatString
- the string into which will be placed DCI valuepublic long getId()
public String getName()
public String getDescription()
public String getValue()
public int getSource()
public int getDataType()
public int getStatus()
public Date getTimestamp()
public long getNodeId()
public Threshold getActiveThreshold()
public int getDcObjectType()
public int getErrorCount()
public final long getTemplateDciId()
public Severity getThresholdSeverity()
Copyright © 2016. All rights reserved.