-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
None
-
False
-
-
In many cases a ServerSetupTask will execute some kind of management operation against a server. It would be helpful to some helper methods like:
default ModelNode executeOperation(final ManagementClient client, final ModelNode op, final Function<ModelNode, String> errorMessage) throws IOException { final ModelNode result = client.getControllerClient().execute(op); if (!Operations.isSuccessfulOutcome(result)) { throw new RuntimeException(errorMessage.apply(result)); } return Operations.readResult(result); }
This avoids implementations having to implement this on their own as it's a failure standard pattern. It might be useful to create a new RuntimeException these methods could throw as well. Or possibly reuse the org.wildfly.plugin.tools.OperationException.
- duplicates
-
WFARQ-166 Add default operation executions methods to the ServerSetupTask
- Closed
- is incorporated by
-
RESTEASY-3492 Upgrade WildFly Arquillian to 5.1.0.Beta2
- Resolved
-
WFLY-19257 Upgrade WildFly Arquillian from 5.0.1.Final to 5.1.0.Beta2
- Resolved