public class InjectionBasedLifecycleService extends AbstractLifecycleService
AbstractLifecycleService.AgentIdProvider, AbstractLifecycleService.ShutdownLookUp
Constructor and Description |
---|
InjectionBasedLifecycleService(injector : com.google.inject.Injector,
sarlSpecificationChecker : SarlSpecificationChecker,
skillProvider : DynamicSkillProvider,
globalListeners : SmartListenerCollection<?>,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
sreConfig : SreConfig)
Constructs the service with the given (injected) injector.
|
InjectionBasedLifecycleService(sarlSpecificationChecker : SarlSpecificationChecker,
creator : AgentCreatorProvider,
globalListeners : SmartListenerCollection<?>,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
lifecycleConfig : LifecycleConfig)
Constructs the service.
|
addDynamicSkillProvider, addKernelAgentLifecycleListener, addLifecycleServiceListener, canSpawnAgent, fireAgentDestroy, fireAgentDestructionEvents, fireAgentSpawned, fireAgentSpawningErrorEvents, fireAgentSpawningEvents, fireKernelAgentDestroy, getDynamicSkillProviders, getLoggingService, getSpawnEnable, isAlive, isEmptyRootContext, isKillableAgent, killAgent, onAgentCreated, onAgentFrameworkStop, onAgentKilled, onStart, onStop, removeDynamicSkillProvider, removeKernelAgentLifecycleListener, removeLifecycleServiceListener, setSpawnEnable, spawnAgent, spawnAgent
doStart, doStop
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
@Inject
public new
(injector : com.google.inject.Injector,
sarlSpecificationChecker : SarlSpecificationChecker,
skillProvider : DynamicSkillProvider,
globalListeners : SmartListenerCollection<?>,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
sreConfig : SreConfig)
injector
- the injector that should be used by this service for creating the agents.sarlSpecificationChecker
- the tool for checking the validity of the SARL specification supported by
the agents to launch.skillProvider
- the provider of skills that should be used to init the agents.globalListeners
- is the collection of global listeners to use.lockProvider
- the provider of locks.lifecycleListener
- the listener at the platform scale on life cycle events.externalContextListener
- the listener at the platform scale on context membership events.skillUninstaller
- the object this is able to uninstall the skills.executor
- the executor service.logger
- the logging service.sreConfig
- the configuration of the SRE.public new
(sarlSpecificationChecker : SarlSpecificationChecker,
creator : AgentCreatorProvider,
globalListeners : SmartListenerCollection<?>,
lifecycleListener : javax.inject.Provider<LifecycleServiceListener>,
externalContextListener : javax.inject.Provider<ExternalContextMemberListener>,
skillUninstaller : SkillUninstaller,
executor : ExecutorService,
logger : LoggingService,
lifecycleConfig : LifecycleConfig)
sarlSpecificationChecker
- the tool for checking the validity of the SARL specification supported by
the agents to launch.creator
- the provider of agent creators that is used when spawning agents.globalListeners
- is the collection of global listeners to use.lockProvider
- the provider of locks.lifecycleListener
- the listener at the platform scale on life cycle events.externalContextListener
- the listener at the platform scale on context membership events.skillUninstaller
- the object this is able to uninstall the skills.executor
- the executor service.logger
- the logging service.lifecycleConfig
- the configuration of the lifecycle service.Copyright © 2020 the original authors or authors.