public class SnmpAssetAdapterConfigManager extends Object implements SnmpAssetAdapterConfig
Abstract RancidAdapterConfigManager class.
| Constructor and Description | 
|---|
SnmpAssetAdapterConfigManager()
Constructor for RancidAdapterConfigManager. 
 | 
SnmpAssetAdapterConfigManager(long lastModified,
                             InputStream reader)
Constructor for RancidAdapterConfigManager. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
AssetField[] | 
getAssetFieldsForAddress(InetAddress address,
                        String sysoid)
Returns all  
AssetField objects that are in packages that match the specified
 sysoid precisely based on the  | 
protected SnmpAssetAdapterConfiguration | 
getConfiguration()
Return the configuration object. 
 | 
Lock | 
getReadLock()  | 
Lock | 
getWriteLock()  | 
protected void | 
reloadXML(long lastModified,
         InputStream stream)
Synchronized so that we update the timestamp of the file and the contents
 simultaneously. 
 | 
void | 
update()
Update 
 | 
public SnmpAssetAdapterConfigManager()
Constructor for RancidAdapterConfigManager.
public SnmpAssetAdapterConfigManager(long lastModified,
                                     InputStream reader)
                              throws IOException
Constructor for RancidAdapterConfigManager.
reader - a InputStream object.verifyServer - a boolean.serverName - a String object.IOException - if any.public Lock getReadLock()
getReadLock in interface SnmpAssetAdapterConfigpublic Lock getWriteLock()
getWriteLock in interface SnmpAssetAdapterConfigprotected void reloadXML(long lastModified,
                         InputStream stream)
                  throws IOException
reader - a InputStream object.IOException - if any.public void update()
            throws IOException
Update
update in interface SnmpAssetAdapterConfigIOException - if any.protected SnmpAssetAdapterConfiguration getConfiguration()
SnmpAssetAdapterConfiguration object.public AssetField[] getAssetFieldsForAddress(InetAddress address, String sysoid)
AssetField objects that are in packages that match the specified
 sysoid precisely based on the getAssetFieldsForAddress in interface SnmpAssetAdapterConfigCopyright © 2021. All rights reserved.