1 import java.net.InetAddress; 2 import java.rmi.Remote; 3 import java.util.HashMap; 4 import java.util.concurrent.ConcurrentHashMap; 5 import java.util.concurrent.locks.ReentrantLock; 6 7 public interface HelloInterface extends Remote { 8 public String sayHello( String from ) throws java.rmi.RemoteException; 9 public String sayHelloToTest( Test test ) throws java.rmi.RemoteException; 10 public String sayHelloWithInetAddress( InetAddress ipAddr ) throws java.rmi.RemoteException; 11 public String sayHelloWithHashMap(ConcurrentHashMap<String, String> hashMap ) throws java.rmi.RemoteException; 12 public String sayHelloWithHashMap2(HashMap<String, String> hashMap ) throws java.rmi.RemoteException; 13 public String sayHelloWithReentrantLock(ReentrantLock lock ) throws java.rmi.RemoteException; 14 }