public class SnmpAssetAdapterConfigFactory extends Object
SnmpAssetAdapterConfigFactory
| Constructor and Description |
|---|
SnmpAssetAdapterConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
SnmpAssetAdapterConfig |
getInstance()
Return the singleton instance of this factory.
|
void |
reload()
Reload the config from the default config file
|
protected void |
save(String xml)
saveXml
|
public SnmpAssetAdapterConfigFactory()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
org.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionpublic void reload()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
IOException - Thrown if the specified config file cannot be read/loadedorg.exolab.castor.xml.MarshalException - Thrown if the file does not conform to the schema.org.exolab.castor.xml.ValidationException - Thrown if the contents do not match the required schema.IOException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.protected void save(String xml) throws IOException
saveXml
xml - a String object.IOException - if any.public SnmpAssetAdapterConfig getInstance()
IOExceptionorg.exolab.castor.xml.ValidationExceptionorg.exolab.castor.xml.MarshalExceptionIllegalStateException - Thrown if the factory has not yet been initialized.Copyright © 2017. All rights reserved.