Examples of execute()


Examples of org.eclipse.ui.internal.intro.impl.model.url.IntroURL.execute()

        if (parser.hasIntroUrl()) {
            // stop URL first.
            event.doit = false;
            // execute the action embedded in the IntroURL
            IntroURL introURL = parser.getIntroURL();
            introURL.execute();

            // In the case of dynamic Intro, guard against extra Frame
            // navigations. This can happen in the case of intro injected
            // IFrames or Frames included through intro xml content.
            // INTRO: user defined iframes in Intro pages are not properly
View Full Code Here

Examples of org.eclipse.ui.intro.config.IIntroURL.execute()

    IIntroURL introURL = IntroURLFactory.createIntroURL(url);
    if (introURL != null) {
      IIntroPart intro = closeLaunchBar(true);
      if (intro == null)
        return;
      introURL.execute();
    }
  }

  protected void openPage(String id) {
    IIntroPart intro = closeLaunchBar(true);
View Full Code Here

Examples of org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation.execute()

                model.setProperty(IFacetDataModelProperties.FACET_PROJECT_NAME, project.getName());
                try {
                    IFacetedProject facetedProject = ProjectFacetsManager.create(project);
                    model.setProperty(IFacetProjectCreationDataModelProperties.FACET_RUNTIME, facetedProject.getPrimaryRuntime());
                    IDataModelOperation op = new ImportDeploymentPlanOperation(model);
                    op.execute(new NullProgressMonitor(), null);
                } catch (Exception e) {
                   throw new PartInitException(e.getMessage());
                }
               
                try {
View Full Code Here

Examples of org.eclipse.wst.xml.ui.internal.dnd.DragNodeCommand.execute()

            final DragNodeCommand command = new DragNodeCommand(event.item.getData(), feedbackFloat, event.operations, event.detail, selection.toList(), XMLTableTreeViewer.this);
            if (command != null && command.canExecute()) {
              SafeRunnable.run(new SafeRunnable() {
                public void run() throws Exception {
                  command.execute();
                }
              });
            }
          }
        }
View Full Code Here

Examples of org.ejbca.core.model.approval.ApprovalRequest.execute()

          } else if (approvalRequest instanceof KeyRecoveryApprovalRequest) {
            ((KeyRecoveryApprovalRequest)approvalRequest).execute(userAdminSession);
          } else if (approvalRequest instanceof RevocationApprovalRequest) {
            ((RevocationApprovalRequest)approvalRequest).execute(userAdminSession);
          } else {
            approvalRequest.execute();
          }
          approvalData.setStatus(ApprovalDataVO.STATUS_EXECUTED);
        } catch(ApprovalRequestExecutionException e){
          approvalData.setStatus(ApprovalDataVO.STATUS_EXECUTIONFAILED);
          throw e;
View Full Code Here

Examples of org.ejbca.ui.cli.IAdminCommand.execute()

    public static void main(String[] args) {
        try {
            IAdminCommand cmd = XKMSCLICommandFactory.getCommand(args);

            if (cmd != null) {
                cmd.execute();
            } else {
                System.out.println(
                    "Usage: locate | register | reissue | recover | revoke\n\n" +
                    "Please note that XKMS cannot be used with end entites created with the EMPTY end entity profile for security reasons.");
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder.execute()

        }
    }

    private void printClusterStatus() {
        ClusterHealthRequestBuilder healthRequestBuilder = elasticsearchClient.admin().cluster().prepareHealth();
        ClusterHealthResponse response = healthRequestBuilder.execute().actionGet();
        if (response.getStatus().equals(ClusterHealthStatus.RED)) {
            LOG.error("Cluster health is RED. Indexing ability will be limited");
        } else if (response.getStatus().equals(ClusterHealthStatus.YELLOW)) {
            LOG.warn("Cluster health is YELLOW.");
        } else if (response.getStatus().equals(ClusterHealthStatus.GREEN)) {
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequestBuilder.execute()

                nodesHotThreadsRequestBuilder.setType(type);
            } else {
                type = null;
            }
            final CountDownLatch latch = new CountDownLatch(1);
            nodesHotThreadsRequestBuilder.execute(new ActionListener<NodesHotThreadsResponse>() {
                @Override
                public void onResponse(NodesHotThreadsResponse nodeHotThreads) {
                    boolean success = false;
                    try {
                        assertThat(nodeHotThreads, notNullValue());
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.info.NodesInfoRequestBuilder.execute()

    @Override
    public List<Object> getNodesServingPool(String pool) {
        if("default".equals(pool)) {

            NodesInfoRequestBuilder infoBuilder = client.admin().cluster().prepareNodesInfo((String[]) null);
            NodesInfoResponse infoResponse = infoBuilder.execute().actionGet();

            // extract what we need from this response
            List<Object> nodes = new ArrayList<Object>();
            for (NodeInfo nodeInfo : infoResponse.getNodes()) {
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.stats.NodesStatsRequestBuilder.execute()

                    }
                } else if ((method.getName().equals("all") || method.getName().equals("clear")) && randomBoolean()) {
                    method.invoke(nsBuilder);
                }
            }
            NodesStatsResponse ns = nsBuilder.execute().actionGet();
            tc.close();

        }
    }
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.