public final class OpennmsServerConfigFactory extends OpennmsServerConfigManager
| Constructor and Description |
|---|
OpennmsServerConfigFactory(InputStream is)
Constructor for OpennmsServerConfigFactory.
|
| Modifier and Type | Method and Description |
|---|---|
static OpennmsServerConfigFactory |
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
|
static void |
setInstance(OpennmsServerConfigFactory instance)
setInstance
|
getDefaultCriticalPathIp, getDefaultCriticalPathRetries, getDefaultCriticalPathService, getDefaultCriticalPathTimeout, getServerName, verifyServerpublic OpennmsServerConfigFactory(InputStream is)
Constructor for OpennmsServerConfigFactory.
is - a InputStream object.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.public static OpennmsServerConfigFactory getInstance()
IllegalStateException - Thrown if the factory has not yet been initialized.public static void setInstance(OpennmsServerConfigFactory instance)
setInstance
instance - a OpennmsServerConfigFactory object.Copyright © 2020. All rights reserved.