mandala.jacob.remote.gpf
Class RemoteResultUpdaterProxy

java.lang.Object
  extended bymandala.jacob.remote.AbstractRemote
      extended bymandala.jacob.remote.gpf.AbstractRemoteProxy
          extended bymandala.jacob.remote.gpf.RemoteResultUpdaterProxy
All Implemented Interfaces:
Remote, RemoteResultUpdater, ResultUpdater, java.io.Serializable

public abstract class RemoteResultUpdaterProxy
extends AbstractRemoteProxy
implements RemoteResultUpdater

Generic proxy for remote ResultUpdater implementation.

Since:
1.0
Version:
$Revision: 1.5 $
Author:
eipi
See Also:
RemoteResultUpdater, AbstractRemoteProxy, ExceptionHandler, Serialized Form

Nested Class Summary
 
Nested classes inherited from class mandala.jacob.remote.RemoteResultUpdater
RemoteResultUpdater.RemoteResultUpdaterMethods
 
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
RemoteResultUpdaterProxy(Client client, Exporter exporter, ExceptionHandler exceptionHandler)
           
 
Method Summary
 void setCalleeThread(ThreadOp callee)
          Set the thread which has been created for the invocation of the method.
 void setResult(java.lang.Object result, java.lang.Throwable throwable)
          Set the result of the asynchronous method invocation.
 void setStarted()
          Informs clients that the method is being 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

RemoteResultUpdaterProxy

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

setResult

public void setResult(java.lang.Object result,
                      java.lang.Throwable throwable)
Description copied from interface: ResultUpdater

Set the result of the asynchronous method invocation.

The result may be either the returned value of the method or the thrown exception.

Result must be considered available after this call.

Specified by:
setResult in interface ResultUpdater
Parameters:
result - the result returned by an asynchronous method invocation, which can be null.
throwable - the exception thrown by an asynchronous method invocation, a null value is considered as no exception has been thrown.

setCalleeThread

public void setCalleeThread(ThreadOp callee)
Description copied from interface: ResultUpdater

Set the thread which has been created for the invocation of the method.

Specified by:
setCalleeThread in interface ResultUpdater
Parameters:
callee - the thread which has been created for the invocation of the method

setStarted

public void setStarted()
Description copied from interface: ResultUpdater

Informs clients that the method is being started.

Specified by:
setStarted in interface ResultUpdater


Mandala help mailing list