Class SnmpInterface

    • Constructor Summary

      Constructors 
      Constructor Description
      SnmpInterface​(int nodeId, java.lang.String foreignSource, java.lang.String foreignId, java.lang.String ifDescr, java.lang.String ifName, java.lang.String physAddr, boolean storeByForeignSource)
      Instantiates a new SNMP interface.
      SnmpInterface​(java.sql.ResultSet rs, boolean storeByForeignSource)
      Instantiates a new SNMP interface.
    • Constructor Detail

      • SnmpInterface

        public SnmpInterface​(java.sql.ResultSet rs,
                             boolean storeByForeignSource)
                      throws java.sql.SQLException
        Instantiates a new SNMP interface.
        Parameters:
        rs - the ResultSet
        storeByForeignSource - true, if the store by foreign source is enabled
        Throws:
        java.sql.SQLException - the SQL exception
      • SnmpInterface

        public SnmpInterface​(int nodeId,
                             java.lang.String foreignSource,
                             java.lang.String foreignId,
                             java.lang.String ifDescr,
                             java.lang.String ifName,
                             java.lang.String physAddr,
                             boolean storeByForeignSource)
        Instantiates a new SNMP interface.
        Parameters:
        nodeId - the node id
        foreignSource - the foreign source
        foreignId - the foreign id
        ifDescr - the SNMP interface description
        ifName - the SNMP interface name
        physAddr - the SNMP physical address
        storeByForeignSource - true, if store by foreign source is enabled
    • Method Detail

      • initialize

        protected void initialize()
        Initialize.
      • getNodeId

        public int getNodeId()
        Gets the node id.
        Returns:
        the node id
      • getForeignId

        public java.lang.String getForeignId()
        Gets the foreign id.
        Returns:
        the foreign id
      • getForeignSource

        public java.lang.String getForeignSource()
        Gets the foreign source.
        Returns:
        the foreign source
      • getIfName

        public java.lang.String getIfName()
        Gets the interface name.
        Returns:
        the interface name
      • getIfDescr

        public java.lang.String getIfDescr()
        Gets the interface description.
        Returns:
        the interface description
      • getPhysAddr

        public java.lang.String getPhysAddr()
        Gets the physical address.
        Returns:
        the physical address
      • getOldRrdLabel

        public java.lang.String getOldRrdLabel()
        Gets the old RRD label.
        Returns:
        the old RRD label
      • getNewRrdLabel

        public java.lang.String getNewRrdLabel()
        Gets the new RRD label.
        Returns:
        the new RRD label
      • getOldResourceId

        public ResourceId getOldResourceId()
        Gets the old resource id.
        Returns:
        the old resource id
      • getNewResourceId

        public ResourceId getNewResourceId()
        Gets the new resource id.
        Returns:
        the new resource id
      • shouldUpdate

        public boolean shouldUpdate​(java.lang.String resourceId)
        Checks if the resourceId should be updated.
        Parameters:
        resourceId - the resource id to check
        Returns:
        true, if the resource should be updated
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object