|
|||||||||
| 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.
| Field Summary | |
|---|---|
private java.lang.Object[] |
params
Holds the parameters of the invocation. |
private OpProxy |
replyOp
Holds the reply operation for the invocation. |
private java.lang.Object |
returnValue
Holds the return value for the invocation. |
(package private) static long |
serialVersionUID
Required by Serializable. |
(package private) Timestamp |
timestamp
The timestamp for the invocation. |
| 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. |
(package private) Timestamp |
getTimestamp()
Get the Timestamp for the invocation. |
private void |
internalForward(OpProxy fwdOpProxy,
Invocation originalFwdInvocation)
Does the work for forward(edu.ucdavis.rj.Ops.OpProxy, edu.ucdavis.rj.Ops.Invocation) |
private void |
internalReplyToInvoker(boolean makeCopy)
Does the work for and @Invocation#reply |
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();
|
(package private) void |
replyToInvoker()
Give the invoker the reply (i.e., the go-ahead and return values) for a call invocation. |
(package private) Invocation |
safeClone()
Clone this Invocation, without possibility of exceptions. |
void |
setReplyOp(OpProxy replyOp)
Set the reply operation for the invocation. |
void |
setReturnValue(java.lang.Object value)
Set the return value for the invocation. |
(package private) void |
setRJVMTimestamp()
Update the VM's timestamp with this invocation's timestamp, which comes from a send or call (which might have originated on a different VM). |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
private java.lang.Object[] params
private java.lang.Object returnValue
Timestamp timestamp
private OpProxy replyOp
| 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()
void replyToInvoker()
inv - The invocation to which to reply.private void internalReplyToInvoker(boolean makeCopy)
and @Invocation#reply
makeCopy - Whether to send original or copy to invoker.
send original for call and send; send copy for reply.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)
private void internalForward(OpProxy fwdOpProxy,
Invocation originalFwdInvocation)
forward(edu.ucdavis.rj.Ops.OpProxy, edu.ucdavis.rj.Ops.Invocation)
fwdOpProxy - OpProxy to which to forward.fwdInvocation - Invocation to which to forward.Timestamp getTimestamp()
void setRJVMTimestamp()
protected Invocation clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionInvocation safeClone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||