Ejemplo n.º 1
0
  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();
  }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 private ModelNode executeOnMaster(Operation op) throws IOException {
   return validateResponse(
       testSupport.getDomainMasterLifecycleUtil().getDomainClient().execute(op));
 }