use of org.evosuite.rmi.service.ClientNodeImpl in project evosuite by EvoSuite.
the class ClientServices method registerServices.
public boolean registerServices() {
UtilsRMI.ensureRegistryOnLoopbackAddress();
try {
int port = Properties.PROCESS_COMMUNICATION_PORT;
Registry registry = LocateRegistry.getRegistry(port);
clientNode = new ClientNodeImpl(registry);
ClientNodeRemote stub = (ClientNodeRemote) UtilsRMI.exportObject(clientNode);
registry.rebind(clientNode.getClientRmiIdentifier(), stub);
return clientNode.init();
} catch (Exception e) {
logger.error("Failed to register client services", e);
return false;
}
}
Aggregations