Modifier and type | Property and description |
---|---|
java.util.logging.Logger | kernelLogger
Replies the logger used by the SRE. |
java.util.UUID | universeContextUUID
Replies the UUID of the root/universe context that is given by the user of the bootstrap. |
java.util.UUID | universeSpaceUUID
Replies the UUID of the root/universe default space that is given by the user of the bootstrap. |
Modifier and type | Action and description |
---|---|
abstract void | addSREListener(SREListener)
Add an observer on the SRE. |
default java.util.logging.Logger | getKernelLogger
Replies the logger used by the SRE. |
abstract T | getService(Class<T>)
Replies the service of the given type that is implemented into the SRE. |
default java.util.UUID | getUniverseContextUUID
Replies the UUID of the root/universe context that is given by the user of the bootstrap. |
default java.util.UUID | getUniverseSpaceUUID
Replies the UUID of the root/universe default space that is given by the user of the bootstrap. |
abstract void | injectMembers(Object)
Inject the given object with the components provided by the SRE. |
default boolean | isActive
Replies if the bootstrap could be used. |
default boolean | isRunning
Replies if the kernel is running. |
abstract void | removeSREListener(SREListener)
Remove the given observer on the SRE. |
default void | setBootAgentTypeContextUUID
Force the SRE platform to use a default context identifier that is build upon the classname of the boot agent. |
abstract void | setCommandLineArguments(String)
Specify arguments that should be used by the SRE as command-line arguments. |
default void | setOffline(boolean)
Set offline flag of the agent platform before it is launched.
Deprecated for removal since 0.12: since 0.12, no direct replacement
|
default void | setRandomContextUUID
Force the SRE platform to use a random identifier for its default context. |
default void | setSpecificContextUUID
Force the SRE platform to use the identifier hard-coded in the source code for its default context. |
default void | setUniverseContextUUID(UUID)
Force the identifier of the root/universe context in case the SRE is run when the default identifier mode is enabled. |
default void | setUniverseSpaceUUID(UUID)
Force the identifier of the root/universe default space in case the SRE is run when the default identifier mode is enabled. |
default void | setVerboseLevel(int)
Force the verbosity level. |
default void | shutdown
Stop the SRE. |
default void | shutdown(boolean)
Stop the SRE. |
abstract void | shutdown(int)
Stop the SRE. |
abstract void | startAgent(Class<T>,Object*)
Launch the SRE and the first agent in the kernel. |
abstract void | startAgent(int,Class<T>,Object*)
Launch the SRE and the first agent in the kernel. |
abstract void | startAgentWithID(Class<T>,UUID,Object*)
Launch the SRE and the first agent in the kernel and assigning a specific UUID. |
default AgentContext | startWithoutAgent
Start the SRE without an agent. |
abstract AgentContext | startWithoutAgent(boolean)
Start the SRE without an agent. |
val kernelLogger : java.util.logging.Logger
null
value only if the kernel was launched.
This property is an alias for the action: getKernelLogger
var universeContextUUID : java.util.UUID
This property is an alias for the action: getUniverseContextUUID
var universeSpaceUUID : java.util.UUID
This property is an alias for the action: getUniverseSpaceUUID
def addSREListener(SREListener)
def getKernelLogger : java.util.logging.Logger
null
value only if the kernel was launched.
def getService(Class<T>) : Twith T
def getUniverseContextUUID : java.util.UUID
def getUniverseSpaceUUID : java.util.UUID
def injectMembers(Object)
def isActive : boolean
def isRunning : boolean
def removeSREListener(SREListener)
def setBootAgentTypeContextUUID
def setCommandLineArguments(String)
def setOffline(boolean)
def setRandomContextUUID
def setSpecificContextUUID
def setUniverseContextUUID(UUID)
def setUniverseSpaceUUID(UUID)
def setVerboseLevel(int)
level
argument does not depend on a specific logging infrastructure. Indeed, JUL, Log4J and SLF4J attach different numeric values to the different logging levels. Consequently, the numerical values that are assumed by this function are:
<= 0
: off, no logging.= 1
: errors only.= 2
: errors and warnings.= 3
: errors, warnings and info.= 4
: errors, warnings, info, debug 1.= 5
: errors, warnings, info, debug 1 to 2.= 6
: errors, warnings, info, debug 1 to 3.= 7
: all messages.def shutdownthrows java.lang.InterruptedException
def shutdown(boolean)throws java.lang.InterruptedException
true
, the shutdown(int) functions is invoked with negative timeout; Otherwise the shutdown(int) functions is invoked with 0
value.
def shutdown(int)throws java.lang.InterruptedException
def startAgent(Class<T>,Object*)throws java.lang.Exception
def startAgent(int,Class<T>,Object*)throws java.lang.Exception
def startAgentWithID(Class<T>,UUID,Object*)throws java.lang.Exception
def startWithoutAgent : AgentContext
def startWithoutAgent(boolean) : AgentContext