private List<ModelNode> getDeploymentList(PathAddress address) throws IOException { ModelNode op = createEmptyOperation("read-children-names", address); op.get("child-type").set("deployment"); ModelNode response = testSupport.getDomainMasterLifecycleUtil().getDomainClient().execute(op); ModelNode result = validateResponse(response); return result.isDefined() ? result.asList() : Collections.<ModelNode>emptyList(); }
private void removeDeployment(String deploymentName, PathAddress address) throws IOException { ModelNode op = createRemoveOperation(address.append(DEPLOYMENT, deploymentName)); ModelNode response = testSupport.getDomainMasterLifecycleUtil().getDomainClient().execute(op); validateResponse(response); }
private ModelNode executeOnMaster(Operation op) throws IOException { return validateResponse( testSupport.getDomainMasterLifecycleUtil().getDomainClient().execute(op)); }