io.sarl.sre.janus.boot.configs.subconfigs
Class ServicesConfig
class ServicesConfig
extends java.lang.Object
Configuration of the SRE services.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.8
Property Summary
Modifier and type Property and description
boolean asynchronousProbeUpdate
ExecutorsConfig executors
Replies the parallel execution configuration.
LifecycleConfig lifecycle
Replies the agent lifecycle configuration.
LoggingConfig logging
Replies the SRE logging configuration.
long startTimeout
long stopTimeout
Field Summary
Modifier and type Field and description
public static val java.lang.String ASYNCHRONOUS_PROBE_UPDATE_NAME
Name of the property for the flag that indicates if the probe manager uses an asynchronous update mechanism.
public static val boolean ASYNCHRONOUS_PROBE_UPDATE_VALUE
The default value for the flag that indicates if the probe manager uses an asynchronous update mechanism.
public static val java.lang.String PREFIX
Prefix for the configuration entries of the services' configurations.
public static val java.lang.String START_TIMEOUT_NAME
Name of the property for the default timeout for services' start in milliseconds.
public static val long START_TIMEOUT_VALUE
The default timeout for services' start in milliseconds.
public static val java.lang.String STOP_TIMEOUT_NAME
Name of the property for the default timeout for services' stop in milliseconds.
public static val long STOP_TIMEOUT_VALUE
The default timeout for services' stop in milliseconds.
Action Summary
Modifier and type Action and description
boolean getAsynchronousProbeUpdate
ExecutorsConfig getExecutors
Replies the parallel execution configuration.
LifecycleConfig getLifecycle
Replies the agent lifecycle configuration.
LoggingConfig getLogging
Replies the SRE logging configuration.
long getStartTimeout
long getStopTimeout
void setAsynchronousProbeUpdate(boolean)
Change the flag that enables to select the type of probe manager
void setExecutors(ExecutorsConfig)
Change the parallel execution configuration.
void setLifecycle(LifecycleConfig)
Change the agent lifecycle configuration.
void setLogging(LoggingConfig)
Change the SRE logging configuration.
long setStartTimeout(long)
Change the timeout for the start of all the services.
long setStopTimeout(long)
Change the timeout for the stop of all the services.
Property Details
asynchronousProbeUpdate
var asynchronousProbeUpdate : boolean

This property is an alias for the action: getAsynchronousProbeUpdate

executors
var executors : ExecutorsConfig
Replies the parallel execution configuration.

This property is an alias for the action: getExecutors

Returns:
the parallel execution configuration.
lifecycle
var lifecycle : LifecycleConfig
Replies the agent lifecycle configuration.

This property is an alias for the action: getLifecycle

Returns:
the agent lifecycle configuration.
Since:
0.11
logging
var logging : LoggingConfig
Replies the SRE logging configuration.

This property is an alias for the action: getLogging

Returns:
the SRE logging configuration.
Since:
0.11
startTimeout
val startTimeout : long

This property is an alias for the action: getStartTimeout

stopTimeout
val stopTimeout : long

This property is an alias for the action: getStopTimeout

Field Details
ASYNCHRONOUS_PROBE_UPDATE_NAME
public static val ASYNCHRONOUS_PROBE_UPDATE_NAME : java.lang.String = "sre.services.asynchronousProbeUpdate"
Name of the property for the flag that indicates if the probe manager uses an asynchronous update mechanism.
See:
ASYNCHRONOUS_PROBE_UPDATE_VALUE
ASYNCHRONOUS_PROBE_UPDATE_VALUE
public static val ASYNCHRONOUS_PROBE_UPDATE_VALUE : boolean = true
The default value for the flag that indicates if the probe manager uses an asynchronous update mechanism.
See:
ASYNCHRONOUS_PROBE_UPDATE_NAME
PREFIX
public static val PREFIX : java.lang.String = "sre.services"
Prefix for the configuration entries of the services' configurations.
START_TIMEOUT_NAME
public static val START_TIMEOUT_NAME : java.lang.String = "sre.services.startTimeout"
Name of the property for the default timeout for services' start in milliseconds.
See:
START_TIMEOUT_VALUE
START_TIMEOUT_VALUE
public static val START_TIMEOUT_VALUE : long = 0
The default timeout for services' start in milliseconds.
See:
START_TIMEOUT_NAME
STOP_TIMEOUT_NAME
public static val STOP_TIMEOUT_NAME : java.lang.String = "sre.services.stopTimeout"
Name of the property for the default timeout for services' stop in milliseconds.
See:
STOP_TIMEOUT_VALUE
STOP_TIMEOUT_VALUE
public static val STOP_TIMEOUT_VALUE : long = 10000
The default timeout for services' stop in milliseconds.
See:
STOP_TIMEOUT_NAME
Action Details
getAsynchronousProbeUpdate
def getAsynchronousProbeUpdate : boolean
getExecutors
def getExecutors : ExecutorsConfig
Replies the parallel execution configuration.
Returns:
the parallel execution configuration.
getLifecycle
def getLifecycle : LifecycleConfig
Replies the agent lifecycle configuration.
Returns:
the agent lifecycle configuration.
Since:
0.11
getLogging
def getLogging : LoggingConfig
Replies the SRE logging configuration.
Returns:
the SRE logging configuration.
Since:
0.11
getStartTimeout
def getStartTimeout : long
getStopTimeout
def getStopTimeout : long
setAsynchronousProbeUpdate(boolean)
def setAsynchronousProbeUpdate(boolean)
Change the flag that enables to select the type of probe manager
Parameters:
doAsync - is true if the asynchronous update is prefered.
setExecutors(ExecutorsConfig)
def setExecutors(ExecutorsConfig)
Change the parallel execution configuration.
Parameters:
config - the parallel execution configuration.
setLifecycle(LifecycleConfig)
def setLifecycle(LifecycleConfig)
Change the agent lifecycle configuration.
Parameters:
config - the agent lifecycle configuration.
Since:
0.11
setLogging(LoggingConfig)
def setLogging(LoggingConfig)
Change the SRE logging configuration.
Parameters:
config - the SRE logging configuration.
Since:
0.11
setStartTimeout(long)
def setStartTimeout(long) : long
Change the timeout for the start of all the services.
Parameters:
timeout - the new timeout in milliseconds.
setStopTimeout(long)
def setStopTimeout(long) : long
Change the timeout for the stop of all the services.
Parameters:
timeout - the new timeout in milliseconds.