Exemple #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;
 }
Exemple #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);
   }
 }