Ejemplo n.º 1
0
 public static SRPCRegistry getLocalSRPCRegistry() {
   if (SRPC_REGISTRY == null) {
     SRPCServer theServer = new SRPCServer(TOD_SRPC_PORT, false);
     SRPC_REGISTRY = theServer.getRegistry();
   }
   return SRPC_REGISTRY;
 }
Ejemplo n.º 2
0
 public static RIRegistry getRemoteSRPCRegistry(String aHost, int aPort) {
   try {
     return SRPCServer.connectTo(aHost, aPort);
   } catch (UnknownHostException e) {
     throw new RuntimeException(e);
   } catch (IOException e) {
     throw new RuntimeException(e);
   }
 }