Package org.opennms.netmgt.config
Class SnmpAssetAdapterConfigFactory
- java.lang.Object
-
- org.opennms.netmgt.config.SnmpAssetAdapterConfigFactory
-
public class SnmpAssetAdapterConfigFactory extends Object
SnmpAssetAdapterConfigFactory
-
-
Constructor Summary
Constructors Constructor Description SnmpAssetAdapterConfigFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnmpAssetAdapterConfiggetInstance()Return the singleton instance of this factory.voidreload()Reload the config from the default config fileprotected voidsave(String xml)saveXml
-
-
-
Constructor Detail
-
SnmpAssetAdapterConfigFactory
public SnmpAssetAdapterConfigFactory() throws IOException- Throws:
IOException
-
-
Method Detail
-
reload
public void reload() throws IOExceptionReload the config from the default config file- Throws:
IOException- Thrown if the specified config file cannot be read/loadedIOException- if any.
-
save
protected void save(String xml) throws IOException
saveXml
- Parameters:
xml- aStringobject.- Throws:
IOException- if any.
-
getInstance
public SnmpAssetAdapterConfig getInstance()
Return the singleton instance of this factory.- Returns:
- The current factory instance.
- Throws:
IOExceptionIllegalStateException- Thrown if the factory has not yet been initialized.
-
-