|
|||||||||||
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 FormNested 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 occurspublic 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 Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
RemoteMap
Returns a RemoteSet
value.
entrySet
in interface RemoteMap
RemoteSet
valueRemoteSet
public Object get(Object key)
get
in interface Map
public Object put(Object key, Object object)
put
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public Set keySet()
RemoteMap
Returns a RemoteSet
value.
keySet
in interface RemoteMap
RemoteSet
valueRemoteSet
public void putAll(Map m)
putAll
in interface Map
public void putAll(RemoteMap m)
putAll
in interface RemoteMap
public Object remove(Object key)
remove
in interface Map
public int size()
size
in interface Map
public Collection values()
RemoteMap
Returns a RemoteCollection
value.
values
in interface RemoteMap
RemoteCollection
valueRemoteCollection
public 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 occursprotected void finalize() throws Throwable
finalize
in class AbstractLocalReferenceRetriever
Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |