-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNameService.java
More file actions
38 lines (31 loc) · 1.01 KB
/
Copy pathNameService.java
File metadata and controls
38 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// This file MUST be implemented by students when completing activity 3
//
import java.rmi.*;
import java.rmi.server.*;
import java.util.*;
public class NameService extends UnicastRemoteObject
implements INameService
{
public NameService () throws RemoteException {
super (ChatConfiguration.the().getMyPort());
}
// ISA INameService
public void bind (String name, Remote obj) throws RemoteException,
AlreadyBoundException
{
System.err.println ("This method must be implemented!!!");
}
// ISA INameService
public void rebind (String name, Remote obj) throws RemoteException {
System.err.println ("This method must be implemented!!!");
}
// ISA INameService
public void unbind (String name) throws RemoteException {
System.err.println ("This method must be implemented!!!");
}
// ISA INameService
public Remote resolve (String name) throws RemoteException
{
System.err.println ("This method must be implemented!!!"); return null;
}
}