Examples of containers()


Examples of com.nirima.docker.client.DockerClient.containers()

     * This includes those instances that may be started outside Hudson.
     */
    public int countCurrentDockerSlaves(String ami) throws Exception {
        final DockerClient dockerClient = connect();

        List<Container> containers = dockerClient.containers().finder().allContainers(false).list();

        if (ami == null)
            return containers.size();

        List<Image> images = dockerClient.images().finder().allImages(true).filter(ami).list();
View Full Code Here

Examples of com.woorea.openstack.swift.Swift.containers()

      Swift swift = new Swift(KeystoneUtils.findEndpointURL(access.getServiceCatalog(), "object-store", null, "public"));
      swift.setTokenProvider(new OpenStackSimpleTokenProvider(access.getToken().getId()));
   
      //swiftClient.execute(new DeleteContainer("navidad2"));
     
      swift.containers().create("navidad2").execute();
     
      System.out.println(swift.containers().list());
     
      ObjectForUpload upload = new ObjectForUpload();
      upload.setContainer("navidad2");
View Full Code Here

Examples of com.woorea.openstack.swift.Swift.containers()

   
      //swiftClient.execute(new DeleteContainer("navidad2"));
     
      swift.containers().create("navidad2").execute();
     
      System.out.println(swift.containers().list());
     
      ObjectForUpload upload = new ObjectForUpload();
      upload.setContainer("navidad2");
      upload.setName("example2");
      upload.setInputStream(new FileInputStream(TEST_FILE));
View Full Code Here

Examples of com.woorea.openstack.swift.Swift.containers()

     
      ObjectForUpload upload = new ObjectForUpload();
      upload.setContainer("navidad2");
      upload.setName("example2");
      upload.setInputStream(new FileInputStream(TEST_FILE));
      swift.containers().container("navidad2").upload(upload).execute();
     
//      System.out.println(swiftClient.execute(new ListObjects("navidad2", new HashMap<String, String>() {{
//        put("path", "");
//      }})).get(0).getContentType());
     
View Full Code Here

Examples of com.woorea.openstack.swift.Swift.containers()

//      System.out.println(swiftClient.execute(new ListObjects("navidad2", new HashMap<String, String>() {{
//        put("path", "");
//      }})).get(0).getContentType());
     
     
      ObjectDownload download = swift.containers().container("navidad").download("example2").execute();
      write(download.getInputStream(), "example2");
    }

  }
 
View Full Code Here

Examples of io.fabric8.jolokia.facade.mbeans.FabricMBean.containers()

        // this can only be run if you have a fabric running...
        Assume.assumeTrue(Boolean.valueOf(System.getProperty("hasFabric")));

        FabricMBean facade = getFabricMBean();

        String json = facade.containers();

        try {
            Collection<ContainerDTO> containers = Helpers.getObjectMapper().readValue(json, TypeFactory.defaultInstance().constructParametricType(Collection.class, ContainerDTO.class));
            Assume.assumeNotNull(containers);
            for (ContainerDTO container : containers) {
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.containers()

            }

            system.setComponent(ContainerSystem.class, containerSystem);

            if (logger.isDebugEnabled()) {
                logger.debug("startup.debugContainers", containerSystem.containers().length);

                if (containerSystem.containers().length > 0) {
                    Container[] c = containerSystem.containers();
                    logger.debug("startup.debugContainersType");
                    for (int i = 0; i < c.length; i++) {
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.containers()

            system.setComponent(ContainerSystem.class, containerSystem);

            if (logger.isDebugEnabled()) {
                logger.debug("startup.debugContainers", containerSystem.containers().length);

                if (containerSystem.containers().length > 0) {
                    Container[] c = containerSystem.containers();
                    logger.debug("startup.debugContainersType");
                    for (int i = 0; i < c.length; i++) {
                        String entry = "   ";
                        switch (c[i].getContainerType()) {
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.containers()

            if (logger.isDebugEnabled()) {
                logger.debug("startup.debugContainers", containerSystem.containers().length);

                if (containerSystem.containers().length > 0) {
                    Container[] c = containerSystem.containers();
                    logger.debug("startup.debugContainersType");
                    for (int i = 0; i < c.length; i++) {
                        String entry = "   ";
                        switch (c[i].getContainerType()) {
                            case BMP_ENTITY:
View Full Code Here

Examples of org.apache.openejb.spi.ContainerSystem.containers()

            }

            system.setComponent(ContainerSystem.class, containerSystem);

            if (logger.isDebugEnabled()) {
                logger.debug("startup.debugContainers", containerSystem.containers().length);

                if (containerSystem.containers().length > 0) {
                    Container[] c = containerSystem.containers();
                    logger.debug("startup.debugContainersType");
                    for (int i = 0; i < c.length; i++) {
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.