net.spy.rmi
Interface RObject

All Superinterfaces:
Remote
All Known Implementing Classes:
RObjectImpl

public interface RObject
extends Remote

RObject is an RMI service that allows you to access a hash table stored on a remote machine's disk.


Method Summary
 Object getObject(String name)
          Fetch an object from the object server.
 boolean ping()
          Make sure the server is available and functioning.
 void storeObject(String name, Object o)
          Store an Object in the object server.
 

Method Detail

storeObject

public void storeObject(String name,
                        Object o)
                 throws RemoteException
Store an Object in the object server.

Parameters:
name - Key under which the object will be stored
o - Object to store
Throws:
RemoteException - when something breaks

getObject

public Object getObject(String name)
                 throws RemoteException
Fetch an object from the object server.

Parameters:
name - Name of the object to fetch.
Returns:
the object
Throws:
RemoteException - when something breaks

ping

public boolean ping()
             throws RemoteException
Make sure the server is available and functioning.

Returns:
true if the server is awake.
Throws:
RemoteException - when something breaks