mandala.jacob.remote.gpf
Class RemoteActiveMapProxy

java.lang.Object
  extended bymandala.jacob.remote.AbstractRemote
      extended bymandala.jacob.remote.AbstractLocalReferenceRetriever
          extended bymandala.jacob.remote.gpf.AbstractSingletonRemoteProxy
              extended bymandala.jacob.remote.gpf.RemoteMapProxy
                  extended bymandala.jacob.remote.gpf.RemoteActiveMapProxy
All Implemented Interfaces:
ActiveMap, LocalReferenceRetriever, java.util.Map, Remote, RemoteActiveMap, RemoteMap, java.io.Serializable

public abstract class RemoteActiveMapProxy
extends RemoteMapProxy
implements RemoteActiveMap

Generic proxy for remote ActiveMap implementation.

Version:
$Revision: 1.7 $
Author:
eipi
See Also:
AbstractRemote, RemoteActiveMap, ExceptionHandler, RemoteMapProxy, Serialized Form

Nested Class Summary
 
Nested classes inherited from class mandala.jacob.remote.gpf.RemoteMapProxy
RemoteMapProxy.RemoteEntryProxy
 
Nested classes inherited from class mandala.jacob.remote.RemoteActiveMap
RemoteActiveMap.CallRemoteExceptionInfo, RemoteActiveMap.RemoteActiveMapMethods, RemoteActiveMap.RemoteFutureFactory
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Nested classes inherited from class mandala.jacob.remote.RemoteMap
RemoteMap.RemoteEntry, RemoteMap.RemoteMapMethods
 
Field Summary
 
Fields inherited from class mandala.jacob.remote.gpf.AbstractSingletonRemoteProxy
client, exporter
 
Fields inherited from class mandala.jacob.remote.AbstractRemote
defaultExceptionHandler, exceptionHandler, syslog
 
Constructor Summary
RemoteActiveMapProxy(ActiveMap activeMap, Client client, Exporter exporter, ExceptionHandler exceptionHandler)
           
 
Method Summary
 Cancelable call(java.lang.Object key, FutureServer future)
          Allows objects to do an asynchronous call on a method of the object associated with the given key.
 java.lang.String toString()
           
 
Methods inherited from class mandala.jacob.remote.gpf.RemoteMapProxy
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, putAll, remove, size, values
 
Methods inherited from class mandala.jacob.remote.gpf.AbstractSingletonRemoteProxy
readResolve
 
Methods inherited from class mandala.jacob.remote.AbstractLocalReferenceRetriever
finalize, getID, getLocalReference
 
Methods inherited from class mandala.jacob.remote.AbstractRemote
getDefaultExceptionHandler, getExceptionHandler, getSyslog, handleException, setDefaultExceptionHandler, setExceptionHandler, setSyslog
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mandala.jacob.remote.RemoteActiveMap
getDefaultFutureFactoryWrapper
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from interface mandala.jacob.remote.RemoteMap
entrySet, keySet, putAll, values
 
Methods inherited from interface mandala.jacob.remote.LocalReferenceRetriever
getID, getLocalReference
 
Methods inherited from interface mandala.jacob.remote.Remote
getExceptionHandler, setExceptionHandler
 

Constructor Detail

RemoteActiveMapProxy

public RemoteActiveMapProxy(ActiveMap activeMap,
                            Client client,
                            Exporter exporter,
                            ExceptionHandler exceptionHandler)
Method Detail

call

public Cancelable call(java.lang.Object key,
                       FutureServer future)
Description copied from interface: ActiveMap

Allows objects to do an asynchronous call on a method of the object associated with the given key.

Invokes the method returned by futureServer.getMethod() on the object maps to the specified key (if it exists). The futureServer object is also used to sets the result once the method returns either normally or abruptly (exception) with the method futureServer.setResult()

The futureServer object given is used as specified in MethodInvoker.run()

Specified by:
call in interface ActiveMap
Parameters:
key - The key associated with the stored object.
future - A FutureServer object.
Returns:
the object you may used for cancelation
See Also:
FutureServer, MethodInvoker

toString

public java.lang.String toString()
Overrides:
toString in class RemoteMapProxy


Mandala help mailing list