io.sarl.sre.janus.services.lifecycle
Interface LifecycleServiceListener
All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
AgentEventEmitter, LifecycleServiceAdapter
interface LifecycleServiceListener
implements java.util.EventListener
Listener on events related to the life-cycle of an agent.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Nested Type Summary
Modifier and type Type and description
class LifecycleServiceListener.LifecycleServiceAdapter
Event adapter on events related to the life-cycle of an agent.
Action Summary
Modifier and type Action and description
abstract void agentDestroyed(Agent,ConcurrentCollection<T>,Object)
Invoked when the agent is destroyed.
abstract void agentKillFailure(UUID,ContextReference,Object)
Invoked when the agent killing has failed.
abstract void agentSpawned(UUID,Context,Class<T>,Agent,Object)
Invoked when the agent is spawned.
abstract void agentSpawnFailure(UUID,Context,Class<T>,Object)
Invoked when the agent spawning has failed.
Action Details
agentDestroyed(Agent,ConcurrentCollection<T>,Object)
def agentDestroyed(Agent,ConcurrentCollection<T>,Object)
Invoked when the agent is destroyed.
Parameters:
agent - the destroyed agent.
outerContexts - the contexts from which the given agent were removed after its destruction.
terminationCause - the cause of the termination of the agent. If it is null, the agent was destroyed without providing a reason.
agentKillFailure(UUID,ContextReference,Object)
def agentKillFailure(UUID,ContextReference,Object)
Invoked when the agent killing has failed.
Parameters:
killingAgent - the identifier of the agent tried to be killed.
innerContext - the inner context of the agent.
cause - the cause of the failure
agentSpawned(UUID,Context,Class<T>,Agent,Object)
def agentSpawned(UUID,Context,Class<T>,Agent,Object)
Invoked when the agent is spawned.
Parameters:
spawningAgent - the identifier of the agent which spawns the given agent, if null, the root agent (Janus kernel) is assumed.
parent - the context in which the agent was created.
agentType - the type of the spawned agents.
spawnedAgent - the spawned agent.
initializationParameters - list of parameters that were passed to the agent.
agentSpawnFailure(UUID,Context,Class<T>,Object)
def agentSpawnFailure(UUID,Context,Class<T>,Object)
Invoked when the agent spawning has failed.
Parameters:
spawningAgent - the identifier of the agent which spawns the given agent.
parent - the context in which the agent was created.
agentType - the type of the spawned agents.
cause - the cause of the failure.