|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IAgent is an object's agent facet that can be obtained via Agent.of().
Method Summary | |
java.lang.String |
getHome()
Return the home of this agent, which is defined to be the URL of the agent when its agent facet was first accessed. |
IResourceLoader |
getResourceLoader()
Returns the registered IResourceLoader implementation. |
boolean |
isAutonomous()
Return true if this agent is autonomous. |
void |
moveTo(java.lang.Object destination,
java.lang.String callback)
Move to the program containing the specified object and then restart by executing a oneway callback with a proxy to the object as the first argument. |
void |
moveTo(java.lang.Object destination,
java.lang.String callback,
java.lang.Object[] args)
Move to the program containing the specified object and then restart by executing a oneway callback with a proxy to the object as the first argument and the args as the remaining arguments. |
void |
moveTo(java.lang.String destination,
java.lang.String callback)
Move to the program with the specified URL and then restart by executing a oneway callback. |
void |
moveTo(java.lang.String destination,
java.lang.String callback,
java.lang.Object[] args)
Move to the program with the specified URL and then restart by executing a oneway callback with the args as parameters. |
void |
setAutonomous(boolean flag)
If the flag is true, become autonomous. |
void |
setResourceLoader(IResourceLoader resourceLoader)
Sets the IResourceLoader implementation this agent should register with remote hosts it may visit. |
Methods inherited from interface com.objectspace.voyager.mobility.IMobility |
moveTo,
moveTo |
Method Detail |
public void moveTo(java.lang.String destination, java.lang.String callback) throws MobilityException
destination
- The address of the VM to which I am moving.callback
- The name of the method to be invoked upon arrival.public void moveTo(java.lang.String destination, java.lang.String callback, java.lang.Object[] args) throws MobilityException
destination
- The address of the VM to which I am moving.callback
- The name of the method to be invoked upon arrival.args
- An array of additional arguments to be used in the callback.public void moveTo(java.lang.Object destination, java.lang.String callback) throws MobilityException
destination
- The object to which I am moving.callback
- The name of the method to be invoked upon arrival.public void moveTo(java.lang.Object destination, java.lang.String callback, java.lang.Object[] args) throws MobilityException
destination
- The object to which I am moving.callback
- The name of the method to be invoked upon arrival.args
- An array of additional arguments to be used in the callback.public void setAutonomous(boolean flag)
public boolean isAutonomous()
public java.lang.String getHome()
public void setResourceLoader(IResourceLoader resourceLoader)
resourceLoader
- The IResourceLoader implementation to use.VoyagerClassLoader
public IResourceLoader getResourceLoader()
VoyagerClassLoader
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |