43 |
import java.rmi.AlreadyBoundException; |
import java.rmi.AlreadyBoundException; |
44 |
import java.rmi.Remote; |
import java.rmi.Remote; |
45 |
|
|
46 |
public interface Registry |
public interface Registry extends Remote |
47 |
extends Remote { |
{ |
48 |
|
public static final int REGISTRY_PORT = 1099; |
49 |
|
|
50 |
public static int REGISTRY_PORT = 1099; |
public Remote lookup(String name) |
51 |
|
throws RemoteException, NotBoundException, AccessException; |
52 |
|
|
53 |
public Remote lookup(String name) throws RemoteException, NotBoundException, AccessException; |
public void bind(String name, Remote obj) |
54 |
|
throws RemoteException, AlreadyBoundException, AccessException; |
55 |
|
|
56 |
public void bind(String name, Remote obj) throws RemoteException, AlreadyBoundException, AccessException; |
public void unbind(String name) |
57 |
|
throws RemoteException, NotBoundException, AccessException; |
58 |
|
|
59 |
public void unbind(String name) throws RemoteException, NotBoundException, AccessException; |
public void rebind(String name, Remote obj) |
60 |
|
throws RemoteException, AccessException; |
|
public void rebind(String name, Remote obj) throws RemoteException, AccessException; |
|
|
|
|
|
public String[] list() throws RemoteException, AccessException; |
|
61 |
|
|
62 |
|
public String[] list() |
63 |
|
throws RemoteException, AccessException; |
64 |
} |
} |