|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmandala.jacob.remote.AbstractRemote
mandala.jacob.remote.gpf.AbstractRemoteProxy
mandala.jacob.remote.gpf.RemoteInvocationObserverProxy
Generic proxy for remote InvocationObserver
implementation.
RemoteInvocationObserver,
AbstractRemoteProxy,
ExceptionHandler,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class mandala.jacob.remote.AbstractRemote |
AbstractRemote.ExceptionInfo |
| Nested classes inherited from class mandala.jacob.remote.RemoteInvocationObserver |
RemoteInvocationObserver.RemoteInvocationObserverMethods |
| Field Summary |
| Fields inherited from class mandala.jacob.remote.gpf.AbstractRemoteProxy |
client, exporter |
| Fields inherited from class mandala.jacob.remote.AbstractRemote |
defaultExceptionHandler, exceptionHandler, syslog |
| Constructor Summary | |
RemoteInvocationObserverProxy(Client client,
Exporter exporter,
ExceptionHandler exceptionHandler)
|
|
| Method Summary | |
ThreadOp |
getCalleeThread()
Get the thread which is running the method invocation (the "callee"). |
boolean |
isCalleeAvailable()
Test the usable value of the callee thread. |
boolean |
isResultAvailable()
Test the usable value of the returned result. |
boolean |
isStarted()
Returns true if the asynchronous method invocation is
started. |
| Methods inherited from class mandala.jacob.remote.gpf.AbstractRemoteProxy |
toString |
| Methods inherited from class mandala.jacob.remote.AbstractRemote |
getDefaultExceptionHandler, getExceptionHandler, getSyslog, handleException, setDefaultExceptionHandler, setExceptionHandler, setSyslog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mandala.jacob.remote.Remote |
getExceptionHandler, setExceptionHandler |
| Constructor Detail |
public RemoteInvocationObserverProxy(Client client,
Exporter exporter,
ExceptionHandler exceptionHandler)
| Method Detail |
public boolean isResultAvailable()
InvocationObserverTest the usable value of the returned result. This method is safe related.
While the result is unavailable, this method returns
false and calls to some methods of this class is undefined
as specified in their documentation.
isResultAvailable in interface InvocationObservertrue if the result is availablepublic boolean isCalleeAvailable()
InvocationObserverTest the usable value of the callee thread. This method is safe related.
While the callee thread as not yet been set by the implementation of
asynchronous method invocation, this method returns
false. Otherwise, it returns true.
This method may return true whereas InvocationObserver.getCalleeThread() returns a null value. This situation
means that the callee has been set, has executed the method
and is no longer available (it has died for example).
isCalleeAvailable in interface InvocationObservertrue if the callee thread has been set by the
implementationResultUpdater.setCalleeThread(ThreadOp)public ThreadOp getCalleeThread()
InvocationObserverGet the thread which is running the method invocation (the "callee"). This method is unsafe related.
While isCalleeAvailable() returns false,
the value returned is undefined. Else, the ThreadOp
instance referencing the thread which is running the method is returned
which can be null if the method is considered
terminated.
getCalleeThread in interface InvocationObserverThreadOppublic boolean isStarted()
InvocationObserverReturns true if the asynchronous method invocation is
started. This method is safe related
If this method returns false, then the asynchronous
method invocation has not start its execution. Otherwise, the method may
be currently running or terminated.
isStarted in interface InvocationObservertrue if this method has started its execution,
false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||