io.sarl.sre.janus.boot.configs.subconfigs
Class LifecycleConfig
class LifecycleConfig
extends java.lang.Object
Configuration for the agent lifecycle management.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.11
Property Summary
Modifier and type Property and description
int agentSpawningCountPerThread
EventBusType eventBusType
Field Summary
Modifier and type Field and description
public static val java.lang.String AGENT_SPAWNING_COUNT_PER_THREAD_NAME
Name of property that indicates the maximal number of agents that could be spawn by a single thread of the lifecycle service.
public static val int AGENT_SPAWNING_COUNT_PER_THREAD_VALUE
Indicates the maximal number of agents that could be spawn by a single thread of the lifecycle service.
public static val java.lang.String CREATE_AGENT_WITH_INJECTOR_NAME
Name of property that indicates if agents must be created by an injector.
public static val boolean CREATE_AGENT_WITH_INJECTOR_VALUE
Indicates if the agents must be created with an injector by default.
public static val java.lang.String ENABLE_INJECTABLE_ANNOTATION_NAME
Name of property that indicates if the support of the @Injectable is enable when the creation of the agents is not injection based.
public static val boolean ENABLE_INJECTABLE_ANNOTATION_VALUE
Indicates if the support of the @Injectable is enable when the creation of the agents is not injection based.
public static val java.lang.String EVENT_BUS_TYPE_NAME
Name of property that indicates the type of the event bus to create for each agent.
public static val EventBusType EVENT_BUS_TYPE_VALUE
Indicates the type of event bus to create for each agent.
public static val java.lang.String PREFIX
Prefix for the configuration entries of the lifecycle configuration.
Action Summary
Modifier and type Action and description
int getAgentSpawningCountPerThread
EventBusType getEventBusType
boolean isCreateAgentsWithInjector
boolean isEnableInjectableSupport
void setAgentSpawningCountPerThread(int)
Change the maximal number of agents that could be spawn by a single thread of the lifecycle service.
void setCreateAgentsWithInjector(boolean)
Change the flag that indicates if the agents must be created with injector, or not.
void setEnableInjectableSupport(boolean)
Change the flag that indicates the @Injectable annotation is supported when the agents are not created with an injector.
void setEventBusType(EventBusType)
Change the type of event bus to be created for each agent.
Property Details
agentSpawningCountPerThread
var agentSpawningCountPerThread : int

This property is an alias for the action: getAgentSpawningCountPerThread

eventBusType
var eventBusType : EventBusType

This property is an alias for the action: getEventBusType

Field Details
AGENT_SPAWNING_COUNT_PER_THREAD_NAME
public static val AGENT_SPAWNING_COUNT_PER_THREAD_NAME : java.lang.String = "sre.services.lifecycle.agentSpawningCountPerThread"
Name of property that indicates the maximal number of agents that could be spawn by a single thread of the lifecycle service. This value is used to create threads that are spawning blocks of agents.
Since:
0.11
See:
AGENT_SPAWNING_COUNT_PER_THREAD_VALUE
AGENT_SPAWNING_COUNT_PER_THREAD_VALUE
public static val AGENT_SPAWNING_COUNT_PER_THREAD_VALUE : int = 128
Indicates the maximal number of agents that could be spawn by a single thread of the lifecycle service. This value is used to create threads that are spawning blocks of agents.
Since:
0.11
See:
AGENT_SPAWNING_COUNT_PER_THREAD_NAME
CREATE_AGENT_WITH_INJECTOR_NAME
public static val CREATE_AGENT_WITH_INJECTOR_NAME : java.lang.String = "sre.services.lifecycle.createAgentsWithInjector"
Name of property that indicates if agents must be created by an injector.
See:
CREATE_AGENT_WITH_INJECTOR_VALUE
CREATE_AGENT_WITH_INJECTOR_VALUE
public static val CREATE_AGENT_WITH_INJECTOR_VALUE : boolean = false
Indicates if the agents must be created with an injector by default.
See:
CREATE_AGENT_WITH_INJECTOR_NAME
ENABLE_INJECTABLE_ANNOTATION_NAME
public static val ENABLE_INJECTABLE_ANNOTATION_NAME : java.lang.String = "sre.services.lifecycle.enableInjectableAnnotation"
Name of property that indicates if the support of the @Injectable is enable when the creation of the agents is not injection based.
Since:
0.12
See:
ENABLE_INJECTABLE_ANNOTATION_VALUE
ENABLE_INJECTABLE_ANNOTATION_VALUE
public static val ENABLE_INJECTABLE_ANNOTATION_VALUE : boolean = true
Indicates if the support of the @Injectable is enable when the creation of the agents is not injection based.
Since:
0.12
See:
ENABLE_INJECTABLE_ANNOTATION_NAME
EVENT_BUS_TYPE_NAME
public static val EVENT_BUS_TYPE_NAME : java.lang.String = "sre.services.lifecycle.eventBusType"
Name of property that indicates the type of the event bus to create for each agent.
Since:
0.12
See:
EVENT_BUS_TYPE_VALUE
EVENT_BUS_TYPE_VALUE
public static val EVENT_BUS_TYPE_VALUE : EventBusType
Indicates the type of event bus to create for each agent.
Since:
0.12
See:
EVENT_BUS_TYPE_NAME
PREFIX
public static val PREFIX : java.lang.String = "sre.services.lifecycle"
Prefix for the configuration entries of the lifecycle configuration.
Action Details
getAgentSpawningCountPerThread
def getAgentSpawningCountPerThread : int
getEventBusType
def getEventBusType : EventBusType
isCreateAgentsWithInjector
def isCreateAgentsWithInjector : boolean
isEnableInjectableSupport
def isEnableInjectableSupport : boolean
setAgentSpawningCountPerThread(int)
def setAgentSpawningCountPerThread(int)
Change the maximal number of agents that could be spawn by a single thread of the lifecycle service. This value is used to create threads that are spawning blocks of agents.
Parameters:
number - is the number of agent to be spawned.
Since:
0.11
setCreateAgentsWithInjector(boolean)
def setCreateAgentsWithInjector(boolean)
Change the flag that indicates if the agents must be created with injector, or not.
Parameters:
useInjector - is true if the agents should be created by an injector.
setEnableInjectableSupport(boolean)
def setEnableInjectableSupport(boolean)
Change the flag that indicates the @Injectable annotation is supported when the agents are not created with an injector.
Parameters:
enableInjectable - is true if agents ar injected if their are annoted with @Injectable.
Since:
0.12
setEventBusType(EventBusType)
def setEventBusType(EventBusType)
Change the type of event bus to be created for each agent.
Parameters:
type - the type of event bus.
Since:
0.12