@Override public boolean apply(CommandUsingClient commandUsingClient) { logger.trace("looking for [%s] state on %s@%s", commandUsingClient.command, commandUsingClient.client .getUsername(), commandUsingClient.client.getHostAddress()); ExecResponse response = refresh(commandUsingClient); while (response.getExitStatus() == -1) response = refresh(commandUsingClient); logger.trace("%s@%s: looking for exit code 0: currently: %s", commandUsingClient.client.getUsername(), commandUsingClient.client.getHostAddress(), response.getExitStatus()); return 0 == response.getExitStatus(); }
@Override public boolean apply(CommandUsingClient commandUsingClient) { logger.trace("looking for [%s] state on %s@%s", commandUsingClient.command, commandUsingClient.client .getUsername(), commandUsingClient.client.getHostAddress()); ExecResponse response = refresh(commandUsingClient); while (response.getExitStatus() == -1) response = refresh(commandUsingClient); logger.trace("%s@%s: looking for exit code 0: currently: %s", commandUsingClient.client.getUsername(), commandUsingClient.client.getHostAddress(), response.getExitStatus()); return 0 == response.getExitStatus(); }
@Override public boolean apply(CommandUsingClient commandUsingClient) { logger.trace("looking for [%s] state on %s@%s", commandUsingClient.command, commandUsingClient.client .getUsername(), commandUsingClient.client.getHostAddress()); ExecResponse response = refresh(commandUsingClient); while (response.getExitStatus() == -1) response = refresh(commandUsingClient); logger.trace("%s@%s: looking for exit code 0: currently: %s", commandUsingClient.client.getUsername(), commandUsingClient.client.getHostAddress(), response.getExitStatus()); return 0 == response.getExitStatus(); }
@Override public boolean apply(CommandUsingClient commandUsingClient) { logger.trace("looking for [%s] state on %s@%s", commandUsingClient.command, commandUsingClient.client .getUsername(), commandUsingClient.client.getHostAddress()); ExecResponse response = refresh(commandUsingClient); while (response.getExitStatus() == -1) response = refresh(commandUsingClient); logger.trace("%s@%s: looking for exit code 0: currently: %s", commandUsingClient.client.getUsername(), commandUsingClient.client.getHostAddress(), response.getExitStatus()); return 0 == response.getExitStatus(); }