Interface PollingTarget
- All Known Implementing Classes:
AbstractNode
,AccessPoint
,BaseBusinessService
,BusinessService
,BusinessServicePrototype
,Cluster
,Collector
,Container
,Dashboard
,NetworkMap
,Node
,Sensor
,Template
,WirelessDomain
public interface PollingTarget
Common interface for all objects that can be polled
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Identify if this object can have NetXMS agent.boolean
Identify if this object can have network interfaces.boolean
Identify if this object can have poller node property.boolean
Identify if this object can use EtherNet/IP for communications.boolean
Identify if this object can use Modbus for communications.Get agent cache mode.int
getFlags()
Get object flags.int
Get ifXTable usage policy.long
Get object ID.Get object namelong
Get poller node ID.Get poll states.
-
Method Details
-
getObjectId
long getObjectId()Get object ID.- Returns:
- object ID
-
getObjectName
Object getObjectName()Get object name- Returns:
- object name
-
getIfXTablePolicy
int getIfXTablePolicy()Get ifXTable usage policy.- Returns:
- ifXTable usage policy
-
getAgentCacheMode
AgentCacheMode getAgentCacheMode()Get agent cache mode.- Returns:
- agent cache mode
-
getFlags
int getFlags()Get object flags.- Returns:
- object flags
-
getPollerNodeId
long getPollerNodeId()Get poller node ID.- Returns:
- poller node ID or 0 if object cannot have poler node
-
canHaveAgent
boolean canHaveAgent()Identify if this object can have NetXMS agent.- Returns:
- true if this object can have NetXMS agent
-
canHaveInterfaces
boolean canHaveInterfaces()Identify if this object can have network interfaces.- Returns:
- true if this object can have network interfaces
-
canHavePollerNode
boolean canHavePollerNode()Identify if this object can have poller node property.- Returns:
- true if this object can have poller node property
-
canUseEtherNetIP
boolean canUseEtherNetIP()Identify if this object can use EtherNet/IP for communications.- Returns:
- true if this object can use EtherNet/IP for communications
-
canUseModbus
boolean canUseModbus()Identify if this object can use Modbus for communications.- Returns:
- true if this object can use Modbus for communications
-
getPollStates
PollState[] getPollStates()Get poll states.- Returns:
- array of poll states or null if object doesn't have any
-