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 Summary
ConstructorDescriptionMapDCIInstance
(long dciID, long nodeID, int type, long mapObjectId) Constructor for MapDCIInstance for simple DCIMapDCIInstance
(long dciID, long nodeID, String column, String instance, int type, long mapObjectId) Constructor for MapDCIInstance for table DCI -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMap
(long mapId) Add object map id to the listboolean
void
fillMessage
(NXCPMessage msg, long base) This method fills message with data if all required data present.long
getDciID()
long
int
getType()
int
hashCode()
boolean
removeMap
(long mapId) Add object map id to the listvoid
void
setDciID
(long dciID) void
setInstance
(String instance) void
setNodeID
(long nodeID) void
setType
(int type)
-
Constructor Details
-
MapDCIInstance
public MapDCIInstance(long dciID, long nodeID, String column, String instance, int type, long mapObjectId) 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 DCImapObjectId
- network map object ID
-
MapDCIInstance
public MapDCIInstance(long dciID, long nodeID, int type, long mapObjectId) Constructor for MapDCIInstance for simple DCI- Parameters:
dciID
- DCI IDnodeID
- ID of associated node (needed to complete DciValue instances)type
- type of DCImapObjectId
- network map object ID
-
-
Method Details
-
addMap
public void addMap(long mapId) Add object map id to the list- Parameters:
mapId
- object map id
-
removeMap
public boolean removeMap(long mapId) Add object map id to the list- Parameters:
mapId
- object map id- Returns:
-
getColumn
- Returns:
- the column
-
setColumn
- Parameters:
column
- the column to set
-
getInstance
- Returns:
- the instance
-
setInstance
- 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
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
-
hashCode
public int hashCode() -
equals
-