public final class SnmpInterfacePollerConfigFactory extends SnmpInterfacePollerConfigManager
Constructor and Description |
---|
SnmpInterfacePollerConfigFactory(long currentVersion,
InputStream stream,
String localServer,
boolean verifyServer)
Constructor for SnmpInterfacePollerConfigFactory.
|
Modifier and Type | Method and Description |
---|---|
static SnmpInterfacePollerConfig |
getInstance()
Return the singleton instance of this factory.
|
static void |
init()
Load the config from the default config file and create the singleton
instance of this factory.
|
static void |
reload()
Reload the config from the default config file
|
protected void |
saveXml(String xml)
saveXml
|
static void |
setInstance(SnmpInterfacePollerConfig instance)
setInstance
|
void |
update()
update
|
addPackage, enumeratePackage, getAllPackageMatches, getConfiguration, getCriteria, getCriticalServiceIds, getInterfaceOnPackage, getInterval, getInterval, getIpList, getMaxVarsPerPdu, getPackage, getPackageForAddress, getPackageName, getPort, getRetries, getService, getStatus, getThreads, getTimeout, hasMaxVarsPerPdu, hasPort, hasRetries, hasTimeout, includeURLs, interfaceInPackage, packages, rebuildPackageIpListMap, reloadXML, save, useCriteriaFilters
public SnmpInterfacePollerConfigFactory(long currentVersion, InputStream stream, String localServer, boolean verifyServer) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
Constructor for SnmpInterfacePollerConfigFactory.
currentVersion
- a long.stream
- a InputStream
object.localServer
- a String
object.verifyServer
- a boolean.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.IOException
- if any.public static void init() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
IOException
- Thrown if the specified config file cannot be readorg.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.public static 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 saveXml(String xml) throws IOException
saveXml
saveXml
in class SnmpInterfacePollerConfigManager
xml
- a String
object.IOException
- if any.public static SnmpInterfacePollerConfig getInstance()
IllegalStateException
- Thrown if the factory has not yet been initialized.public static void setInstance(SnmpInterfacePollerConfig instance)
setInstance
instance
- a SnmpInterfacePollerConfig
object.public void update() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
update
update
in interface SnmpInterfacePollerConfig
update
in class SnmpInterfacePollerConfigManager
IOException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.Copyright © 2017. All rights reserved.