Package org.netxms.client.maps
Class MapDCIInstance
java.lang.Object
org.netxms.client.maps.MapDCIInstance
Class that stores data of map DCI that's last values should be requested from server
- 
Constructor SummaryConstructorsConstructorDescriptionMapDCIInstance(long dciID, long nodeID, int type, long mapObjectId, int initialCount) Constructor for MapDCIInstance for simple DCIMapDCIInstance(long dciID, long nodeID, String column, String instance, int type, long mapObjectId, int initialCount) Constructor for MapDCIInstance for table DCI
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMap(long mapId, int initialCount) Add map object ID to the list of map objects that should be processed.booleanvoidfillMessage(NXCPMessage msg, long base) This method fills message with data if all required data present.longgetDciID()longintgetType()inthashCode()booleanremoveMap(long mapId) Remove map object ID from the list of map objects that should be processed.voidvoidsetDciID(long dciID) voidsetInstance(String instance) voidsetNodeID(long nodeID) voidsetType(int type) 
- 
Constructor Details- 
MapDCIInstancepublic MapDCIInstance(long dciID, long nodeID, String column, String instance, int type, long mapObjectId, int initialCount) Constructor for MapDCIInstance for table DCI- Parameters:
- dciID- id of required DCI
- nodeID- id of associated node. Is collected to fully fill DciValue instances
- column- column if DCI is a table DCI
- instance- instance if DCI is a table DCI
- type- type of DCI
- mapObjectId- network map object ID
 
- 
MapDCIInstancepublic MapDCIInstance(long dciID, long nodeID, int type, long mapObjectId, int initialCount) Constructor for MapDCIInstance for simple DCI- Parameters:
- dciID- DCI ID
- nodeID- ID of associated node (needed to complete DciValue instances)
- type- type of DCI
- mapObjectId- network map object ID
 
 
- 
- 
Method Details- 
addMappublic void addMap(long mapId, int initialCount) Add map object ID to the list of map objects that should be processed. If same ID was already added, increase reference count.- Parameters:
- mapId- map object ID
 
- 
removeMappublic boolean removeMap(long mapId) Remove map object ID from the list of map objects that should be processed. Object will be removed from the list only if it's reference count reaches 0.- Parameters:
- mapId- map object ID
- Returns:
- true if map object ID list is empty (last element was removed)
 
- 
getColumn- Returns:
- the column
 
- 
setColumn- Parameters:
- column- the column to set
 
- 
getInstance- Returns:
- the instance
 
- 
setInstance- Parameters:
- instance- the instance to set
 
- 
getDciIDpublic long getDciID()- Returns:
- the dciID
 
- 
setDciIDpublic void setDciID(long dciID) - Parameters:
- dciID- the dciID to set
 
- 
getTypepublic int getType()- Returns:
- the type
 
- 
setTypepublic void setType(int type) - Parameters:
- type- the type to set
 
- 
getNodeIDpublic long getNodeID()- Returns:
- the nodeID
 
- 
setNodeIDpublic void setNodeID(long nodeID) - Parameters:
- nodeID- the nodeID to set
 
- 
fillMessageThis method fills message with data if all required data present. In case of table DCI if column or/and instance are not present, then this DCI value will not be requested.- Parameters:
- msg- Message that should be populated with data
- base- the base of this data
 
- 
hashCodepublic int hashCode()
- 
equals
 
-