@Override public boolean execute(ManagedServer server) throws Exception { final ModelNode operation = new ModelNode(); operation.get(OP).set(RELOAD); operation.get(OP_ADDR).setEmptyList(); if(suspend) { operation.get(START_MODE).set(SUSPEND); } // See WFCORE-1791, Operation-id is sent back again to the HC in // HostControllerConnection.ServerRegisterRequest.sendRequest method. // With this operation-id ServerRegistrationStepHandler is able to acquire // the lock and register the server in the domain. operation.get("operation-id").set(permit); try { final TransactionalProtocolClient.PreparedOperation<?> prepared = TransactionalProtocolHandlers.executeBlocking(operation, protocolClient); if (prepared.isFailed()) { return false; } prepared.commit(); // Just commit and discard the result } catch (IOException ignore) { // } return true; } }
@Override public boolean execute(ManagedServer server) throws Exception { final ModelNode operation = new ModelNode(); operation.get(OP).set(RELOAD); operation.get(OP_ADDR).setEmptyList(); if(suspend) { operation.get(START_MODE).set(SUSPEND); } // See WFCORE-1791, Operation-id is sent back again to the HC in // HostControllerConnection.ServerRegisterRequest.sendRequest method. // With this operation-id ServerRegistrationStepHandler is able to acquire // the lock and register the server in the domain. operation.get("operation-id").set(permit); try { final TransactionalProtocolClient.PreparedOperation<?> prepared = TransactionalProtocolHandlers.executeBlocking(operation, protocolClient); if (prepared.isFailed()) { return false; } prepared.commit(); // Just commit and discard the result } catch (IOException ignore) { // } return true; } }
preparedOperation = TransactionalProtocolHandlers.executeBlocking(fetchContentOp, client); } catch (IOException e) { throw new OperationFailedException(e);
preparedOperation = TransactionalProtocolHandlers.executeBlocking(fetchContentOp, client); } catch (IOException e) { throw new OperationFailedException(e);