|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.ucdavis.rj.Ops.OpImpl
edu.ucdavis.rj.Ops.OpMethod
public abstract class OpMethod
An operation that's to be serviced via a method. (Aka Proc-Op.) Extend this class with one that contains actual code.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.ucdavis.rj.Ops.OpRemote |
|---|
OpRemote.Helper |
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
OpMethod()
Create a new instance of an operation that's to be serviced via a method. |
|
| Method Summary | |
|---|---|
boolean |
canAppearInInni()
Can this operation be serviced by an inni? Only an OpInni can. |
abstract void |
codeBlock(Invocation inv)
Override this method with the actual code for the operation. |
void |
deliverPendingMessages()
If operation's queue of pending invocations was locked due to equivalence class locking stuff (e.g., merging), then deliver pending messages. |
OpInniIterator |
elements()
///// /////////////////////// throw exception |
long |
getFirstTime()
///// |
InLock |
getLock()
Get the equivalence class lock for this operation. |
boolean |
isRemote(java.lang.String site)
Is this operation on a remote VM or on the current VM? |
int |
length()
Returns the number of Invocations pending for this operation. |
Invocation |
P()
////////////////// |
Invocation |
receive()
Get the first (oldest) pending invocation of this operation. |
| Methods inherited from class edu.ucdavis.rj.Ops.OpImpl |
|---|
call, call, equals, getId, hashCode, isNoop, send, send, V |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
getRef, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OpMethod()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public abstract void codeBlock(Invocation inv)
inv - The invocation to service.public Invocation receive()
public long getFirstTime()
public boolean canAppearInInni()
throws java.rmi.RemoteException
OpOpInni can.
true if and only if this operation is an OpInni.
java.rmi.RemoteException
public InLock getLock()
throws java.rmi.RemoteException
Op
java.rmi.RemoteException
public boolean isRemote(java.lang.String site)
throws java.rmi.RemoteException
Op
true if and only if this operation is remote.
java.rmi.RemoteException
public void deliverPendingMessages()
throws java.rmi.RemoteException
Op
java.rmi.RemoteException
public OpInniIterator elements()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic Invocation P()
public int length()
length in interface Oplength in class OpImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||