Class SystemGroup

  • All Implemented Interfaces:
    Collectable, ProxiableTracker

    public final class SystemGroup
    extends AggregateTracker

    SystemGroup holds the system group properties It implements the SnmpHandler to receive notifications when a reply is received/error occurs in the SnmpSession used to send requests/receive replies.

    Author:
    Sowmya , Weave
    See Also:
    RFC1213
    • Field Detail

      • SYS_OBJECTID_ALIAS

        public static final java.lang.String SYS_OBJECTID_ALIAS
        Constant SYS_OBJECTID_ALIAS="sysObjectID"
        See Also:
        Constant Field Values
      • SYS_UPTIME_ALIAS

        public static final java.lang.String SYS_UPTIME_ALIAS
        Constant SYS_UPTIME_ALIAS="sysUptime"
        See Also:
        Constant Field Values
      • SYS_NAME_ALIAS

        public static final java.lang.String SYS_NAME_ALIAS
        Constant SYS_NAME_ALIAS="sysName"
        See Also:
        Constant Field Values
      • SYS_DESCR_ALIAS

        public static final java.lang.String SYS_DESCR_ALIAS
        Constant SYS_DESCR_ALIAS="sysDescr"
        See Also:
        Constant Field Values
      • SYS_LOCATION_ALIAS

        public static final java.lang.String SYS_LOCATION_ALIAS
        Constant SYS_LOCATION_ALIAS="sysLocation"
        See Also:
        Constant Field Values
      • SYS_CONTACT_ALIAS

        public static final java.lang.String SYS_CONTACT_ALIAS
        Constant SYS_CONTACT_ALIAS="sysContact"
        See Also:
        Constant Field Values
      • ms_elemList

        public static NamedSnmpVar[] ms_elemList

        The keys that will be supported by default from the TreeMap base class. Each of the elements in the list are an instance of the SNMP Interface table. Objects in this list should be used by multiple instances of this class.

      • SYSTEM_OID

        public static final java.lang.String SYSTEM_OID

        The SYSTEM_OID is the object identifier that represents the root of the system information in the MIB forest. Each of the system elements can be retrieved by adding their specific index to the string, and an additional Zero(0) to signify the single instance item.

        See Also:
        Constant Field Values
    • Constructor Detail

      • SystemGroup

        public SystemGroup​(java.net.InetAddress address)

        The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data. The data is then received and store by the object. When all the data has been collected the passed signaler object is notified using the notifyAll() method.

        Parameters:
        address - TODO
    • Method Detail

      • getSysName

        public java.lang.String getSysName()

        getSysName

        Returns:
        a String object.
      • getSysObjectID

        public java.lang.String getSysObjectID()

        getSysObjectID

        Returns:
        a String object.
      • getSysDescr

        public java.lang.String getSysDescr()

        getSysDescr

        Returns:
        a String object.
      • getSysLocation

        public java.lang.String getSysLocation()

        getSysLocation

        Returns:
        a String object.
      • getSysContact

        public java.lang.String getSysContact()

        getSysContact

        Returns:
        a String object.
      • updateSnmpDataForResource

        public void updateSnmpDataForResource​(ScanResource sr)

        updateSnmpDataForResource

        Parameters:
        sr - a ScanResource object.
      • updateSnmpDataForNode

        public void updateSnmpDataForNode​(OnmsNode node)

        updateSnmpDataForNode

        Parameters:
        node - a OnmsNode object.