Class SnmpAssetAdapterConfigManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AssetField[] getAssetFieldsForAddress​(java.net.InetAddress address, java.lang.String sysoid)
      Returns all AssetField objects that are in packages that match the specified sysoid precisely based on the tag or by starting with the content of the tag.
      protected SnmpAssetAdapterConfiguration getConfiguration()
      Return the configuration object.
      java.util.concurrent.locks.Lock getReadLock()  
      java.util.concurrent.locks.Lock getWriteLock()  
      protected void reloadXML​(long lastModified, java.io.InputStream stream)
      Synchronized so that we update the timestamp of the file and the contents simultaneously.
      void update()
      Update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SnmpAssetAdapterConfigManager

        public SnmpAssetAdapterConfigManager()

        Constructor for RancidAdapterConfigManager.

      • SnmpAssetAdapterConfigManager

        public SnmpAssetAdapterConfigManager​(long lastModified,
                                             java.io.InputStream reader)
                                      throws java.io.IOException

        Constructor for RancidAdapterConfigManager.

        Parameters:
        reader - a InputStream object.
        verifyServer - a boolean.
        serverName - a String object.
        Throws:
        java.io.IOException - if any.
    • Method Detail

      • reloadXML

        protected void reloadXML​(long lastModified,
                                 java.io.InputStream stream)
                          throws java.io.IOException
        Synchronized so that we update the timestamp of the file and the contents simultaneously.
        Parameters:
        reader - a InputStream object.
        Throws:
        java.io.IOException - if any.
      • update

        public void update()
                    throws java.io.IOException

        Update

        Specified by:
        update in interface SnmpAssetAdapterConfig
        Throws:
        java.io.IOException - if any.
      • getAssetFieldsForAddress

        public AssetField[] getAssetFieldsForAddress​(java.net.InetAddress address,
                                                     java.lang.String sysoid)
        Returns all AssetField objects that are in packages that match the specified sysoid precisely based on the tag or by starting with the content of the tag. TODO: Support matching based on IP address
        Specified by:
        getAssetFieldsForAddress in interface SnmpAssetAdapterConfig