mandala.jacob.remote.rmi
Class RMICollectionImpl

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bymandala.jacob.remote.rmi.RMICollectionImpl
All Implemented Interfaces:
java.rmi.Remote, mandala.jacob.remote.rmi.RMICollectionOp, java.io.Serializable
Direct Known Subclasses:
RMISetImpl

public class RMICollectionImpl
extends java.rmi.server.UnicastRemoteObject
implements mandala.jacob.remote.rmi.RMICollectionOp

Java-RMI implementation of the RMICollection interface.

Version:
$Revision: 1.1 $
Author:
eipi
See Also:
RMICollection, UnicastRemoteObject, Serialized Form

Field Summary
protected  java.util.Collection collection
          The Collection used to stock objects.
protected  java.lang.Object lock
          Lock for collection.
protected static Syslog syslog
          Message logger.
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RMICollectionImpl(java.util.Collection collection)
           
RMICollectionImpl(java.util.Collection collection, int port)
           
 
Method Summary
 boolean add(java.lang.Object object)
           
 boolean addAll(RemoteCollection collection)
           
 void clear()
           
 boolean contains(java.lang.Object object)
           
 boolean containsAll(RemoteCollection collection)
           
static Syslog getSyslog()
          Returns the Syslog object facility.
 boolean isEmpty()
           
 RemoteIterator iterator()
           
 boolean remove(java.lang.Object object)
           
 boolean removeAll(RemoteCollection 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 java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

syslog

protected static final Syslog syslog

Message logger.

Each message (debug, log, warning, error, ...) are wrote to this message logger.

See Also:
Syslog

collection

protected java.util.Collection collection
The Collection used to stock objects.

See Also:
Collection

lock

protected java.lang.Object lock
Lock for collection.

Constructor Detail

RMICollectionImpl

public RMICollectionImpl(java.util.Collection collection)
                  throws java.rmi.RemoteException

RMICollectionImpl

public RMICollectionImpl(java.util.Collection collection,
                         int port)
                  throws java.rmi.RemoteException
Method Detail

getSyslog

public static Syslog getSyslog()

Returns the Syslog object facility.

Each message (debug, log, warning, error, ...) are wrote to this message logger.

Returns:
the Syslog object
See Also:
Syslog

clear

public void clear()
           throws java.rmi.RemoteException
Specified by:
clear in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

contains

public boolean contains(java.lang.Object object)
                 throws java.rmi.RemoteException
Specified by:
contains in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

containsAll

public boolean containsAll(RemoteCollection collection)
                    throws java.rmi.RemoteException
Specified by:
containsAll in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

iterator

public RemoteIterator iterator()
                        throws java.rmi.RemoteException
Specified by:
iterator in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

add

public boolean add(java.lang.Object object)
            throws java.rmi.RemoteException
Specified by:
add in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

addAll

public boolean addAll(RemoteCollection collection)
               throws java.rmi.RemoteException
Specified by:
addAll in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

remove

public boolean remove(java.lang.Object object)
               throws java.rmi.RemoteException
Specified by:
remove in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

removeAll

public boolean removeAll(RemoteCollection collection)
                  throws java.rmi.RemoteException
Specified by:
removeAll in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

retainAll

public boolean retainAll(RemoteCollection collection)
                  throws java.rmi.RemoteException
Specified by:
retainAll in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

toArray

public java.lang.Object[] toArray()
                           throws java.rmi.RemoteException
Specified by:
toArray in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

toArray

public java.lang.Object[] toArray(java.lang.Object[] objects)
                           throws java.rmi.RemoteException
Specified by:
toArray in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

isEmpty

public boolean isEmpty()
                throws java.rmi.RemoteException
Specified by:
isEmpty in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

size

public int size()
         throws java.rmi.RemoteException
Specified by:
size in interface mandala.jacob.remote.rmi.RMICollectionOp
Throws:
java.rmi.RemoteException

toString

public java.lang.String toString()


Mandala help mailing list