mandala.jacob.remote.gpf
Class RemoteMethodResultProxy

java.lang.Object
  extended bymandala.jacob.remote.AbstractRemote
      extended bymandala.jacob.remote.gpf.AbstractRemoteProxy
          extended bymandala.jacob.remote.gpf.RemoteMethodResultProxy
All Implemented Interfaces:
MethodResult, Remote, RemoteMethodResult, java.io.Serializable

public abstract class RemoteMethodResultProxy
extends AbstractRemoteProxy
implements RemoteMethodResult

Generic proxy for remote MethodResult implementation.

Since:
1.0
Version:
$Revision: 1.3 $
Author:
eipi
See Also:
RemoteMethodResult, AbstractRemoteProxy, ExceptionHandler, Serialized Form

Nested Class Summary
 
Nested classes inherited from class mandala.jacob.remote.RemoteMethodResult
RemoteMethodResult.RemoteMethodResultMethods
 
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
RemoteMethodResultProxy(Client client, Exporter exporter, ExceptionHandler exceptionHandler)
           
 
Method Summary
 boolean exceptionOccured()
          Returns true if an exception occured during the asynchronous method invocation, false otherwise.
 java.lang.Throwable getException()
          Return the exception thrown during the call to an asynchronous method invocation.
 java.lang.Object getReturnedResult()
          Return the result returned by the call to an asynchronous method invocation.
 java.lang.Object getReturnedResultTrusted()
          Return the result returned by the call to an asynchronous method invocation.
 
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

RemoteMethodResultProxy

public RemoteMethodResultProxy(Client client,
                               Exporter exporter,
                               ExceptionHandler exceptionHandler)
Method Detail

getException

public java.lang.Throwable getException()
Description copied from interface: MethodResult

Return the exception thrown during the call to an asynchronous method invocation. This method is unsafe related.

Specified by:
getException in interface MethodResult
Returns:
Return the exception thrown during the call to an asynchronous method invocation.

getReturnedResult

public java.lang.Object getReturnedResult()
                                   throws java.lang.Throwable
Description copied from interface: MethodResult

Return the result returned by the call to an asynchronous method invocation. If doesExceptionOccured() returns true, the exception caught is thrown. This method is unsafe related.

Specified by:
getReturnedResult in interface MethodResult
Returns:
the result returned by the call to a asynchronous method invocation.
Throws:
java.lang.Throwable - The exception thrown during the call.

getReturnedResultTrusted

public java.lang.Object getReturnedResultTrusted()
Description copied from interface: MethodResult

Return the result returned by the call to an asynchronous method invocation. This method is unsafe related.

If doesExceptionOccured() returns true, the value returned is undefined.

Specified by:
getReturnedResultTrusted in interface MethodResult
Returns:
the result returned by the call to an asynchronous method invocation.

exceptionOccured

public boolean exceptionOccured()
Description copied from interface: MethodResult

Returns true if an exception occured during the asynchronous method invocation, false otherwise. This method is unsafe related.

Specified by:
exceptionOccured in interface MethodResult
Returns:
true if an exception occured during the asynchronous method invocation, false otherwise.


Mandala help mailing list