Class TrafficObserver

All Implemented Interfaces:
PollingTarget, ZoneMember

public class TrafficObserver extends DataCollectionTarget implements PollingTarget, ZoneMember
Traffic observer object - represents one external traffic analysis instance
  • Field Details

  • Constructor Details

    • TrafficObserver

      public TrafficObserver(NXCPMessage msg, NXCSession session)
      Create from NXCP message.
      Parameters:
      msg - NXCP message
      session - owning client session
  • Method Details

    • isAllowedOnMap

      public boolean isAllowedOnMap()
      Description copied from class: AbstractObject
      If this method returns true object is allowed to be on custom network map. Default implementation always returns false.
      Overrides:
      isAllowedOnMap in class AbstractObject
      Returns:
      true if object is allowed to be on custom network map
      See Also:
    • isAlarmsVisible

      public boolean isAlarmsVisible()
      Description copied from class: AbstractObject
      If this method returns true object can have visible alarms. Default implementation always returns false.
      Overrides:
      isAlarmsVisible in class AbstractObject
      Returns:
      true if object can contain visible alarms
      See Also:
    • getObjectClassName

      public String getObjectClassName()
      Description copied from class: AbstractObject
      Get name of NetXMS object's class.
      Overrides:
      getObjectClassName in class AbstractObject
      Returns:
      Name of NetXMS object's class
      See Also:
    • getStrings

      public Set<String> getStrings()
      Description copied from class: AbstractObject
      Get all strings in object
      Overrides:
      getStrings in class AbstractObject
      Returns:
      set of all strings in object
      See Also:
    • getConnectorName

      public String getConnectorName()
      Returns:
      the connectorName
    • isConnectorLoaded

      public boolean isConnectorLoaded()
      Check if connector module referenced by this observer is loaded on the server. When it is not, credentials are not sent to clients and the server ignores credentials in object modification requests.
      Returns:
      true if connector module is loaded on the server
    • getCredentials

      public String getCredentials()
      Get connector credentials as sent by the server: a JSON object with password-typed fields (as declared by the connector) removed. Secrets never leave the server. Not available (null) when the connector module is not loaded on the server.
      Returns:
      sanitized credentials JSON or null if credentials are not set or not available
    • hasCredentials

      public boolean hasCredentials()
      Returns:
      true if connector credentials are set
    • getZoneId

      public int getZoneId()
      Description copied from interface: ZoneMember
      Get ID of the zone this object belongs to
      Specified by:
      getZoneId in interface ZoneMember
      Returns:
      zone ID
      See Also:
    • getZoneName

      public String getZoneName()
      Description copied from interface: ZoneMember
      Get name of the zone this object belongs to
      Specified by:
      getZoneName in interface ZoneMember
      Returns:
      zone name
      See Also:
    • getLinkedNodeId

      public long getLinkedNodeId()
      Returns:
      ID of the node representing the analyzer itself (0 = not linked)
    • getRemovalPolicy

      public int getRemovalPolicy()
      Returns:
      the removalPolicy
    • getGracePeriod

      public int getGracePeriod()
      Returns:
      the gracePeriod
    • getSyncConfig

      public String getSyncConfig()
      Returns:
      the syncConfig
    • getLastDiscoveryStatus

      public int getLastDiscoveryStatus()
      Returns:
      the lastDiscoveryStatus
    • getLastDiscoveryTime

      public Date getLastDiscoveryTime()
      Returns:
      the lastDiscoveryTime
    • getLastDiscoveryMessage

      public String getLastDiscoveryMessage()
      Returns:
      the lastDiscoveryMessage
    • getConnectionState

      public int getConnectionState()
      Returns:
      the connectionState
    • getBackendProduct

      public String getBackendProduct()
      Returns:
      the backendProduct
    • getBackendVersion

      public String getBackendVersion()
      Returns:
      the backendVersion
    • getBackendEdition

      public String getBackendEdition()
      Returns:
      the backendEdition
    • getCapabilities

      public long getCapabilities()
      Returns:
      the capabilities
    • hasCapability

      public boolean hasCapability(long capability)
      Check if backend has given capability.
      Parameters:
      capability - capability bit to check
      Returns:
      true if backend has given capability
    • getFlags

      public int getFlags()
      Description copied from interface: PollingTarget
      Get object flags.
      Specified by:
      getFlags in interface PollingTarget
      Returns:
      object flags
      See Also:
    • getIfXTablePolicy

      public int getIfXTablePolicy()
      Description copied from interface: PollingTarget
      Get ifXTable usage policy.
      Specified by:
      getIfXTablePolicy in interface PollingTarget
      Returns:
      ifXTable usage policy
      See Also:
    • getAgentCacheMode

      public AgentCacheMode getAgentCacheMode()
      Description copied from interface: PollingTarget
      Get agent cache mode.
      Specified by:
      getAgentCacheMode in interface PollingTarget
      Returns:
      agent cache mode
      See Also:
    • getPollerNodeId

      public long getPollerNodeId()
      Description copied from interface: PollingTarget
      Get poller node ID.
      Specified by:
      getPollerNodeId in interface PollingTarget
      Returns:
      poller node ID or 0 if object cannot have poler node
      See Also:
    • canHaveAgent

      public boolean canHaveAgent()
      Description copied from interface: PollingTarget
      Identify if this object can have NetXMS agent.
      Specified by:
      canHaveAgent in interface PollingTarget
      Returns:
      true if this object can have NetXMS agent
      See Also:
    • canHaveInterfaces

      public boolean canHaveInterfaces()
      Description copied from interface: PollingTarget
      Identify if this object can have network interfaces.
      Specified by:
      canHaveInterfaces in interface PollingTarget
      Returns:
      true if this object can have network interfaces
      See Also:
    • canHavePollerNode

      public boolean canHavePollerNode()
      Description copied from interface: PollingTarget
      Identify if this object can have poller node property.
      Specified by:
      canHavePollerNode in interface PollingTarget
      Returns:
      true if this object can have poller node property
      See Also:
    • canUseEtherNetIP

      public boolean canUseEtherNetIP()
      Description copied from interface: PollingTarget
      Identify if this object can use EtherNet/IP for communications.
      Specified by:
      canUseEtherNetIP in interface PollingTarget
      Returns:
      true if this object can use EtherNet/IP for communications
      See Also:
    • canUseModbus

      public boolean canUseModbus()
      Description copied from interface: PollingTarget
      Identify if this object can use Modbus for communications.
      Specified by:
      canUseModbus in interface PollingTarget
      Returns:
      true if this object can use Modbus for communications
      See Also:
    • getPollStates

      public PollState[] getPollStates()
      Description copied from interface: PollingTarget
      Get poll states.
      Specified by:
      getPollStates in interface PollingTarget
      Returns:
      array of poll states or null if object doesn't have any
      See Also: