Package org.netxms.client.datacollection
Class DciValue
java.lang.Object
org.netxms.client.datacollection.DciValue
- Direct Known Subclasses:
- SimpleDciValue,- TableDciValue
DCI value
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Thresholdprotected booleanprotected Stringprotected DataTypeprotected intprotected Stringprotected intprotected intprotected longprotected MeasurementUnitprotected intstatic final intstatic final intstatic final intprotected Stringprotected longprotected booleanprotected DataOriginprotected DataCollectionObjectStatusprotected longprotected longprotected Dateprotected Stringprotected String
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDciValue()Simple constructor for DciValueprotectedDciValue(NXCPMessage msg, long base) Constructor for creating DciValue from NXCP message
- 
Method SummaryModifier and TypeMethodDescriptionGet data formatter for this DCI value.static DciValuecreateFromMessage(NXCPMessage msg, long base) Factory method to create correct DciValue subclass from NXCP message.Get DCI comments.intGet DCi description.intintgetFlags()getFormattedValue(boolean useMultipliers, TimeFormatter timeFormatter) getFormattedValue(String formatString, TimeFormatter timeFormatter) longgetId()intintGet multipliers selection.getName()longfinal longlongGet time until which threshold processing is disabled for this DCI.Get severity of active thresholdgetValue()Get current (last collected) DCI value.booleanbooleantoString()
- 
Field Details- 
MULTIPLIERS_DEFAULTpublic static final int MULTIPLIERS_DEFAULT- See Also:
 
- 
MULTIPLIERS_YESpublic static final int MULTIPLIERS_YES- See Also:
 
- 
MULTIPLIERS_NOpublic static final int MULTIPLIERS_NO- See Also:
 
- 
idprotected long id
- 
nodeIdprotected long nodeId
- 
templateDciIdprotected long templateDciId
- 
name
- 
description
- 
value
- 
userTag
- 
comments
- 
source
- 
dataType
- 
status
- 
errorCountprotected int errorCount
- 
dcObjectTypeprotected int dcObjectType
- 
timestamp
- 
activeThreshold
- 
flagsprotected int flags
- 
measurementUnit
- 
multiplierprotected int multiplier
- 
noValueObjectprotected boolean noValueObject
- 
anomalyDetectedprotected boolean anomalyDetected
- 
thresholdDisableEndTimeprotected long thresholdDisableEndTime
 
- 
- 
Constructor Details- 
DciValueprotected DciValue()Simple constructor for DciValue
- 
DciValueConstructor for creating DciValue from NXCP message- Parameters:
- msg- NXCP message
- base- Base field ID for value object
 
 
- 
- 
Method Details- 
createFromMessageFactory method to create correct DciValue subclass from NXCP message.- Parameters:
- msg- NXCP message
- base- Base variable ID for value object
- Returns:
- DciValue object
 
- 
createDataFormatterGet data formatter for this DCI value.- Returns:
- data formatter
 
- 
getFormattedValue- Parameters:
- timeFormatter-
- useMultipliers-
- Returns:
 
- 
getFormattedValue- Parameters:
- formatString-
- timeFormatter-
- Returns:
 
- 
getIdpublic long getId()- Returns:
- the id
 
- 
getName- Returns:
- the name
 
- 
getDescriptionGet DCi description.- Returns:
- DCI description
 
- 
getValueGet current (last collected) DCI value.- Returns:
- current DCI value
 
- 
getUserTag- Returns:
- the userTag
 
- 
getCommentsGet DCI comments.- Returns:
- DCI comments
 
- 
getSource- Returns:
- the source
 
- 
getDataType- Returns:
- the dataType
 
- 
getStatus- Returns:
- the status
 
- 
getTimestamp- Returns:
- the timestamp
 
- 
getNodeIdpublic long getNodeId()- Returns:
- the nodeId
 
- 
getActiveThreshold- Returns:
- the activeThreshold
 
- 
getDcObjectTypepublic int getDcObjectType()- Returns:
- the dcObjectType
 
- 
getErrorCountpublic int getErrorCount()- Returns:
- the errorCount
 
- 
getTemplateDciIdpublic final long getTemplateDciId()- Returns:
- the templateDciId
 
- 
getThresholdSeverityGet severity of active threshold- Returns:
- severity of active threshold or NORMAL if there are no active thresholds
 
- 
getFlagspublic int getFlags()- Returns:
- the flags
 
- 
getMultipliersSelectionpublic int getMultipliersSelection()Get multipliers selection.- Returns:
- multiplier usage mode (DEFAULT, YES, or NO)
 
- 
getMostCriticalSeverity- Returns:
- the mostCriticalSeverity
 
- 
getMeasurementUnit- Returns:
- the unitName
 
- 
getMultiplierpublic int getMultiplier()- Returns:
- the multiplier
 
- 
isNoValueObjectpublic boolean isNoValueObject()- Returns:
- the noValueObject
 
- 
isAnomalyDetectedpublic boolean isAnomalyDetected()- Returns:
- the anomalyDetected
 
- 
getThresholdDisableEndTimepublic long getThresholdDisableEndTime()Get time until which threshold processing is disabled for this DCI. Value of 0 means that threshold processing is enabled. Value of -1 means that threshold processing is disabled permanently.- Returns:
- the thresholdDisableEndTime time in seconds since epoch until which threshold processing is disabled
 
- 
toString
 
-