|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.ucdavis.rj.Ops.Invocation
public class Invocation
Basic invocation abstraction.
| Constructor Summary | |
|---|---|
Invocation(java.lang.Object... params)
Create an invocation with the given parameters. |
|
| Method Summary | |
|---|---|
protected Invocation |
clone()
Clone this Invocation. |
void |
forward(OpImpl fwdOpImpl)
|
void |
forward(OpImpl fwdOpImpl,
Invocation fwdInvocation)
|
void |
forward(OpProxy fwdOpProxy)
|
void |
forward(OpProxy fwdOpProxy,
Invocation fwdInvocation)
Forward an invocation to the specified operation; most importantly, the ability to reply to the original invoker is also forwarded. |
java.lang.Object |
getParam(int index)
Return a parameter of the invocation. |
OpProxy |
getReplyOp()
Get the reply operation for the invocation. |
java.lang.Object |
getReturnValue()
Get the return value for the invocation. |
int |
paramsLength()
Return the number of parameters in the invocation. |
void |
reply()
Early reply for this invocation to the invoker. |
void |
reply(java.lang.Object value)
//////////////// Abbreviation for this.setReplyOp(value);
this.reply();
|
void |
setReplyOp(OpProxy replyOp)
Set the reply operation for the invocation. |
void |
setReturnValue(java.lang.Object value)
Set the return value for the invocation. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Invocation(java.lang.Object... params)
params - The parameters of the invocation.| Method Detail |
|---|
public int paramsLength()
public java.lang.Object getParam(int index)
index - Index (zero-based) of the invocation parameter to return.
public void setReturnValue(java.lang.Object value)
value - The return value.public java.lang.Object getReturnValue()
public void setReplyOp(OpProxy replyOp)
replyOp - The reply operation.
//////////////////////////// 2010-08-31 public for testing
//////////////// deferred reply stuffpublic OpProxy getReplyOp()
public void reply()
public void reply(java.lang.Object value)
this.setReplyOp(value);
this.reply();
value - The return value.
public void forward(OpProxy fwdOpProxy,
Invocation fwdInvocation)
inv - The invocation to which to reply.
public void forward(OpImpl fwdOpImpl,
Invocation fwdInvocation)
public void forward(OpProxy fwdOpProxy)
public void forward(OpImpl fwdOpImpl)
protected Invocation clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||