Package org.netxms.client.datacollection
Class DataCollectionItem
java.lang.Object
org.netxms.client.datacollection.DataCollectionObject
org.netxms.client.datacollection.DataCollectionItem
Data Collection Item representation
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.netxms.client.datacollection.DataCollectionObjectaccessList, comments, DCF_AGGREGATE_ON_CLUSTER, DCF_AGGREGATE_WITH_ERRORS, DCF_CACHE_MODE_MASK, DCF_HIDE_ON_LAST_VALUES_PAGE, DCF_TRANSFORM_AGGREGATED, DCO_TYPE_GENERIC, DCO_TYPE_ITEM, DCO_TYPE_TABLE, description, flags, id, IDM_AGENT_LIST, IDM_AGENT_TABLE, IDM_INTERNAL_TABLE, IDM_NONE, IDM_PUSH, IDM_SCRIPT, IDM_SMCLP_PROPERTIES, IDM_SMCLP_TARGETS, IDM_SNMP_WALK_OIDS, IDM_SNMP_WALK_VALUES, IDM_WEB_SERVICE, IDM_WINPERF, instanceDiscoveryData, instanceDiscoveryFilter, instanceDiscoveryMethod, instanceName, instanceRetentionTime, name, nodeId, origin, owner, perfTabSettings, POLLING_SCHEDULE_ADVANCED, POLLING_SCHEDULE_CUSTOM, POLLING_SCHEDULE_DEFAULT, pollingInterval, pollingScheduleType, relatedObject, resourceId, RETENTION_CUSTOM, RETENTION_DEFAULT, RETENTION_NONE, retentionTime, retentionType, schedules, snmpPort, snmpVersion, sourceNode, stateFlags, status, systemTag, templateId, templateItemId, thresholdDisableEndTime, transformationScript, userData, userTag
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefault constructor (intended for deserialization)DataCollectionItem(long nodeId, long id) Constructor for new data collection items.DataCollectionItem(DataCollectionConfiguration owner, long id) Constructor for new data collection items.protectedDataCollectionItem(DataCollectionConfiguration owner, long nodeId, long id) Constructor for new data collection items.DataCollectionItem(DataCollectionConfiguration owner, NXCPMessage msg) Create data collection item object from NXCP messageprotectedObject copy constructor
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with item's data.intintintintintGet multiplier usage mode (DEFAULT, YES, or NO).intintbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAggregationFunction(int func) voidsetAllThresholdsRearmEvent(int allThresholdsRearmEvent) voidsetAnomalyDetectionEnabled(boolean enable) Enable or disable anomaly detection for this DCIvoidsetDataType(DataType dataType) voidsetDeltaCalculation(int deltaCalculation) voidsetMultiplier(int multiplier) voidsetMultiplierSelection(int mode) Set multiplier usage mode.voidsetPredictionEngine(String predictionEngine) voidsetProcessAllThresholds(boolean processAllThresholds) voidsetSampleCount(int sampleCount) voidsetShowInObjectOverview(boolean show) voidsetShowOnObjectTooltip(boolean show) voidsetSnmpRawValueInOctetString(boolean enable) Set state of DCF_RAW_VALUE_OCTET_STRING flagvoidsetSnmpRawValueType(int snmpRawValueType) voidsetStoreChangesOnly(boolean storeChangesOnly) voidsetTransformedDataType(DataType transformedDataType) voidsetUnitName(String unitName) voidsetUsedForNodeStatusCalculation(boolean enable) Enable or disable usage of this DCI for node status calculationMethods inherited from class org.netxms.client.datacollection.DataCollectionObjectgetAccessList, getCacheMode, getComments, getComparablePollingInterval, getComparableRetentionTime, getDescription, getFlags, getId, getInstanceDiscoveryData, getInstanceDiscoveryFilter, getInstanceDiscoveryMethod, getInstanceName, getInstanceRetentionTime, getName, getNodeId, getOrigin, getOwner, getPerfTabSettings, getPollingInterval, getPollingScheduleType, getRelatedObject, getResourceId, getRetentionTime, getRetentionType, getSchedules, getSnmpPort, getSnmpVersion, getSourceNode, getStateFlags, getStatus, getSystemTag, getTemplateId, getTemplateItemId, getThresholdDisableEndTime, getTransformationScript, getUserData, getUserTag, isAggregateOnCluster, isAggregateWithErrors, isHideOnLastValuesView, isNewItem, isTransformAggregated, isUseAdvancedSchedule, setAccessList, setAggregateOnCluster, setAggregateWithErrors, setCacheMode, setComments, setDescription, setFlags, setHideOnLastValuesView, setId, setInstanceDiscoveryData, setInstanceDiscoveryFilter, setInstanceDiscoveryMethod, setInstanceName, setInstanceRetentionTime, setName, setNodeId, setOrigin, setPerfTabSettings, setPollingInterval, setPollingScheduleType, setRelatedObject, setResourceId, setRetentionTime, setRetentionType, setSchedules, setSnmpPort, setSnmpVersion, setSourceNode, setStatus, setSystemTag, setTemplateId, setThresholdDisableEndTime, setTransformAggregated, setTransformationScript, setUserData, setUserTag
- 
Field Details- 
DCF_DETECT_ANOMALIESpublic static final int DCF_DETECT_ANOMALIES- See Also:
 
