|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.core.MicroRuntime
This class is used to start up the JADE runtime as a split (front-end)
container. Though
JADE supports split containers on all Java editions, the split
container deployment is better suited for small, resource
constrained devices (MIDP and PJava).
Requires the LEAP add-on
Field Summary | |
static java.lang.String |
AGENTS_KEY
String constant to represent the agent list key in the configuration properties used when starting JADE Front End. |
Constructor Summary | |
MicroRuntime()
|
Method Summary | |
static boolean |
isRunning()
Tells whether a JADE Front End container is currently running within this JVM. |
static void |
killAgent(java.lang.String name)
Kill an agent. |
static void |
startAgent(java.lang.String name,
java.lang.String className,
java.lang.String[] args)
Start a new agent. |
static void |
startJADE(Properties p,
java.lang.Runnable r)
Start up the JADE runtime. |
static void |
stopJADE()
Shut down the JADE runtime. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String AGENTS_KEY
Constructor Detail |
public MicroRuntime()
Method Detail |
public static void startJADE(Properties p, java.lang.Runnable r)
p
- A property bag, containing name-value pairs used
to configure the container during boot.r
- A Runnable
object, whose
run()
method will be executed just after
container termination.public static void stopJADE()
public static boolean isRunning()
true
is returned. Otherwise, the method
returns false
.public static void startAgent(java.lang.String name, java.lang.String className, java.lang.String[] args) throws java.lang.Exception
name
- The local name (i.e. without the platform ID)
of the agent to create.className
- The fully qualified name of the class
implementing the agent to start.args
- The creation arguments for the agent.
java.lang.Exception
- If the underlying agent creation process
fails.public static void killAgent(java.lang.String name) throws NotFoundException
name
- The local name (i.e. without the platform ID)
of the agent to kill.
NotFoundException
- If no agent with the given local
name are running within the active Front End.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |