Examples of ContainerInfo


Examples of io.fabric8.docker.api.container.ContainerInfo

            HostConfig hostConfig = new HostConfig();
            hostConfig.setPublishAllPorts(true);
            System.out.println("Starting docker container id " + rootDockerContainerId);
            docker.containerStart(rootDockerContainerId, hostConfig);

            ContainerInfo containerInfo = docker.containerInspect(rootDockerContainerId);
            System.out.println("Inspected container got: " + containerInfo);

            NetworkSettings networkSettings = containerInfo.getNetworkSettings();
            assertNotNull("No NetworkSettings available for docker container: " + rootDockerContainerId, networkSettings);
            Map<String, Object> ports = networkSettings.getPorts();
            String webPortText = "8181/tcp";
            Object bindingObject = ports.get(webPortText);
            if (bindingObject instanceof List) {
View Full Code Here

Examples of net.mcft.copy.betterstorage.api.crafting.ContainerInfo

    checkHasRequirements = true;
  }
 
  private ItemStack craftSlot(ItemStack stack, IRecipeInput requiredInput, EntityPlayer player, boolean simulate) {
    if (simulate) stack = stack.copy();
    ContainerInfo containerInfo = new ContainerInfo();
    requiredInput.craft(stack, containerInfo);
    ItemStack containerItem = ItemStack.copyItemStack(containerInfo.getContainerItem());
   
    boolean removeStack = false;
    if (stack.stackSize <= 0) {
      // Item stack is depleted.
      removeStack = true;
    } else if (stack.getItem().isDamageable() && (stack.getItemDamage() > stack.getMaxDamage())) {
      // Item stack is destroyed.
      removeStack = true;
      if (player != null)
        MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(player, stack));
    }
   
    // If the stack has been depleted, set it
    // to either null, or the container item.
    if (removeStack) {
      if (!containerInfo.doesLeaveCrafting()) {
        stack = containerItem;
        containerItem = null;
      } else stack = null;
    }
   
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.webapp.dao.ContainerInfo

      if (container == null) {
        div.h1("Unknown Container. Container might have completed, "
                + "please go back to the previous page and retry.")._();
        return;
      }
      ContainerInfo info = new ContainerInfo(this.nmContext, container);

      info("Container information")
        ._("ContainerID", info.getId())
        ._("ContainerState", info.getState())
        ._("ExitStatus", info.getExitStatus())
        ._("Diagnostics", info.getDiagnostics())
        ._("User", info.getUser())
        ._("TotalMemoryNeeded", info.getMemoryNeeded())
        ._("TotalVCoresNeeded", info.getVCoresNeeded())
        ._("logs", info.getShortLogLink(), "Link to logs");
      html._(InfoBlock.class);
    }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo

        return;
      }
      long startTime = Long.MAX_VALUE;
      String logsLink = null;
      if (containerReport != null) {
        ContainerInfo container = new ContainerInfo(containerReport);
        startTime = container.getStartedTime();
        logsLink = containerReport.getLogUrl();
      }
      String nodeLink = null;
      if (appAttempt.getHost() != null && appAttempt.getRpcPort() >= 0
          && appAttempt.getRpcPort() < 65536) {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ContainerInfo

    public void testConfigureByType() throws Exception {
        ConfigurationFactory factory = new ConfigurationFactory();

        Container container = new Container("MyContainer", null, "STATELESS");
        container.getProperties().setProperty("anotherProperty", "Cheese is good");
        ContainerInfo myStatelessContainer = factory.configureService(container,  ContainerInfo.class);

        assertNotNull(myStatelessContainer);
        assertEquals("org.apache.openejb.core.stateless.StatelessContainer", myStatelessContainer.className);
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ContainerInfo

            if (infoClass == null) {
                throw new OpenEJBException("Unrecognized contianer type " + declaration.getType());
            }

            ContainerInfo info = configureService(declaration, infoClass);

            sys.containerSystem.containers.add(info);
        }

View Full Code Here

Examples of org.apache.openejb.assembler.classic.ContainerInfo

                infoClass = EjbContainer.getInfoType(type);
            }
            String serviceId = (String) containerData.getAttribute("id");
            Properties declaredProperties = (Properties) containerData.getAttribute("properties");
            String providerId = (String) containerData.getAttribute("provider");
            ContainerInfo containerInfo = configurationFactory.configureService(infoClass, serviceId, declaredProperties, providerId, "Container");
            containerSystem.containers.add(containerInfo);
        }
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ContainerInfo

                String activationSpecClass = entry.getValue();

                // only process RA if not previously processed
                String containerName = resourceAdapterId + "-" + messageListenerInterface;
                // get default mdb config
                ContainerInfo containerInfo = configurationFactory.configureService(MdbContainerInfo.class);
                containerInfo.id = containerName;
                containerInfo.displayName = containerName;

                // set ra specific properties
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ContainerInfo

                // only process RA if not previously processed
                String containerName = getResourceAdapterId(resourceAdapterWrapper) + "-" + messageListenerInterface;
                if (processedResourceAdapterWrappers.putIfAbsent(containerName,  resourceAdapterWrapper) == null) {
                    try {
                        // get default mdb config
                        ContainerInfo containerInfo = configurationFactory.configureService(MdbContainerInfo.class);
                        containerInfo.id = containerName;
                        containerInfo.displayName = containerName;

                        // set ra specific properties
                        containerInfo.properties.put("MessageListenerInterface",
View Full Code Here

Examples of org.apache.openejb.assembler.classic.ContainerInfo

    public ContainerSystem getContainerSystem() {
        return assembler.getContainerSystem();
    }

    public Container createContainer(Class<? extends ContainerInfo> type, String serviceId, Properties declaredProperties, String providerId) throws OpenEJBException {
        ContainerInfo containerInfo = configurationFactory.configureService(type, serviceId, declaredProperties, providerId, "Container");
        assembler.createContainer(containerInfo);
        Container container = assembler.getContainerSystem().getContainer(serviceId);
        return container;
    }
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.