public class WsManAssetAdapterConfigManager extends Object implements WsManAssetAdapterConfig
Constructor and Description |
---|
WsManAssetAdapterConfigManager() |
WsManAssetAdapterConfigManager(long lastModified,
InputStream reader) |
Modifier and Type | Method and Description |
---|---|
AssetField[] |
getAssetFieldsForAddress(InetAddress address,
String vendor)
Returns all
AssetField objects that are in packages that match the specified
Vendor precisely. |
protected WsManAssetAdapterConfiguration |
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 WsManAssetAdapterConfigManager()
public WsManAssetAdapterConfigManager(long lastModified, InputStream reader) throws IOException
IOException
public Lock getReadLock()
getReadLock
in interface WsManAssetAdapterConfig
public Lock getWriteLock()
getWriteLock
in interface WsManAssetAdapterConfig
protected void reloadXML(long lastModified, InputStream stream) throws IOException
IOException
public void update() throws IOException
Update
update
in interface WsManAssetAdapterConfig
IOException
- if any.protected WsManAssetAdapterConfiguration getConfiguration()
org.opennms.netmgt.config.snmpAsset.adapter.WsManAssetAdapterConfiguration
object.public AssetField[] getAssetFieldsForAddress(InetAddress address, String vendor)
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.getAssetFieldsForAddress
in interface WsManAssetAdapterConfig
Copyright © 2021. All rights reserved.