Examples of execute()


Examples of org.jboss.as.domain.controller.plan.NewRolloutPlanController.execute()

                    }
                    return result;
                }
            };
            NewRolloutPlanController rolloutPlanController = new NewRolloutPlanController(opsByGroup, rolloutPlan, domainOperationContext, operationExecutor, executorService);
            NewRolloutPlanController.Result planResult = rolloutPlanController.execute();
            if (trace) {
                PrepareStepHandler.log.trace("Rollout plan result is " + planResult);
            }
            if (planResult == NewRolloutPlanController.Result.FAILED) {
                domainOperationContext.setCompleteRollback(true);
View Full Code Here

Examples of org.jboss.as.domain.controller.plan.RolloutPlanController.execute()

                    return result;
                }
            };

            RolloutPlanController rolloutPlanController = new RolloutPlanController(opsByGroup, rolloutPlan, domainOperationContext, operationExecutor, executorService);
            RolloutPlanController.Result planResult = rolloutPlanController.execute();
            if (trace) {
                HOST_CONTROLLER_LOGGER.tracef("Rollout plan result is %s", planResult);
            }
            if (planResult == RolloutPlanController.Result.FAILED) {
                domainOperationContext.setCompleteRollback(true);
View Full Code Here

Examples of org.jboss.as.plugin.deployment.resource.AddResource.execute()

        final File pom = getPom("add-resource-with-composite-pom.xml");

        final AddResource addResourceMojo = lookupMojoAndVerify("add-resource", pom);
        try {
            addResourceMojo.execute();
        } catch (Exception ex) {
            fail(ex.getMessage());
        }

    }
View Full Code Here

Examples of org.jboss.as.plugin.deployment.standalone.StandaloneDeployment.execute()

        return false;
    }

    protected void deploy(final String name) throws IOException, DeploymentExecutionException, DeploymentFailureException {
        final StandaloneDeployment deployment = StandaloneDeployment.create(managementClient.getControllerClient(), getDeployment(), name, Type.DEPLOY, null, null);
        assertEquals(Status.SUCCESS, deployment.execute());

        // Verify deployed
        assertTrue("Deployment " + DEPLOYMENT_NAME + " was not deployed", isDeployed(DEPLOYMENT_NAME));

        // Check the status
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.support.SimpleHandlers.SimpleClient.execute()

        SimpleHandlers.Request request1 = new SimpleHandlers.Request(SimpleHandlers.SIMPLE_REQUEST, 600);
        SimpleHandlers.Request request2 = new SimpleHandlers.Request(SimpleHandlers.SIMPLE_REQUEST, 650);
        SimpleHandlers.Request request3 = new SimpleHandlers.Request(SimpleHandlers.SIMPLE_REQUEST, 700);

        Future<Integer> future1 = client.execute(request1);
        Future<Integer> future2 = client.execute(request2);
        Future<Integer> future3 = client.execute(request3);
        Assert.assertEquals(Integer.valueOf(1400), future3.get());
        Assert.assertEquals(Integer.valueOf(1300), future2.get());
        Assert.assertEquals(Integer.valueOf(1200), future1.get());
View Full Code Here

Examples of org.jboss.byteman.rule.helper.HelperAdapter.execute()

            try {
                Constructor constructor = helperImplementationClass.getConstructor(Rule.class);
                helper = (HelperAdapter)constructor.newInstance(this);
                //helper = (RuleHelper)helperClass.newInstance();
                //helper.setRule(this);
                helper.execute(recipient, args);
            } catch (NoSuchMethodException e) {
                // should not happen!!!
                System.out.println("cannot find constructor " + helperImplementationClass.getCanonicalName() + "(Rule) for helper class");
                e.printStackTrace(System.out);
                return;
View Full Code Here

Examples of org.jboss.cache.profiling.testinternals.TaskRunner.execute()

      long startTime = System.currentTimeMillis();
      TaskRunner exec = new TaskRunner(NUM_THREADS);
      log.warn("Starting warmup");
      // creates all the Fqns since this can be expensive and we don't really want to measure this (for now)
      for (final Fqn f : fqns) {
         exec.execute(new Runnable() {
            public void run() {
               // this will create the necessary nodes.
               cache.put(f, Collections.emptyMap());
            }
         });
View Full Code Here

Examples of org.jboss.console.twiddle.command.Command.execute()

               command.displayHelp();
            }
            else
            {
               // Execute the command
               command.execute(commandArgs);
            }
         }

         System.exit(0);
      }
View Full Code Here

Examples of org.jboss.dashboard.database.hibernate.HibernateTxFragment.execute()

                fireAfterPanelClosed(panel);
            }
        };

        try {
            txFragment.execute();
        } catch (Exception e) {
            log.error("Can't remove panel from region.", e);
        }
        return new ShowPanelPage();
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.controller.CommandResponse.execute()

    public boolean processRequest() throws Exception {
        navigationManager.freezeNavigationStatus();
        CommandResponse cmdResponse = getResponse();
        CommandRequest cmdRequest = getRequest();
        return cmdResponse.execute(cmdRequest);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.