All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.aglet.system.AgletRuntime
java.lang.Object
|
+----com.ibm.aglet.system.AgletRuntime
- public abstract class AgletRuntime
- extends Object
AgletRuntime class provides the way to access the information
of the local or remote context. Neither of an application nor aglet
can create its own instance of this runtime class.
- See Also:
- getAgletRuntime
-
AgletRuntime()
-
-
createAgletContext(String)
- Creates an DefaultAgletContext object given by the Framework
implementation with specified name.
-
getAgletContext(String)
- Returns the AgletContext which has the specified name.
-
getAgletContexts()
- Gets the contexts in the environment.
-
getAgletRuntime()
- Gets the AgletRuntime object associated with the current
Java application.
-
getServerURL()
- Gets an address of the server in URL.
-
init(String[])
- Create and initialize a runtime environment with a string array.
-
killAglet(AgletProxy)
- Kill the specified aglet.
-
removeAgletContext(AgletContext)
- Removes the specified aglet context from the runtime environment.
-
shutdown()
- Shutdown all contexts in the runtime.
-
shutdown(Message)
- Shutdown all contexts in the current runtime with the specific message
object.
AgletRuntime
public AgletRuntime()
init
public static synchronized AgletRuntime init(String args[])
- Create and initialize a runtime environment with a string array.
- Parameters:
- a - string array which is typically given as a argument to
main(String args[]) function.
getAgletRuntime
public static synchronized AgletRuntime getAgletRuntime()
- Gets the AgletRuntime object associated with the current
Java application.
createAgletContext
public abstract AgletContext createAgletContext(String name)
- Creates an DefaultAgletContext object given by the Framework
implementation with specified name.
- Throws: SecurityException
- if the current execution is not allowed
to create an AgletContext.
getAgletContext
public abstract AgletContext getAgletContext(String name)
- Returns the AgletContext which has the specified name.
- Parameters:
- name - the name of the context
- Throws: SecurityException
- if the current execution is not allowed
to acccess the AgletContext.
removeAgletContext
public abstract void removeAgletContext(AgletContext cxt)
- Removes the specified aglet context from the runtime environment.
It is also removed from export list if it's exported.
- Parameters:
- cxt - the context to be removed.
getAgletContexts
public abstract AgletContext[] getAgletContexts()
- Gets the contexts in the environment.
getServerURL
public abstract URL getServerURL()
- Gets an address of the server in URL.
- Returns:
- an URL represents the address of the server.
shutdown
public abstract void shutdown()
- Shutdown all contexts in the runtime.
shutdown
public abstract void shutdown(Message msg)
- Shutdown all contexts in the current runtime with the specific message
object. This messag object is delivered to all aglets in all contexts
before all aglets are killed.
killAglet
public abstract void killAglet(AgletProxy proxy) throws InvalidAgletException
- Kill the specified aglet. This aglet have to be a local aglet
in this runtime.
- Parameters:
- proxy - the aglet proxy object to kill.
All Packages Class Hierarchy This Package Previous Next Index