- 
DCF_ALL_THRESHOLDSpublic static final int DCF_ALL_THRESHOLDS- See Also:
 
- 
DCF_RAW_VALUE_OCTET_STRINGpublic static final int DCF_RAW_VALUE_OCTET_STRING- See Also:
 
- 
DCF_SHOW_ON_OBJECT_TOOLTIPpublic static final int DCF_SHOW_ON_OBJECT_TOOLTIP- See Also:
 
- 
DCF_AGGREGATE_FUNCTION_MASKpublic static final int DCF_AGGREGATE_FUNCTION_MASK- See Also:
 
- 
DCF_CALCULATE_NODE_STATUSpublic static final int DCF_CALCULATE_NODE_STATUS- See Also:
 
- 
DCF_SHOW_IN_OBJECT_OVERVIEWpublic static final int DCF_SHOW_IN_OBJECT_OVERVIEW- See Also:
 
- 
DCF_MULTIPLIERS_MASKpublic static final int DCF_MULTIPLIERS_MASK- See Also:
 
- 
DCF_STORE_CHANGES_ONLYpublic static final int DCF_STORE_CHANGES_ONLY- See Also:
 
- 
DCF_FUNCTION_SUMpublic static final int DCF_FUNCTION_SUM- See Also:
 
- 
DCF_FUNCTION_AVGpublic static final int DCF_FUNCTION_AVG- See Also:
 
- 
DCF_FUNCTION_MINpublic static final int DCF_FUNCTION_MIN- See Also:
 
- 
DCF_FUNCTION_MAXpublic static final int DCF_FUNCTION_MAX- See Also:
 
- 
DELTA_NONEpublic static final int DELTA_NONE- See Also:
 
- 
DELTA_SIMPLEpublic static final int DELTA_SIMPLE- See Also:
 
- 
DELTA_AVERAGE_PER_SECONDpublic static final int DELTA_AVERAGE_PER_SECOND- See Also:
 
- 
DELTA_AVERAGE_PER_MINUTEpublic static final int DELTA_AVERAGE_PER_MINUTE- See Also:
 
- 
SNMP_RAWTYPE_NONEpublic static final int SNMP_RAWTYPE_NONE- See Also:
 
- 
SNMP_RAWTYPE_INT32public static final int SNMP_RAWTYPE_INT32- See Also:
 
- 
SNMP_RAWTYPE_UINT32public static final int SNMP_RAWTYPE_UINT32- See Also:
 
- 
SNMP_RAWTYPE_INT64public static final int SNMP_RAWTYPE_INT64- See Also:
 
- 
SNMP_RAWTYPE_UINT64public static final int SNMP_RAWTYPE_UINT64- See Also:
 
- 
SNMP_RAWTYPE_DOUBLEpublic static final int SNMP_RAWTYPE_DOUBLE- See Also:
 
- 
SNMP_RAWTYPE_IP_ADDRpublic static final int SNMP_RAWTYPE_IP_ADDR- See Also:
 
- 
SNMP_RAWTYPE_MAC_ADDRpublic static final int SNMP_RAWTYPE_MAC_ADDR- See Also:
 
- 
SNMP_RAWTYPE_IP6_ADDRpublic static final int SNMP_RAWTYPE_IP6_ADDR- See Also:
 
 
- 
- 
Constructor Details- 
DataCollectionItemCreate data collection item object from NXCP message- Parameters:
- owner- Owning configuration object
- msg- NXCP message
 
- 
DataCollectionItemConstructor for new data collection items.- Parameters:
- owner- Owning configuration object
- nodeId- Owning node ID
- id- Identifier assigned to new item
 
- 
DataCollectionItemConstructor for new data collection items.- Parameters:
- owner- Owning configuration object
- id- Identifier assigned to new item
 
- 
DataCollectionItempublic DataCollectionItem(long nodeId, long id) Constructor for new data collection items.- Parameters:
- nodeId- Owning node ID
- id- Identifier assigned to new item
 
- 
DataCollectionItemprotected DataCollectionItem()Default constructor (intended for deserialization)
- 
DataCollectionItemObject copy constructor- Parameters:
- owner- object owner
- src- object to copy
 
 
- 
- 
Method Details- 
fillMessageFill NXCP message with item's data.- Overrides:
- fillMessagein class- DataCollectionObject
- Parameters:
- msg- NXCP message
 
- 
getDataType- Returns:
- the dataType
 
- 
setDataType- Parameters:
- dataType- the dataType to set
 
- 
getTransformedDataType- Returns:
- the transformedDataType
 
- 
setTransformedDataType- Parameters:
- transformedDataType- the transformedDataType to set
 
- 
getDeltaCalculationpublic int getDeltaCalculation()- Returns:
- the deltaCalculation
 
- 
setDeltaCalculationpublic void setDeltaCalculation(int deltaCalculation) - Parameters:
- deltaCalculation- the deltaCalculation to set
 
- 
isProcessAllThresholdspublic boolean isProcessAllThresholds()- Returns:
- the processAllThresholds
 
- 
setProcessAllThresholdspublic void setProcessAllThresholds(boolean processAllThresholds) - Parameters:
- processAllThresholds- the processAllThresholds to set
 
- 
isSnmpRawValueInOctetStringpublic boolean isSnmpRawValueInOctetString()- Returns:
- State of DCF_RAW_VALUE_OCTET_STRING flag
 
- 
setSnmpRawValueInOctetStringpublic void setSnmpRawValueInOctetString(boolean enable) Set state of DCF_RAW_VALUE_OCTET_STRING flag- Parameters:
- enable- true to enable
 
- 
isShowOnObjectTooltippublic boolean isShowOnObjectTooltip()- Returns:
- true of DCI should be shown on object tooltip
 
- 
setShowOnObjectTooltippublic void setShowOnObjectTooltip(boolean show) - Parameters:
- show- indicator if DCI should be shown on object tooltip
 
- 
isShowInObjectOverviewpublic boolean isShowInObjectOverview()- Returns:
- true of DCI should be shown in object overview
 
- 
setShowInObjectOverviewpublic void setShowInObjectOverview(boolean show) - Parameters:
- show- indicator if DCI should be shown in object overview
 
- 
getAggregationFunctionpublic int getAggregationFunction()- Returns:
- aggregation function
 
- 
setAggregationFunctionpublic void setAggregationFunction(int func) - Parameters:
- func- The function to set
 
- 
getMultiplierpublic int getMultiplier()- Returns:
- the multiplier
 
- 
setMultiplierpublic void setMultiplier(int multiplier) - Parameters:
- multiplier- the multiplier to set
 
- 
getUnitName- Returns:
- the customUnitName
 
- 
setUnitName- Parameters:
- unitName- the customUnitName to set
 
- 
getThresholds- Returns:
- the thresholds
 
- 
getAllThresholdsRearmEventpublic int getAllThresholdsRearmEvent()- Returns:
- the allThresholdsRearmEvent
 
- 
setAllThresholdsRearmEventpublic void setAllThresholdsRearmEvent(int allThresholdsRearmEvent) - Parameters:
- allThresholdsRearmEvent- the allThresholdsRearmEvent to set
 
- 
getSnmpRawValueTypepublic int getSnmpRawValueType()- Returns:
- the snmpRawValueType
 
- 
setSnmpRawValueTypepublic void setSnmpRawValueType(int snmpRawValueType) - Parameters:
- snmpRawValueType- the snmpRawValueType to set
 
- 
getSampleCountpublic int getSampleCount()- Returns:
- the sampleCount
 
- 
setSampleCountpublic void setSampleCount(int sampleCount) - Parameters:
- sampleCount- the sampleCount to set
 
- 
isUsedForNodeStatusCalculationpublic boolean isUsedForNodeStatusCalculation()- Returns:
- State of DCF_CALCULATE_NODE_STATUS flag
 
- 
setUsedForNodeStatusCalculationpublic void setUsedForNodeStatusCalculation(boolean enable) Enable or disable usage of this DCI for node status calculation- Parameters:
- enable- true to enable
 
- 
isAnomalyDetectionEnabledpublic boolean isAnomalyDetectionEnabled()- Returns:
- State of DCF_DETECT_ANOMALIES flag
 
- 
setAnomalyDetectionEnabledpublic void setAnomalyDetectionEnabled(boolean enable) Enable or disable anomaly detection for this DCI- Parameters:
- enable- true to enable
 
- 
getPredictionEngine- Returns:
- the predictionEngine
 
- 
setPredictionEngine- Parameters:
- predictionEngine- the predictionEngine to set
 
- 
getMultipliersSelectionpublic int getMultipliersSelection()Get multiplier usage mode (DEFAULT, YES, or NO).- Returns:
- multiplier usage mode (DEFAULT, YES, or NO).
 
- 
setMultiplierSelectionpublic void setMultiplierSelection(int mode) Set multiplier usage mode.- Parameters:
- mode- multiplier usage mode (DEFAULT, YES, or NO).
 
- 
isStoreChangesOnlypublic boolean isStoreChangesOnly()- Returns:
- the storeChangesOnly.
 
- 
setStoreChangesOnlypublic void setStoreChangesOnly(boolean storeChangesOnly) - Parameters:
- storeChangesOnly- the storeChangesOnly to set
 
 
-