return ServerState.fromJson(statusJson); } catch (ConnectionFailedException handled) {
serverState = ServerLauncher.ServerState.fromJson(serverProxy.status()); serverProxy.shutDownMember(); } else {
ServerLauncher.ServerState.fromJson(serverProxy.status()).toString()); } else { return ResultModel.createError((CliStrings
private ServerState statusWithPid() { try { final ProcessController controller = new ProcessControllerFactory() .createProcessController(this.controllerParameters, getPid()); controller.checkPidSupport(); final String statusJson = controller.status(); return ServerState.fromJson(statusJson); } catch (ConnectionFailedException handled) { // failed to attach to server JVM return createNoResponseState(handled, "Failed to connect to server with process id " + getPid()); } catch (IOException | MBeanInvocationFailedException | UnableToControlProcessException | InterruptedException | TimeoutException handled) { return createNoResponseState(handled, "Failed to communicate with server with process id " + getPid()); } }