Class DataCollectionItem

java.lang.Object
org.netxms.client.datacollection.DataCollectionObject
org.netxms.client.datacollection.DataCollectionItem

public class DataCollectionItem extends DataCollectionObject
Data Collection Item representation
  • Field Details

  • Constructor Details

    • DataCollectionItem

      public DataCollectionItem(DataCollectionConfiguration owner, NXCPMessage msg)
      Create data collection item object from NXCP message
      Parameters:
      owner - Owning configuration object
      msg - NXCP message
    • DataCollectionItem

      protected DataCollectionItem(DataCollectionConfiguration owner, long nodeId, long id)
      Constructor for new data collection items.
      Parameters:
      owner - Owning configuration object
      nodeId - Owning node ID
      id - Identifier assigned to new item
    • DataCollectionItem

      public DataCollectionItem(DataCollectionConfiguration owner, long id)
      Constructor for new data collection items.
      Parameters:
      owner - Owning configuration object
      id - Identifier assigned to new item
    • DataCollectionItem

      public DataCollectionItem(long nodeId, long id)
      Constructor for new data collection items.
      Parameters:
      nodeId - Owning node ID
      id - Identifier assigned to new item
    • DataCollectionItem

      protected DataCollectionItem()
      Default constructor (intended for deserialization)
    • DataCollectionItem

      protected DataCollectionItem(DataCollectionConfiguration owner, DataCollectionItem src)
      Object copy constructor
      Parameters:
      owner - object owner
      src - object to copy
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg)
      Fill NXCP message with item's data.
      Overrides:
      fillMessage in class DataCollectionObject
      Parameters:
      msg - NXCP message
    • getDataType

      public DataType getDataType()
      Returns:
      the dataType
    • setDataType

      public void setDataType(DataType dataType)
      Parameters:
      dataType - the dataType to set
    • getDeltaCalculation

      public int getDeltaCalculation()
      Returns:
      the deltaCalculation
    • setDeltaCalculation

      public void setDeltaCalculation(int deltaCalculation)
      Parameters:
      deltaCalculation - the deltaCalculation to set
    • isProcessAllThresholds

      public boolean isProcessAllThresholds()
      Returns:
      the processAllThresholds
    • setProcessAllThresholds

      public void setProcessAllThresholds(boolean processAllThresholds)
      Parameters:
      processAllThresholds - the processAllThresholds to set
    • isSnmpRawValueInOctetString

      public boolean isSnmpRawValueInOctetString()
      Returns:
      State of DCF_RAW_VALUE_OCTET_STRING flag
    • setSnmpRawValueInOctetString

      public void setSnmpRawValueInOctetString(boolean enable)
      Set state of DCF_RAW_VALUE_OCTET_STRING flag
      Parameters:
      enable - true to enable
    • isShowOnObjectTooltip

      public boolean isShowOnObjectTooltip()
      Returns:
      true of DCI should be shown on object tooltip
    • setShowOnObjectTooltip

      public void setShowOnObjectTooltip(boolean show)
      Parameters:
      show - indicator if DCI should be shown on object tooltip
    • isShowInObjectOverview

      public boolean isShowInObjectOverview()
      Returns:
      true of DCI should be shown in object overview
    • setShowInObjectOverview

      public void setShowInObjectOverview(boolean show)
      Parameters:
      show - indicator if DCI should be shown in object overview
    • getAggregationFunction

      public int getAggregationFunction()
      Returns:
      aggregation function
    • setAggregationFunction

      public void setAggregationFunction(int func)
      Parameters:
      func - The function to set
    • getMultiplier

      public int getMultiplier()
      Returns:
      the multiplier
    • setMultiplier

      public void setMultiplier(int multiplier)
      Parameters:
      multiplier - the multiplier to set
    • getUnitName

      public String getUnitName()
      Returns:
      the customUnitName
    • setUnitName

      public void setUnitName(String unitName)
      Parameters:
      unitName - the customUnitName to set
    • getThresholds

      public ArrayList<Threshold> getThresholds()
      Returns:
      the thresholds
    • getSnmpRawValueType

      public int getSnmpRawValueType()
      Returns:
      the snmpRawValueType
    • setSnmpRawValueType

      public void setSnmpRawValueType(int snmpRawValueType)
      Parameters:
      snmpRawValueType - the snmpRawValueType to set
    • getSampleCount

      public int getSampleCount()
      Returns:
      the sampleCount
    • setSampleCount

      public void setSampleCount(int sampleCount)
      Parameters:
      sampleCount - the sampleCount to set
    • isUsedForNodeStatusCalculation

      public boolean isUsedForNodeStatusCalculation()
      Returns:
      State of DCF_CALCULATE_NODE_STATUS flag
    • setUsedForNodeStatusCalculation

      public void setUsedForNodeStatusCalculation(boolean enable)
      Enable or disable usage of this DCI for node status calculation
      Parameters:
      enable - true to enable
    • isAnomalyDetectionEnabled

      public boolean isAnomalyDetectionEnabled()
      Returns:
      State of DCF_DETECT_ANOMALIES flag
    • setAnomalyDetectionEnabled

      public void setAnomalyDetectionEnabled(boolean enable)
      Enable or disable anomaly detection for this DCI
      Parameters:
      enable - true to enable
    • getPredictionEngine

      public String getPredictionEngine()
      Returns:
      the predictionEngine
    • setPredictionEngine

      public void setPredictionEngine(String predictionEngine)
      Parameters:
      predictionEngine - the predictionEngine to set
    • getMultipliersSelection

      public int getMultipliersSelection()
      Get multiplier usage mode (DEFAULT, YES, or NO).
      Returns:
      multiplier usage mode (DEFAULT, YES, or NO).
    • setMultiplierSelection

      public void setMultiplierSelection(int mode)
      Set multiplier usage mode.
      Parameters:
      mode - multiplier usage mode (DEFAULT, YES, or NO).
    • isStoreChangesOnly

      public boolean isStoreChangesOnly()
      Returns:
      the storeChangesOnly.
    • setStoreChangesOnly

      public void setStoreChangesOnly(boolean storeChangesOnly)
      Parameters:
      storeChangesOnly - the storeChangesOnly to set