mandala.jacob.remote.rmi
Class RMICollection

java.lang.Object
  extended bymandala.jacob.remote.AbstractRemote
      extended bymandala.jacob.remote.AbstractLocalReferenceRetriever
          extended bymandala.jacob.remote.rmi.RMISingletonRemoteProxy
              extended bymandala.jacob.remote.rmi.RMICollection
All Implemented Interfaces:
Collection, LocalReferenceRetriever, Remote, Remote, RemoteCollection, Serializable
Direct Known Subclasses:
RMISet

public class RMICollection
extends mandala.jacob.remote.rmi.RMISingletonRemoteProxy
implements RemoteCollection

Java-RMI Collection implementation.

Version:
$Revision: 1.4 $
Author:
eipi
See Also:
AbstractRemote, RemoteCollection, ExceptionHandler, Serialized Form

Nested Class Summary
 
Nested classes inherited from class mandala.jacob.remote.AbstractRemote
AbstractRemote.ExceptionInfo
 
Nested classes inherited from class mandala.jacob.remote.RemoteCollection
RemoteCollection.RemoteCollectionMethods
 
Field Summary
protected  mandala.jacob.remote.rmi.RMICollectionOp rmiCollection
           
protected static SingletonGiver singletonGiver
           
 
Fields inherited from class mandala.jacob.remote.AbstractRemote
defaultExceptionHandler, exceptionHandler, syslog
 
Method Summary
 boolean add(Object object)
           
 boolean addAll(Collection collection)
           
 boolean addAll(RemoteCollection collection)
           
 void clear()
           
 boolean contains(Object object)
           
 boolean containsAll(Collection collection)
           
 boolean containsAll(RemoteCollection collection)
           
protected  void finalize()
           
 boolean isEmpty()
           
 Iterator iterator()
           
static RMICollection newServer(Collection collection)
           
static RMICollection newServer(Collection collection, int port)
           
protected  Object readResolve()
          Ensure singleton for any subclasses.
 boolean remove(Object object)
           
 boolean removeAll(Collection collection)
           
 boolean removeAll(RemoteCollection collection)
           
 boolean retainAll(Collection collection)
           
 boolean retainAll(RemoteCollection collection)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] objects)
           
 String toString()
           
 
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.Collection
equals, hashCode
 
Methods inherited from interface mandala.jacob.remote.LocalReferenceRetriever
getID, getLocalReference
 
Methods inherited from interface mandala.jacob.remote.Remote
getExceptionHandler, setExceptionHandler
 

Field Detail

rmiCollection

protected transient mandala.jacob.remote.rmi.RMICollectionOp rmiCollection

singletonGiver

protected static final SingletonGiver singletonGiver
Method Detail

newServer

public static RMICollection newServer(Collection collection)
                               throws RemoteException
Throws:
RemoteException

newServer

public static RMICollection newServer(Collection collection,
                                      int port)
                               throws RemoteException
Throws:
RemoteException

clear

public void clear()
Specified by:
clear in interface Collection

contains

public boolean contains(Object object)
Specified by:
contains in interface Collection

containsAll

public boolean containsAll(Collection collection)
Specified by:
containsAll in interface Collection

containsAll

public boolean containsAll(RemoteCollection collection)
Specified by:
containsAll in interface RemoteCollection

iterator

public Iterator iterator()
Specified by:
iterator in interface Collection

add

public boolean add(Object object)
Specified by:
add in interface Collection

addAll

public boolean addAll(Collection collection)
Specified by:
addAll in interface Collection

addAll

public boolean addAll(RemoteCollection collection)
Specified by:
addAll in interface RemoteCollection

remove

public boolean remove(Object object)
Specified by:
remove in interface Collection

removeAll

public boolean removeAll(Collection collection)
Specified by:
removeAll in interface Collection

removeAll

public boolean removeAll(RemoteCollection collection)
Specified by:
removeAll in interface RemoteCollection

retainAll

public boolean retainAll(Collection collection)
Specified by:
retainAll in interface Collection

retainAll

public boolean retainAll(RemoteCollection collection)
Specified by:
retainAll in interface RemoteCollection

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection

toArray

public Object[] toArray(Object[] objects)
Specified by:
toArray in interface Collection

size

public int size()
Specified by:
size in interface Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

toString

public String toString()

readResolve

protected Object readResolve()
                      throws ObjectStreamException

Ensure singleton for any subclasses.

If subclasses overwrite this method, they must ensure the singleton property themselves.

Returns:
an Object value
Throws:
ObjectStreamException - if an error occurs

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class AbstractLocalReferenceRetriever
Throws:
Throwable


Mandala help mailing list