public final class SnmpInterfacePollerConfigFactory extends SnmpInterfacePollerConfigManager
| Constructor and Description |
|---|
SnmpInterfacePollerConfigFactory(long currentVersion,
InputStream stream)
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, getDownValues, getDownValues, getInterfaceOnPackage, getInterval, getInterval, getIpList, getMaxVarsPerPdu, getPackage, getPackageForAddress, getPackageName, getPort, getRetries, getService, getStatus, getThreads, getTimeout, getUpValues, getUpValues, hasMaxVarsPerPdu, hasPort, hasRetries, hasTimeout, includeURLs, interfaceInPackage, packages, rebuildPackageIpListMap, reloadXML, save, useCriteriaFilterspublic SnmpInterfacePollerConfigFactory(long currentVersion,
InputStream stream)
throws IOException
Constructor for SnmpInterfacePollerConfigFactory.
currentVersion - a long.stream - a InputStream object.IOException - if any.public static void init()
throws IOException
IOException - Thrown if the specified config file cannot be readIOException - if any.public static void reload()
throws IOException
IOException - Thrown if the specified config file cannot be read/loadedIOException - if any.protected void saveXml(String xml) throws IOException
saveXml
saveXml in class SnmpInterfacePollerConfigManagerxml - 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
update
update in interface SnmpInterfacePollerConfigupdate in class SnmpInterfacePollerConfigManagerIOException - if any.Copyright © 2022. All rights reserved.