Class NodeCollector

    • Field Detail

      • m_node

        protected final Node m_node
        The node ID of the system used to collect the SNMP information
    • Constructor Detail

      • NodeCollector

        public NodeCollector​(LocationAwareSnmpClient locationAwareSnmpClient,
                             long interval,
                             long initial,
                             Node node)
        Constructs a new SNMP collector for a node using the passed interface as the collection point. The collection does not occur until the run method is invoked.
        Parameters:
        nodeid -
        config - The SnmpPeer object to collect from.
    • Method Detail

      • collect

        public abstract void collect()
      • runDiscovery

        public void runDiscovery()

        Performs the collection for the targeted IP address. The success or failure of the collection should be tested via the failed method.

        No synchronization is performed, so if this is used in a separate thread context synchronization must be added.

        Specified by:
        runDiscovery in class Discovery
      • getPrimaryIpAddress

        public InetAddress getPrimaryIpAddress()
        Returns the target address that the collection occurred for.
        Returns:
        a InetAddress object.
      • getPrimaryIpAddressString

        public String getPrimaryIpAddressString()
      • getNodeId

        public int getNodeId()
      • getSysoid

        public String getSysoid()
      • getSysname

        public String getSysname()
      • getLocation

        public String getLocation()
      • getNode

        public Node getNode()