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:
java.util.Collection, LocalReferenceRetriever, java.rmi.Remote, Remote, RemoteCollection, java.io.Serializable
Direct Known Subclasses:
RMISet

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

Java-RMI Collection implementation.

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

Nested Class Summary
 
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(java.lang.Object object)
           
 boolean addAll(java.util.Collection collection)
           
 boolean addAll(RemoteCollection collection)
           
 void clear()
           
 boolean contains(java.lang.Object object)
           
 boolean containsAll(java.util.Collection collection)
           
 boolean containsAll(RemoteCollection collection)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
static RMICollection newServer(java.util.Collection collection)
           
static RMICollection newServer(java.util.Collection collection, int port)
           
protected  java.lang.Object readResolve()
          Ensure singleton for any subclasses.
 boolean remove(java.lang.Object object)
           
 boolean removeAll(java.util.Collection collection)
           
 boolean removeAll(RemoteCollection collection)
           
 boolean retainAll(java.util.Collection collection)
           
 boolean retainAll(RemoteCollection collection)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] objects)
           
 java.lang.String toString()
           
 
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.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(java.util.Collection collection)
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

newServer

public static RMICollection newServer(java.util.Collection collection,
                                      int port)
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

clear

public void clear()
Specified by:
clear in interface java.util.Collection

contains

public boolean contains(java.lang.Object object)
Specified by:
contains in interface java.util.Collection

containsAll

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

containsAll

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

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.Collection

add

public boolean add(java.lang.Object object)
Specified by:
add in interface java.util.Collection

addAll

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

addAll

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

remove

public boolean remove(java.lang.Object object)
Specified by:
remove in interface java.util.Collection

removeAll

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

removeAll

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

retainAll

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

retainAll

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

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection

toArray

public java.lang.Object[] toArray(java.lang.Object[] objects)
Specified by:
toArray in interface java.util.Collection

size

public int size()
Specified by:
size in interface java.util.Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection

toString

public java.lang.String toString()

readResolve

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.

Returns:
an Object value
Throws:
java.io.ObjectStreamException - if an error occurs


Mandala help mailing list