1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package jgroup.relacs.registry;
19
20 import java.io.IOException;
21 import java.rmi.AccessException;
22 import java.rmi.NotBoundException;
23 import java.rmi.Remote;
24 import java.rmi.RemoteException;
25
26 import jgroup.core.registry.LookupRegistry;
27 import jgroup.jini.LookupManager;
28
29
30
31
32
33
34 public class GregRegistryImpl
35 implements LookupRegistry
36 {
37
38 public Remote lookup(String name)
39 throws RemoteException, NotBoundException, AccessException
40 {
41 try {
42 Remote proxy = (Remote) LookupManager.lookup(name);
43 return proxy;
44 } catch (IOException e) {
45 throw new RemoteException("Failed to retrieve a reference to the remote object");
46 }
47 }
48
49 public String[] list() throws RemoteException, AccessException
50 {
51 throw new UnsupportedOperationException("Not supported");
52 }
53 }
54