private LocatorState statusWithPid() { try { final ProcessController controller = new ProcessControllerFactory() .createProcessController(this.controllerParameters, getPid()); controller.checkPidSupport(); final String statusJson = controller.status(); return LocatorState.fromJson(statusJson); } catch (ConnectionFailedException handled) { // failed to attach to locator JVM return createNoResponseState(handled, "Failed to connect to locator with process id " + getPid()); } catch (IOException | MBeanInvocationFailedException | UnableToControlProcessException | TimeoutException handled) { return createNoResponseState(handled, "Failed to communicate with locator with process id " + getPid()); } catch (InterruptedException handled) { Thread.currentThread().interrupt(); return createNoResponseState(handled, "Interrupted while trying to communicate with locator with process id " + getPid()); } }
return LocatorState.fromJson(statusJson); } catch (ConnectionFailedException handled) {
locatorState = LocatorLauncher.LocatorState.fromJson(locatorProxy.status()); locatorProxy.shutDownMember(); } else {
LocatorLauncher.LocatorState.fromJson(locatorProxy.status()); return createStatusLocatorResult(state); } else {
private LocatorState fromJson(final String value) { return LocatorState.fromJson(value); }