Class WsManAssetAdapterConfigManager

    • Constructor Detail

      • WsManAssetAdapterConfigManager

        public WsManAssetAdapterConfigManager()
      • WsManAssetAdapterConfigManager

        public WsManAssetAdapterConfigManager​(long lastModified,
                                              java.io.InputStream reader)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
    • 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.
        Throws:
        java.io.IOException
      • update

        public void update()
                    throws java.io.IOException

        Update

        Specified by:
        update in interface WsManAssetAdapterConfig
        Throws:
        java.io.IOException - if any.
      • getConfiguration

        protected WsManAssetAdapterConfiguration getConfiguration()
        Return the configuration object.
        Returns:
        a org.opennms.netmgt.config.snmpAsset.adapter.WsManAssetAdapterConfiguration object.
      • getAssetFieldsForAddress

        public AssetField[] getAssetFieldsForAddress​(java.net.InetAddress address,
                                                     java.lang.String vendor)
        Returns all AssetField objects that are in packages that match the specified Vendor precisely. This relies on the WsManDetector issuing an Identify and populating the Vendor and Product fields.
        Specified by:
        getAssetFieldsForAddress in interface WsManAssetAdapterConfig