Examples of stopContainer()


Examples of org.apache.hadoop.yarn.api.ContainerManager.stopContainer()

            // kill the remote container if already launched
            StopContainerRequest stopRequest = Records
              .newRecord(StopContainerRequest.class);
            stopRequest.setContainerId(this.containerID);
            proxy.stopContainer(stopRequest);

        } catch (Throwable t) {

          // ignore the cleanup failure
          String message = "cleanup failed for container "
View Full Code Here

Examples of org.apache.hadoop.yarn.api.ContainerManager.stopContainer()

    //test remote exception
    boolean exception = false;
    try {
      StopContainerRequest stopRequest = recordFactory.newRecordInstance(StopContainerRequest.class);
      stopRequest.setContainerId(containerLaunchContext.getContainerId());
      proxy.stopContainer(stopRequest);
    } catch (YarnRemoteException e) {
      exception = true;
      System.err.println(e.getMessage());
      System.err.println(e.getCause().getMessage());
      Assert.assertTrue(EXCEPTION_MSG.equals(e.getMessage()));
View Full Code Here

Examples of org.apache.hadoop.yarn.api.ContainerManager.stopContainer()

            conf);
        LOG.info("Going to make a legal stopContainer() request");
        StopContainerRequest request = recordFactory
            .newRecordInstance(StopContainerRequest.class);
        request.setContainerId(containerID);
        client.stopContainer(request);
        return null;
      }
    });

    KillApplicationRequest request = Records
View Full Code Here

Examples of org.apache.hadoop.yarn.api.ContainerManager.stopContainer()

        // Try stopping a container - should not get an expiry error.
        StopContainerRequest stopRequest = Records.newRecord(StopContainerRequest.class);
        stopRequest.setContainerId(newTokenId.getContainerID());
        try {
          client.stopContainer(stopRequest);
        } catch (Throwable t) {
          fail("Stop Container call should have succeeded");
        }
       
        return null;
View Full Code Here

Examples of org.apache.helix.controller.provisioner.ContainerProvider.stopContainer()

          final ContainerId containerId = participant.getInstanceConfig().getContainerId();
          updateContainerState(cache, accessor, keyBuilder, cluster, null, participant.getId(),
              ContainerState.HALTING);
          // stop the container
          LOG.info("Stopping container " + containerId + " for " + participant.getId());
          ListenableFuture<Boolean> future = containerProvider.stopContainer(containerId);
          FutureCallback<Boolean> callback = new FutureCallback<Boolean>() {
            @Override
            public void onSuccess(Boolean result) {
              // Don't update the state here, wait for the live instance, but do send a shutdown
              // message
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.WorkspaceContainer.stopContainer()

      if (isWorkspaceInitialized(workspaceName))
      {
         workspaceContainer = repositoryContainer.getWorkspaceContainer(workspaceName);
         try
         {
            workspaceContainer.stopContainer();
            workspaceContainer.stop();
         }
         catch (Exception e)
         {
            throw new RepositoryException(e);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.WorkspaceContainer.stopContainer()

      if (isWorkspaceInitialized(workspaceName))
      {
         workspaceContainer = repositoryContainer.getWorkspaceContainer(workspaceName);
         try
         {
            workspaceContainer.stopContainer();
            workspaceContainer.stop();
         }
         catch (Exception e)
         {
            throw new RepositoryException(e);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.WorkspaceContainer.stopContainer()

      if (isWorkspaceInitialized(workspaceName))
      {
         workspaceContainer = repositoryContainer.getWorkspaceContainer(workspaceName);
         try
         {
            workspaceContainer.stopContainer();
            workspaceContainer.stop();
         }
         catch (Exception e)
         {
            throw new RepositoryException(e);
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade.stopContainer()

     
      ContainerDTO container = fabric8.getCurrentContainer();
      assertNotNull("getCurrentContainer() returned NULL!", container);

      // TODO: create container, start it, check if started, stop it, check if stopped, delete container
      fabric8.stopContainer(container);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

        Assert.assertNotNull(foo.getBar());
        Assert.assertEquals("hi!", foo.getMessage());


        container.stopContainer();
    }

    /**
     * Get the bean manager, assuming a flat deployment structure
     */
 
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.