|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.relacs.gmi.InvocationResult
public final class InvocationResult
Encapsulates invocation results and the server-side view identifier at the time of result generation.
Field Summary | |
---|---|
static int |
INVOCATION_BLOCKED
Indicates that the invocation completed, and a result will follow. |
static int |
INVOCATION_COMPLETED
Indicates that the invocation completed, and a result will follow. |
static int |
INVOCATION_FAILED
Indicates that the invocation failed with the attached exception. |
static int |
UNKNOWN_INVOCATION_SEMANTICS
Indicates that the invocation could not be performed since it had an unknown invocation semantics for the given request. |
Constructor Summary | |
---|---|
InvocationResult()
Empty constructor for externalizable |
|
InvocationResult(java.lang.reflect.Method m,
java.lang.Object[] args,
java.lang.Object o,
View serverView,
long clientViewId)
Invokes method m on object o with the
provided arguments. |
|
InvocationResult(java.rmi.RemoteException e)
|
Method Summary | |
---|---|
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INVOCATION_COMPLETED
public static final int INVOCATION_BLOCKED
public static final int INVOCATION_FAILED
public static final int UNKNOWN_INVOCATION_SEMANTICS
Constructor Detail |
---|
public InvocationResult()
public InvocationResult(java.lang.reflect.Method m, java.lang.Object[] args, java.lang.Object o, View serverView, long clientViewId) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
m
on object o
with the
provided arguments. The method may return a result which is stored
in the result
field of this object, or it may return an
exception. The latter is also stored in the result
field, but in addition the boolean field isException
is
set to true.
m
- Method to invokeargs
- Arguments to method m
o
- Object to invoke method onserverView
- The server-side view in which the method was invokedclientViewId
- The client-side view in which this method was invoked
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public InvocationResult(java.rmi.RemoteException e)
Method Detail |
---|
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |