|
|||||||||||
| 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.AbstractLocalReferenceRetriever
mandala.jacob.remote.rmi.RMISingletonRemoteProxy
mandala.jacob.remote.rmi.RMIMap
Java-RMI Map implementation.
AbstractRemote,
RemoteMap,
ExceptionHandler,
Serialized Form| Nested Class Summary | |
static class |
RMIMap.RMIEntry
Java-RMI Map.Entry implementation. |
| Nested classes inherited from class mandala.jacob.remote.AbstractRemote |
AbstractRemote.ExceptionInfo |
| Nested classes inherited from class mandala.jacob.remote.RemoteMap |
RemoteMap.RemoteEntry, RemoteMap.RemoteMapMethods |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Field Summary | |
protected static SingletonGiver |
singletonGiver
|
| Fields inherited from class mandala.jacob.remote.AbstractRemote |
defaultExceptionHandler, exceptionHandler, syslog |
| Method Summary | |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
Returns a RemoteSet value. |
protected void |
finalize()
|
Object |
get(Object key)
|
boolean |
isEmpty()
|
Set |
keySet()
Returns a RemoteSet value. |
static RMIMap |
newServer(Map map)
Creates a new RMIMap server for the specified map. |
static RMIMap |
newServer(Map map,
int port)
Creates a new RMIMap server for the specified map. |
Object |
put(Object key,
Object object)
|
void |
putAll(Map m)
|
void |
putAll(RemoteMap m)
|
protected Object |
readResolve()
Ensure singleton for any subclasses. |
Object |
remove(Object key)
|
int |
size()
|
String |
toString()
|
Collection |
values()
Returns a RemoteCollection value. |
| Methods inherited from class mandala.jacob.remote.AbstractLocalReferenceRetriever |
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 java.util.Map |
equals, hashCode |
| Methods inherited from interface mandala.jacob.remote.LocalReferenceRetriever |
getID, getLocalReference |
| Methods inherited from interface mandala.jacob.remote.Remote |
getExceptionHandler, setExceptionHandler |
| Field Detail |
protected static final SingletonGiver singletonGiver
| Method Detail |
public static RMIMap newServer(Map map)
throws RemoteException
Creates a new RMIMap server for the specified map.
map - the map to serve remotely
RMIMap instance representing the given map
RemoteException - if an error occurs
public static RMIMap newServer(Map map,
int port)
throws RemoteException
Creates a new RMIMap server for the specified map.
map - the map to serve remotelyport - the port to listen to
RMIMap instance representing the given map
RemoteException - if an error occurspublic void clear()
clear in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Set entrySet()
RemoteMapReturns a RemoteSet value.
entrySet in interface RemoteMapRemoteSet valueRemoteSetpublic Object get(Object key)
get in interface Map
public Object put(Object key,
Object object)
put in interface Mappublic boolean isEmpty()
isEmpty in interface Mappublic Set keySet()
RemoteMapReturns a RemoteSet value.
keySet in interface RemoteMapRemoteSet valueRemoteSetpublic void putAll(Map m)
putAll in interface Mappublic void putAll(RemoteMap m)
putAll in interface RemoteMappublic Object remove(Object key)
remove in interface Mappublic int size()
size in interface Mappublic Collection values()
RemoteMapReturns a RemoteCollection value.
values in interface RemoteMapRemoteCollection valueRemoteCollectionpublic String toString()
protected Object readResolve()
throws ObjectStreamException
Ensure singleton for any subclasses.
If subclasses overwrite this method, they must ensure the singleton property themselves.
Object value
ObjectStreamException - if an error occurs
protected void finalize()
throws Throwable
finalize in class AbstractLocalReferenceRetrieverThrowable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||