public final class ScriptdConfigFactory extends Object
Modifier and Type | Method and Description |
---|---|
List<Engine> |
getEngines()
Return the array of configured engines.
|
List<EventScript> |
getEventScripts()
Return the array of configured event scripts.
|
static ScriptdConfigFactory |
getInstance()
Return the singleton instance of this factory.
|
List<ReloadScript> |
getReloadScripts()
Return the array of reload scripts.
|
List<StartScript> |
getStartScripts()
Return the array of start scripts.
|
List<StopScript> |
getStopScripts()
Return the array of stop scripts.
|
Boolean |
getTransactional() |
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
|
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 ScriptdConfigFactory getInstance()
IllegalStateException
- Thrown if the factory has not yet been initialized.public List<Engine> getEngines()
public List<StartScript> getStartScripts()
public List<StopScript> getStopScripts()
public List<ReloadScript> getReloadScripts()
public List<EventScript> getEventScripts()
public Boolean getTransactional()
Copyright © 2021. All rights reserved.