public static SRPCRegistry getLocalSRPCRegistry() { if (SRPC_REGISTRY == null) { SRPCServer theServer = new SRPCServer(TOD_SRPC_PORT, false); SRPC_REGISTRY = theServer.getRegistry(); } return SRPC_REGISTRY; }
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); } }