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
IOExceptionpublic Lock getReadLock()
getReadLock in interface WsManAssetAdapterConfigpublic Lock getWriteLock()
getWriteLock in interface WsManAssetAdapterConfigprotected void reloadXML(long lastModified,
InputStream stream)
throws IOException
IOExceptionpublic void update()
throws IOException
Update
update in interface WsManAssetAdapterConfigIOException - 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 WsManAssetAdapterConfigCopyright © 2022. All rights reserved.