|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.aglet.system.Aglets
Aglets class defines a set of convenient functions for a client which has no AgletContext and daemon to receive incoming aglets.
static public void main(String args[]) {
Aglets.init();
String contextAddress = "atp://server.com:4434";
// create from server's local path
AgletProxy p1 = Aglets.createAglet(contextAddress,
null,
"test.Aglet", null);
AgletID id = p1.getAgletID();
// this returns a proxy equivalent to p1.
AgletProxy p2 = Aglets.getAgletProxy(contextAddress, id);
p2.sendMessage(new Message("startTrip"));
}
| Constructor Summary | |
Aglets()
|
|
| Method Summary | |
static AgletProxy |
createAglet(java.lang.String contextAddress,
java.net.URL codebase,
java.lang.String classname,
java.lang.Object init)
Creates an aglet |
static AgletProxy[] |
getAgletProxies(java.lang.String contextAddress)
Gets an enumeration of aglet proxies of all aglets residing in the context specified by contextAddress. |
static AgletProxy |
getAgletProxy(java.lang.String contextAddress,
AgletID id)
Obtains a proxy reference the remote aglet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Aglets()
| Method Detail |
public static AgletProxy createAglet(java.lang.String contextAddress,
java.net.URL codebase,
java.lang.String classname,
java.lang.Object init)
throws java.io.IOException
java.io.IOException
public static AgletProxy[] getAgletProxies(java.lang.String contextAddress)
throws java.io.IOException
contextAddress - specify context URL with a string.
java.io.IOException
public static AgletProxy getAgletProxy(java.lang.String contextAddress,
AgletID id)
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||