1import java.net.InetAddress; 2import java.rmi.Remote; 3import java.util.HashMap; 4import java.util.concurrent.ConcurrentHashMap; 5import java.util.concurrent.locks.ReentrantLock; 6 7public 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} 15