io.sarl.sre.janus.boot.commands
Class AbstractRunCommand
All Superinterfaces:
io.bootique.command.Command
All Known Subclasses:
RunSingleAgentCommand, RunWithoutAgentCommand
abstract class AbstractRunCommand
extends java.lang.Object
Abstract command for running the SRE without agent at boot time.

This abstract command provides helping tools for implementing a launching command.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.9
Property Summary
Modifier and type Property and description
protected SREBootstrap sREBootstrap
Replies the SRE bootstrap.
Field Summary
Modifier and type Field and description
protected val javax.inject.Provider<T> configuration
Launching configuration.
Constructor Summary
Constructor and description
new(Provider<T>,Builder)
Constructor.
Action Summary
Modifier and type Action and description
protected SREBootstrap getSREBootstrap
Replies the SRE bootstrap.
protected boolean isAgentType(String)
Replies if the given value is the fully qualified name of an agent's type.
protected void startAgentsFromConfig(SREBootstrap,BootConfig)
Start all the boot agents that are defined into the configuration.
protected BootConfig synchronizeCliWithBootConfig(Cli,int)
Synchronizes the command-line arguments and the SRE configuration.
Property Details
sREBootstrap
protected val sREBootstrap : SREBootstrap
Replies the SRE bootstrap.

This property is an alias for the action: getSREBootstrap

Returns:
the SRE bootstrap.
Field Details
configuration
protected val configuration : javax.inject.Provider<T>
Launching configuration.
Constructor Details
new(Provider<T>,Builder)
new(Provider<T>,Builder)
Constructor.
Parameters:
configuration - the configuration of the tool.
commandBuilder - the builder of the command.
Action Details
getSREBootstrap
protected def getSREBootstrap : SREBootstrap
Replies the SRE bootstrap.
Returns:
the SRE bootstrap.
isAgentType(String)
protected def isAgentType(String) : boolean
Replies if the given value is the fully qualified name of an agent's type. An agent's type is a Class that extends the Agent type.
Parameters:
value - the value to test.
Returns:
true if the given value is the fully qualified name of an agent's type.
startAgentsFromConfig(SREBootstrap,BootConfig)
protected def startAgentsFromConfig(SREBootstrap,BootConfig)
Start all the boot agents that are defined into the configuration.
Parameters:
bootstrap - the SRE bootstrap.
config - the configuration to use.
synchronizeCliWithBootConfig(Cli,int)
protected def synchronizeCliWithBootConfig(Cli,int) : BootConfig
Synchronizes the command-line arguments and the SRE configuration. This function gets the arguments from the given Cli and updates the SreConfig.
Parameters:
args - the definition of the command line arguments
maxNbAgents - is the maximum number of agents to be launched.
Returns:
the boot configuration.