public final class PollOutagesConfigFactory extends PollOutagesConfigManager
AbstractJaxbConfigDao.JaxbReloadCallback
Constructor and Description |
---|
PollOutagesConfigFactory(org.springframework.core.io.Resource resource)
Create a PollOutagesConfigFactory using the specified Spring resource.
|
Modifier and Type | Method and Description |
---|---|
static PollOutagesConfigFactory |
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(PollOutagesConfigFactory instance)
setInstance
|
addOutage, afterPropertiesSet, getEndOfOutage, getEndOfOutage, getInterfaces, getNodeIds, getObject, getOutage, getOutages, getOutageTimes, getOutageType, isCurTimeInOutage, isCurTimeInOutage, isInterfaceInOutage, isInterfaceInOutage, isNodeIdInOutage, isNodeIdInOutage, isTimeInOutage, isTimeInOutage, isTimeInOutage, removeOutage, removeOutage, replaceOutage, translateConfig
getReadLock, getWriteLock, saveCurrent, update
getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
update
public PollOutagesConfigFactory(org.springframework.core.io.Resource resource)
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 PollOutagesConfigFactory getInstance()
IllegalStateException
- Thrown if the factory has not yet been initialized.public static void setInstance(PollOutagesConfigFactory instance)
setInstance
instance
- a PollOutagesConfigFactory
object.Copyright © 2017. All rights reserved.