|
|||||||||||
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 FormNested Class Summary |
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 |
isCancelled()
Returns true if the asynchronous method invocation has
been cancelled. |
boolean |
isInterrupted()
Returns true if the asynchronous method invocation has
been interrupted. |
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()
InvocationObserver
Test 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 InvocationObserver
true
if the result is availablepublic boolean isCalleeAvailable()
InvocationObserver
Test 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 InvocationObserver
true
if the callee thread has been set by the
implementationResultUpdater.setCalleeThread(ThreadOp)
public ThreadOp getCalleeThread()
InvocationObserver
Get 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 InvocationObserver
ThreadOp
public boolean isStarted()
InvocationObserver
Returns 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 InvocationObserver
true
if this method has started its execution,
false
otherwise.public boolean isCancelled()
InvocationObserver
Returns true
if the asynchronous method invocation has
been cancelled. This method is safe related
isCancelled
in interface InvocationObserver
boolean
valuepublic boolean isInterrupted()
InvocationObserver
Returns true
if the asynchronous method invocation has
been interrupted. This method is safe related
isInterrupted
in interface InvocationObserver
boolean
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |