io.sarl.sre.janus.boot
Interface RunnableSREBootstrap
All Superinterfaces:
SREBootstrap
All Known Implementing Classes:
SreMain
interface RunnableSREBootstrap
implements SREBootstrap
Interface that represents a SRE bootstrap that could be launch programmatically.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.13
Property Summary
Modifier and type Property and description
BQRuntimeFactory bootiqueRuntimeFactory
Replies the factory of the Bootique runtime.
Kernel kernel
Replies the reference to the kernel.
io.bootique.BQRuntime runtime
Replies the Bootique runtime instance.
Action Summary
Modifier and type Action and description
abstract BQRuntimeFactory getBootiqueRuntimeFactory
Replies the factory of the Bootique runtime.
abstract Kernel getKernel
Replies the reference to the kernel.
abstract io.bootique.BQRuntime getRuntime
Replies the Bootique runtime instance.
abstract int runSRE(String*)
Run the SRE.
abstract void setBootiqueRuntimeFactory(BQRuntimeFactory)
Change the factory of the Bootique runtime.
abstract boolean setRuntime(BQRuntime)
Set the Bootique runtime instance.
abstract void startBootAgent
Start the boot agent if it is specified in the boot configuration.
abstract AgentContext startWithoutAgent(boolean,[Bootique],[Class<T>])
Start the agent framework without agent.
Property Details
bootiqueRuntimeFactory
var bootiqueRuntimeFactory : BQRuntimeFactory
Replies the factory of the Bootique runtime.

This property is an alias for the action: getBootiqueRuntimeFactory

Returns:
the factory instance.
kernel
val kernel : Kernel
Replies the reference to the kernel.

This property is an alias for the action: getKernel

Returns:
the reference to the kernel.
runtime
val runtime : io.bootique.BQRuntime
Replies the Bootique runtime instance.

This property is an alias for the action: getRuntime

Returns:
the Bootique runtime.
Action Details
getBootiqueRuntimeFactory
def getBootiqueRuntimeFactory : BQRuntimeFactory
Replies the factory of the Bootique runtime.
Returns:
the factory instance.
getKernel
def getKernel : Kernel
Replies the reference to the kernel.
Returns:
the reference to the kernel.
getRuntime
def getRuntime : io.bootique.BQRuntime
Replies the Bootique runtime instance.
Returns:
the Bootique runtime.
runSRE(String*)
def runSRE(String*) : int
Run the SRE.

This function runs the SRE and exits with the return code.
Parameters:
args - the command line arguments.
Returns:
the exit code.
setBootiqueRuntimeFactory(BQRuntimeFactory)
def setBootiqueRuntimeFactory(BQRuntimeFactory)
Change the factory of the Bootique runtime.
Parameters:
factory - the factory instance.
setRuntime(BQRuntime)
def setRuntime(BQRuntime) : boolean
Set the Bootique runtime instance.
Parameters:
runtime - the new Bootique runtime.
Returns:
true if the runtime has been changed.
startBootAgent
def startBootAgent
Start the boot agent if it is specified in the boot configuration.
startWithoutAgent(boolean,[Bootique],[Class<T>])
def startWithoutAgent(boolean,[Bootique],[Class<T>]) : AgentContext
Start the agent framework without agent.
Parameters:
asCommandLineApp - indicates if the application should be started as a commend-line application. If true, the SRE is started and run directly. Then, the "start agent" functions becomes unusable because the SRE has started everything as it is called from the shell command line. If false, the SRE is started in is normal way and all the functions are available according to their own specifications. If it not recommended to invoke this function with this argument evaluated to true.
bootique - the Bootique instance to set up the framework. If it is null, the default Bootique instance is created.
module - the injection module to use. If it is null, the default module is used.