running = false; pid = -1; ssState = stateService.setState(name, InstanceState.StateType.NOT_RUNNING, false); ssState = stateService.setState(name, Boolean.parseBoolean(restartstr) ? InstanceState.StateType.RESTART_REQUIRED : uptime = -1; state = NOT_RUNNING; ssState = stateService.setState(name, InstanceState.StateType.NOT_RUNNING, false); running = false; pid = -1;
stateService.setState(server.getName(), InstanceState.StateType.NO_RESPONSE, true); stateService.removeFailedCommandsForInstance(server.getName()); } catch (Exception ex) {
stateService.setState(server.getName(), InstanceState.StateType.NO_RESPONSE, true); stateService.removeFailedCommandsForInstance(server.getName()); } catch (Exception ex) {
: InstanceState.StateType.NOT_RUNNING.getDescription(); InstanceState.StateType state = (ii.isRunning()) ? (stateService.setState(name, InstanceState.StateType.RUNNING, false)) : (stateService.setState(name, InstanceState.StateType.NOT_RUNNING, false)); List<String> failedCmds = stateService.getFailedCommands(name); if (state == InstanceState.StateType.RESTART_REQUIRED) {
: InstanceState.StateType.NOT_RUNNING.getDescription(); InstanceState.StateType state = (ii.isRunning()) ? (stateService.setState(name, InstanceState.StateType.RUNNING, false)) : (stateService.setState(name, InstanceState.StateType.NOT_RUNNING, false)); List<String> failedCmds = stateService.getFailedCommands(name); if (state == InstanceState.StateType.RESTART_REQUIRED) {
" dynamic-reconfig-enabled flag is set to false for cluster {0}", targetName)); for(Server s : targetService.getInstances(targetName)) { instanceState.setState(s.getName(), InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s.getName(), commandName, parameters); } else { clusterNoReplication.add(s.getCluster().getName()); instanceState.setState(s.getName(), InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s.getName(), commandName, parameters);
" dynamic-reconfig-enabled flag is set to false for cluster {0}", targetName)); for(Server s : targetService.getInstances(targetName)) { instanceState.setState(s.getName(), InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s.getName(), commandName, parameters); } else { clusterNoReplication.add(s.getCluster().getName()); instanceState.setState(s.getName(), InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s.getName(), commandName, parameters);
returnValue = finalResult; if(finalResult != ActionReport.ExitCode.SUCCESS) { instanceState.setState(s, InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s, commandName, parameters); if(returnValue == ActionReport.ExitCode.SUCCESS) returnValue = finalResult; instanceState.setState(s, InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s, commandName, parameters); InstanceStateService instanceState = habitat.getComponent(InstanceStateService.class); for(Server s : targetService.getInstances(t)) { instanceState.setState(s.getName(), InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s.getName(), commandName, parameters);
"dynamic-reconfiguration-enabled flag is set to false for config {2}", new Object[] {commandName, svr.getName(), scfg.getName()})); instanceState.setState(svr.getName(), InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(svr.getName(), commandName, parameters); returnValue = ActionReport.ExitCode.WARNING; instanceState.setState(s, InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s, commandName, parameters); if(returnValue == ActionReport.ExitCode.SUCCESS) returnValue = finalResult; instanceState.setState(s, InstanceState.StateType.RESTART_REQUIRED, false); instanceState.addFailedCommandToInstance(s, commandName, parameters);