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