|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.RHash
Abstract client for Remote Hash service.
| Constructor Summary | |
RHash(String server)
Constructor! |
|
| Method Summary | |
boolean |
connected()
Verify we still have a connection to the RMI server. |
protected void |
finalize()
|
Object |
get(String name)
gets an object from the remote object server. |
static void |
main(String[] args)
|
void |
put(String name,
Object o)
stores an object in the remote object server. |
| Methods inherited from class net.spy.SpyObject |
getLogger |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RHash(String server)
throws NestedException
server - RMI URL to ObjectServer, for example:
rmi://rmiregistoryserverthing/ObjectServer
NotBoundException - An exception is thrown if an RMI connection
cannot be established.
NestedException| Method Detail |
public Object get(String name)
name - name of the object to fetch.
public void put(String name,
Object o)
name - key under which to store the objecto - object to store.public boolean connected()
protected void finalize()
throws Throwable
Throwable
public static void main(String[] args)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||