Package org.netxms.client.maps
Class MapDCIInstance
- java.lang.Object
-
- org.netxms.client.maps.MapDCIInstance
-
public class MapDCIInstance extends Object
Class that stores data of map DCI that's last values should be requested from server
-
-
Constructor Summary
Constructors Constructor Description MapDCIInstance(long dciID, long nodeID, int type, String mapId)Constructor for MapDCIInstance for simple DCIMapDCIInstance(long dciID, long nodeID, String column, String instance, int type, String mapId)Constructor for MapDCIInstance for table DCI
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMap(String id)Add map referencebooleanequals(Object object)voidfillMessage(org.netxms.base.NXCPMessage msg, long base)This method fills message with data if all required data present.StringgetColumn()longgetDciID()StringgetInstance()longgetNodeID()intgetType()inthashCode()booleanremoveMap(String id)Remove map referencevoidsetColumn(String column)voidsetDciID(long dciID)voidsetInstance(String instance)voidsetNodeID(long nodeID)voidsetType(int type)
-
-
-
Constructor Detail
-
MapDCIInstance
public MapDCIInstance(long dciID, long nodeID, String column, String instance, int type, String mapId)Constructor for MapDCIInstance for table DCI- Parameters:
dciID- id of required DCInodeID- id of associated node. Is collected to fully fill DciValue instancescolumn- column if DCI is a table DCIinstance- instance if DCI is a table DCItype- type of DCI
-
MapDCIInstance
public MapDCIInstance(long dciID, long nodeID, int type, String mapId)Constructor for MapDCIInstance for simple DCI- Parameters:
dciID- id of required DCInodeID- id of associated node. Is collected to fully fill DciValue instancestype- type of DCI
-
-
Method Detail
-
getColumn
public String getColumn()
- Returns:
- the column
-
setColumn
public void setColumn(String column)
- Parameters:
column- the column to set
-
getInstance
public String getInstance()
- Returns:
- the instance
-
setInstance
public void setInstance(String instance)
- Parameters:
instance- the instance to set
-
getDciID
public long getDciID()
- Returns:
- the dciID
-
setDciID
public void setDciID(long dciID)
- Parameters:
dciID- the dciID to set
-
getType
public int getType()
- Returns:
- the type
-
setType
public void setType(int type)
- Parameters:
type- the type to set
-
getNodeID
public long getNodeID()
- Returns:
- the nodeID
-
setNodeID
public void setNodeID(long nodeID)
- Parameters:
nodeID- the nodeID to set
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long base)This 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 database- the base of this data
-
addMap
public void addMap(String id)
Add map reference- Parameters:
id- map ID
-
removeMap
public boolean removeMap(String id)
Remove map reference- Parameters:
id- map ID- Returns:
- true if last map reference was removed
-
-