|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.core.Wrapper
org.objectweb.jac.core.dist.StubWrapper
org.objectweb.jac.core.dist.NonBlockingStubWrapper
NonBlockingStubWrapper is a dynamic client stub for org.objectweb.jac. Every method called on an object wrapped by such a wrapper is forwarded to a remote reference. The call is non blocking. For blocking calls see StubWrapper. This a wrapper class. The invoke method wraps all the methods of a wrappee.
StubWrapper
,
Serialized FormField Summary | |
protected int |
firstFreeCell
Index of the 1st free cell in results. |
protected static int |
nbMaxOfResults
Maximum number of results stored. |
protected Object[] |
results
Mailbox for results received from asynchonous calls. |
Fields inherited from class org.objectweb.jac.core.dist.StubWrapper |
remoteRef |
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
Constructor Summary | |
NonBlockingStubWrapper(AspectComponent ac,
RemoteRef remoteRef)
Construct a new dynamic stub. |
|
NonBlockingStubWrapper(AspectComponent ac,
String serverContainer)
A more user-friendly constructor. |
Method Summary | |
Object |
getResult(Integer index)
Return the requested result. |
Object |
invoke(Interaction interaction)
Forward a call to the remote reference. |
void |
setFirstFreeCell()
|
Methods inherited from class org.objectweb.jac.core.dist.StubWrapper |
_invoke, construct, getRemoteRef, invoke |
Methods inherited from class org.objectweb.jac.core.Wrapper |
attr, attrdef, defines, getAspectComponent, getAspectComponentName, getExceptionHandlers, proceed, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final int nbMaxOfResults
protected Object[] results
protected int firstFreeCell
Constructor Detail |
public NonBlockingStubWrapper(AspectComponent ac, RemoteRef remoteRef)
remoteRef
- the remote reference associated to the stubpublic NonBlockingStubWrapper(AspectComponent ac, String serverContainer)
serverContainer
- the name of the container where the
server is deployedMethod Detail |
public Object invoke(Interaction interaction)
public void setFirstFreeCell()
public Object getResult(Integer index)
index
- the result index
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |