|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.aglet.system.AgletRuntime
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.
getAgletRuntime()| Constructor Summary | |
AgletRuntime()
|
|
| Method Summary | |
abstract java.security.Identity |
authenticate(java.lang.String username,
java.lang.String password)
Authenticate an user with password. |
abstract AgletContext |
createAgletContext(java.lang.String name)
Creates an DefaultAgletContext object given by the Framework implementation with specified name. |
abstract AgletContext |
getAgletContext(java.lang.String name)
Returns the AgletContext which has the specified name. |
abstract AgletContext[] |
getAgletContexts()
Gets the contexts in the environment. |
static AgletRuntime |
getAgletRuntime()
Gets the AgletRuntime object associated with the current Java application. |
abstract java.lang.String |
getAgletsProperty(java.lang.String key)
Returns aglets property of the user who owns the runtime. |
abstract java.lang.String |
getAgletsProperty(java.lang.String key,
java.lang.String def)
Returns aglets property of the user who owns the runtime. |
abstract java.security.Identity |
getOwnerIdentity()
Returns identity of the user who owns the runtime. |
abstract java.lang.String |
getOwnerName()
Returns name of the user who owns the runtime. |
abstract java.lang.String |
getProperty(java.lang.String prop,
java.lang.String key)
Returns property of the user who owns the runtime. |
abstract java.lang.String |
getProperty(java.lang.String prop,
java.lang.String key,
java.lang.String def)
Returns property of the user who owns the runtime. |
abstract java.lang.String |
getServerAddress()
Gets an address of the server |
static AgletRuntime |
init(java.lang.String[] args)
Create and initialize a runtime environment with a string array |
static AgletRuntime |
init(java.lang.String[] args,
java.lang.ClassLoader loader)
Create and initialize a runtime environment with a string array |
boolean |
isSecure()
Returns security. |
abstract void |
killAglet(AgletProxy proxy)
Kill the specified aglet. |
abstract void |
removeAgletContext(AgletContext cxt)
Removes the specified aglet context from the runtime environment. |
abstract void |
setAgletsProperty(java.lang.String key,
java.lang.String value)
Sets aglets property of the user who owns the runtime. |
abstract void |
setProperty(java.lang.String prop,
java.lang.String key,
java.lang.String value)
Save property of the user who owns the runtime. |
abstract void |
shutdown()
Shutdown all contexts in the runtime |
abstract void |
shutdown(Message msg)
Shutdown all contexts in the current runtime with the specific message object. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AgletRuntime()
| Method Detail |
public static AgletRuntime init(java.lang.String[] args,
java.lang.ClassLoader loader)
a - string array which is typically given as a argument to
main(String args[]) function.loader - a classloader used to load a class of the
implementation.public static AgletRuntime init(java.lang.String[] args)
a - string array which is typically given as a argument to
main(String args[]) function.public static AgletRuntime getAgletRuntime()
public abstract java.security.Identity authenticate(java.lang.String username,
java.lang.String password)
username - username of the user who will own the runtimepassword - password of the userpublic abstract java.security.Identity getOwnerIdentity()
public abstract java.lang.String getOwnerName()
public abstract java.lang.String getAgletsProperty(java.lang.String key)
key - key of aglets property
public abstract java.lang.String getAgletsProperty(java.lang.String key,
java.lang.String def)
key - key of aglets propertydef - default value of aglets property
public abstract java.lang.String getProperty(java.lang.String prop,
java.lang.String key)
prop - name of propertieskey - key of property
public abstract java.lang.String getProperty(java.lang.String prop,
java.lang.String key,
java.lang.String def)
prop - name of propertieskey - key of propertydef - default value of property
public abstract void setAgletsProperty(java.lang.String key,
java.lang.String value)
key - key of aglets propertyvalue - value of specified aglets property
public abstract void setProperty(java.lang.String prop,
java.lang.String key,
java.lang.String value)
prop - name of propertieskey - key of propertyvalue - value of specified propertypublic boolean isSecure()
public abstract AgletContext createAgletContext(java.lang.String name)
public abstract AgletContext getAgletContext(java.lang.String name)
name - the name of the contextpublic abstract void removeAgletContext(AgletContext cxt)
cxt - the context to removepublic abstract AgletContext[] getAgletContexts()
public abstract java.lang.String getServerAddress()
public abstract void shutdown()
public abstract void shutdown(Message msg)
public abstract void killAglet(AgletProxy proxy)
throws InvalidAgletException
proxy - the aglet proxy object to kill.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||