Commit a58c1adc authored by hengwen's avatar hengwen
Browse files

Change znode path of rmi-server

parent 2a559379
......@@ -2,7 +2,7 @@ package server.restful.registry;
public class RemoteAutopilotService extends RemoteService{
public static final String BASE_PATH = "/autopilots";
public static final String BASE_PATH = "/rmi-servers/all";
public final String busyPath;
public static final int CAPACITY = 1;
......
......@@ -29,12 +29,12 @@ public class ZookeeperRegistry implements ServiceRegistry {
@Override
public RemoteAutopilotService getAutopilot() throws NoServiceException {
return (RemoteAutopilotService) reserveService("/autopilots", RemoteAutopilotService.class);
return (RemoteAutopilotService) reserveService(RemoteAutopilotService.BASE_PATH, RemoteAutopilotService.class);
}
@Override
public RemoteSimulatorService getSimulator() throws NoServiceException {
return (RemoteSimulatorService) reserveService("/simulators", RemoteSimulatorService.class);
return (RemoteSimulatorService) reserveService(RemoteSimulatorService.BASE_PATH, RemoteSimulatorService.class);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment