|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectspace.voyager.message.Sync
A Sync message invokes a method, waits for the reply, and then returns a Result object that holds the reply.
If the target object is remote, a serialized copy of the result is returned by default. If the remote result implements IRemote, a proxy to the result is returned instead.
If a Sync is constructed with returnProxy == true, a proxy to the result is returned, even if the target object is local.
Method Summary | |
static Result |
invoke(java.lang.Object object,
java.lang.String signature,
java.lang.Object[] args)
Invoke a method on the specified object and then return the reply wrapped in a Result. |
static Result |
invoke(java.lang.Object object,
java.lang.String signature,
java.lang.Object[] args,
boolean returnProxy)
Invoke a method on the specified object and then return the reply wrapped in a Result. |
static Result |
invoke(java.lang.String classname,
java.lang.String signature,
java.lang.Object[] args,
java.lang.String url)
Invoke a static method on the specified class and then return the reply wrapped in a Result. |
static Result |
invoke(java.lang.String classname,
java.lang.String signature,
java.lang.Object[] args,
java.lang.String url,
boolean returnProxy)
Invoke a static method on the specified class and then return the reply wrapped in a Result. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static Result invoke(java.lang.Object object, java.lang.String signature, java.lang.Object[] args)
object
- The destination object, which can be a regular Java reference or a proxy.signature
- The simple name or the full method signature.args
- Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.public static Result invoke(java.lang.Object object, java.lang.String signature, java.lang.Object[] args, boolean returnProxy)
object
- The destination object, which can be a regular Java reference or a proxy.signature
- The simple name or the full method signature.args
- Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.returnProxy
- If true, return a proxy to the result.public static Result invoke(java.lang.String classname, java.lang.String signature, java.lang.Object[] args, java.lang.String url)
classname
- The full name of the destination class.signature
- The simple name or the full method signature.args
- Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.url
- The URL of the remote VM.public static Result invoke(java.lang.String classname, java.lang.String signature, java.lang.Object[] args, java.lang.String url, boolean returnProxy)
classname
- The full name of the destination class.signature
- The simple name or the full method signature.args
- Either null (no arguments) or an array of arguments with primitives wrapped in their object equivalents.url
- The URL of the remote VM.returnProxy
- If true, return a proxy to the result.
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |