org.netxms.client.datacollection
Class DciValue

java.lang.Object
  extended by org.netxms.client.datacollection.DciValue
Direct Known Subclasses:
SimpleDciValue, TableDciValue

public abstract class DciValue
extends java.lang.Object

DCI value


Constructor Summary
protected DciValue(long nodeId, NXCPMessage msg, long base)
          Constructor for creating DciValue from NXCP message
 
Method Summary
static DciValue createFromMessage(long nodeId, NXCPMessage msg, long base)
          Factory method to create correct DciValue subclass from NXCP message.
 Threshold getActiveThreshold()
           
 int getDataType()
           
 int getDcObjectType()
           
 java.lang.String getDescription()
           
 int getErrorCount()
           
 long getId()
           
 java.lang.String getName()
           
 long getNodeId()
           
 int getSource()
           
 int getStatus()
           
 long getTemplateDciId()
           
 java.util.Date getTimestamp()
           
 java.lang.String getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DciValue

protected DciValue(long nodeId,
                   NXCPMessage msg,
                   long base)
Constructor for creating DciValue from NXCP message

Parameters:
nodeId - owning node ID
msg - NXCP message
base - Base variable ID for value object
Method Detail

createFromMessage

public static DciValue createFromMessage(long nodeId,
                                         NXCPMessage msg,
                                         long base)
Factory method to create correct DciValue subclass from NXCP message.

Parameters:
nodeId - owning node ID
msg - NXCP message
base - Base variable ID for value object
Returns:
DciValue object

getId

public long getId()
Returns:
the id

getName

public java.lang.String getName()
Returns:
the name

getDescription

public java.lang.String getDescription()
Returns:
the description

getValue

public java.lang.String getValue()
Returns:
the value

getSource

public int getSource()
Returns:
the source

getDataType

public int getDataType()
Returns:
the dataType

getStatus

public int getStatus()
Returns:
the status

getTimestamp

public java.util.Date getTimestamp()
Returns:
the timestamp

getNodeId

public long getNodeId()
Returns:
the nodeId

getActiveThreshold

public Threshold getActiveThreshold()
Returns:
the activeThreshold

getDcObjectType

public int getDcObjectType()
Returns:
the dcObjectType

getErrorCount

public int getErrorCount()
Returns:
the errorCount

getTemplateDciId

public final long getTemplateDciId()
Returns:
the templateDciId


Copyright © 2013. All Rights Reserved.