io.sarl.sre.janus.boot
Class SreMain
All Superinterfaces:
SREBootstrap, RunnableSREBootstrap
class SreMain
extends java.lang.Object
implements RunnableSREBootstrap
Class that implements the standard main function for running a SARL run-time environment with bootique modules.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.9
Property Summary
Modifier and type Property and description
BQRuntimeFactory bootiqueRuntimeFactory
Kernel kernel
java.util.logging.Logger kernelLogger
io.bootique.BQRuntime runtime
java.util.UUID universeContextUUID
java.util.UUID universeSpaceUUID
Action Summary
Modifier and type Action and description
void addSREListener(SREListener)
static java.lang.String filterCommandLineArguments(String)
Filter the command-line arguments for extracting the -D parameters.
protected void fireSREStarted
Notifies the observers that the SRE has been started.
protected void fireSREStopped
Notifies the observers that the SRE has been stopped.
BQRuntimeFactory getBootiqueRuntimeFactory
Kernel getKernel
java.util.logging.Logger getKernelLogger
io.bootique.BQRuntime getRuntime
T getService(Class<T>)
java.util.UUID getUniverseContextUUID
java.util.UUID getUniverseSpaceUUID
boolean isRunning
void removeSREListener(SREListener)
int runSRE(String*)
void setBootAgentTypeContextUUID
void setBootiqueRuntimeFactory(BQRuntimeFactory)
void setCommandLineArguments(String)
void setRandomContextUUID
boolean setRuntime(BQRuntime)
void setSpecificContextUUID
void setUniverseContextUUID(UUID)
void setUniverseSpaceUUID(UUID)
void setVerboseLevel(int)
void shutdown(int)
void startAgent(Class<T>,Object*)
void startAgent(int,Class<T>,Object*)
void startAgentWithID(Class<T>,UUID,Object*)
void startBootAgent
AgentContext startWithoutAgent(boolean,[Bootique],[Class<T>])
Property Details
bootiqueRuntimeFactory
var bootiqueRuntimeFactory : BQRuntimeFactory

This property is an alias for the action: getBootiqueRuntimeFactory

kernel
val kernel : Kernel

This property is an alias for the action: getKernel

kernelLogger
val kernelLogger : java.util.logging.Logger

This property is an alias for the action: getKernelLogger

runtime
val runtime : io.bootique.BQRuntime

This property is an alias for the action: getRuntime

universeContextUUID
var universeContextUUID : java.util.UUID

This property is an alias for the action: getUniverseContextUUID

universeSpaceUUID
var universeSpaceUUID : java.util.UUID

This property is an alias for the action: getUniverseSpaceUUID

Action Details
addSREListener(SREListener)
def addSREListener(SREListener)
filterCommandLineArguments(String)
def filterCommandLineArguments(String) : java.lang.String
Filter the command-line arguments for extracting the -D parameters.
Parameters:
args - the arguments.
Returns:
the filtered arguments.
Since:
0.12
fireSREStarted
protected def fireSREStarted
Notifies the observers that the SRE has been started.
Since:
0.11
fireSREStopped
protected def fireSREStopped
Notifies the observers that the SRE has been stopped.
Since:
0.11
getBootiqueRuntimeFactory
def getBootiqueRuntimeFactory : BQRuntimeFactory
getKernel
def getKernel : Kernel
getKernelLogger
def getKernelLogger : java.util.logging.Logger
getRuntime
def getRuntime : io.bootique.BQRuntime
getService(Class<T>)
def getService(Class<T>) : T

with T

getUniverseContextUUID
def getUniverseContextUUID : java.util.UUID
getUniverseSpaceUUID
def getUniverseSpaceUUID : java.util.UUID
isRunning
def isRunning : boolean
removeSREListener(SREListener)
def removeSREListener(SREListener)
runSRE(String*)
def runSRE(String*) : int
setBootAgentTypeContextUUID
def setBootAgentTypeContextUUID
setBootiqueRuntimeFactory(BQRuntimeFactory)
def setBootiqueRuntimeFactory(BQRuntimeFactory)
setCommandLineArguments(String)
def setCommandLineArguments(String)
setRandomContextUUID
def setRandomContextUUID
setRuntime(BQRuntime)
def setRuntime(BQRuntime) : boolean
setSpecificContextUUID
def setSpecificContextUUID
setUniverseContextUUID(UUID)
def setUniverseContextUUID(UUID)
setUniverseSpaceUUID(UUID)
def setUniverseSpaceUUID(UUID)
setVerboseLevel(int)
def setVerboseLevel(int)
shutdown(int)
def shutdown(int)
startAgent(Class<T>,Object*)
def startAgent(Class<T>,Object*)
startAgent(int,Class<T>,Object*)
def startAgent(int,Class<T>,Object*)
startAgentWithID(Class<T>,UUID,Object*)
def startAgentWithID(Class<T>,UUID,Object*)
startBootAgent
def startBootAgent
startWithoutAgent(boolean,[Bootique],[Class<T>])
def startWithoutAgent(boolean,[Bootique],[Class<T>]) : AgentContext