|
|||||||||||
| 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.RemoteMap |
RemoteMap.RemoteEntry, RemoteMap.RemoteMapMethods |
| Nested classes inherited from class java.util.Map |
java.util.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(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
Returns a RemoteSet value. |
java.lang.Object |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
Returns a RemoteSet value. |
static RMIMap |
newServer(java.util.Map map)
Creates a new RMIMap server for the specified map. |
static RMIMap |
newServer(java.util.Map map,
int port)
Creates a new RMIMap server for the specified map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object object)
|
void |
putAll(java.util.Map m)
|
void |
putAll(RemoteMap m)
|
protected java.lang.Object |
readResolve()
Ensure singleton for any subclasses. |
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.lang.String |
toString()
|
java.util.Collection |
values()
Returns a RemoteCollection value. |
| 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 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(java.util.Map map)
throws java.rmi.RemoteException
Creates a new RMIMap server for the specified map.
map - the map to serve remotely
RMIMap instance representing the given map
java.rmi.RemoteException - if an error occurs
public static RMIMap newServer(java.util.Map map,
int port)
throws java.rmi.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
java.rmi.RemoteException - if an error occurspublic void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Set entrySet()
RemoteMapReturns a RemoteSet value.
entrySet in interface RemoteMapRemoteSet valueRemoteSetpublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Map
public java.lang.Object put(java.lang.Object key,
java.lang.Object object)
put in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
RemoteMapReturns a RemoteSet value.
keySet in interface RemoteMapRemoteSet valueRemoteSetpublic void putAll(java.util.Map m)
putAll in interface java.util.Mappublic void putAll(RemoteMap m)
putAll in interface RemoteMappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic int size()
size in interface java.util.Mappublic java.util.Collection values()
RemoteMapReturns a RemoteCollection value.
values in interface RemoteMapRemoteCollection valueRemoteCollectionpublic java.lang.String toString()
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
Ensure singleton for any subclasses.
If subclasses overwrite this method, they must ensure the singleton property themselves.
Object value
java.io.ObjectStreamException - if an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||