Examples of ContainerInfo


Examples of ch.iterate.openstack.swift.model.ContainerInfo

    }

    public ContainerInfo handleResponse(final HttpResponse response) throws ClientProtocolException, IOException {
        if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NO_CONTENT ||
                response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
            return new ContainerInfo(region, container,
                    this.getContainerObjectCount(response), this.getContainerBytesUsed(response));
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND) {
            throw new ContainerNotFoundException(new Response(response));
        }
View Full Code Here

Examples of co.cask.cdap.proto.Containers.ContainerInfo

        Containers.ContainerType containerType = ProgramType.FLOW.equals(type) ? FLOWLET :
                                                 Containers.ContainerType.valueOf(type.name());

        for (Map.Entry<String, Collection<TwillRunResources>> entry : report.getResources().entrySet()) {
          for (TwillRunResources resources : entry.getValue()) {
            liveInfo.addContainer(new ContainerInfo(containerType,
                                                    entry.getKey(),
                                                    resources.getInstanceId(),
                                                    resources.getContainerId(),
                                                    resources.getHost(),
                                                    resources.getMemoryMB(),
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo

      }
    });
    // when association of container is going to be executed during "parse"
    addBroadcastListener(new JavaInfoSetAssociationBefore() {
      public void invoke(JavaInfo javaInfo, Association association) throws Exception {
        ContainerInfo container = getContainer();
        if (isActive() && GlobalState.isParsing() && javaInfo == container) {
          ensureCenterWidget();
        }
      }
    });
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo

   * Adds listeners to the {@link BroadcastSupport}.
   */
  private void addBroadcastListeners() {
    addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        ContainerInfo container = getContainer();
        // ensure that all widgets have LayoutData, at least virtual
        if (isActiveOnContainer(container)) {
          for (WidgetInfo widget : container.getChildrenWidgets()) {
            ensureLayoutData(widget);
          }
        }
      }
    });
    addBroadcastListener(new ObjectInfoChildAddBefore() {
      public void invoke(ObjectInfo parent, ObjectInfo child, ObjectInfo[] nextChild)
          throws Exception {
        // add new LayoutData - remove existing one
        if (parent instanceof WidgetInfo
            && child instanceof LayoutDataInfo
            && isActiveOnContainer(parent.getParent())) {
          WidgetInfo widget = (WidgetInfo) parent;
          LayoutDataInfo existingLayoutData = getLayoutData(widget);
          if (existingLayoutData != null) {
            widget.removeChild(existingLayoutData);
          }
        }
      }
    });
    addBroadcastListener(new ObjectInfoChildAddAfter() {
      public void invoke(ObjectInfo parent, ObjectInfo child) throws Exception {
        ContainerInfo container = getContainer();
        // add this layout
        if (child == m_this) {
          // implicit layouts are bound to its parent
          if (getCreationSupport() instanceof IImplicitCreationSupport) {
            targetBroadcastListener(parent);
          }
          // create virtual LayoutData's
          for (WidgetInfo widget : container.getChildrenWidgets()) {
            ensureLayoutData(widget);
          }
        }
      }
    });
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo

   * @return <code>true</code> if this {@link LayoutInfo} is active on its {@link ContainerInfo}.
   *         For example implicit {@link LayoutInfo}'s replaced by "real" {@link LayoutInfo} are
   *         inactive.
   */
  public final boolean isActive() {
    ContainerInfo container = getContainer();
    return isActiveOnContainer(container);
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo

  ////////////////////////////////////////////////////////////////////////////
  /**
   * Adds new {@link WidgetInfo} using <code>Container.add(Widget,LayoutData)</code>.
   */
  public void command_CREATE(WidgetInfo component, WidgetInfo nextComponent) throws Exception {
    ContainerInfo container = getContainer();
    AssociationObject association = getAssociation_();
    JavaInfoUtils.add(component, association, container, nextComponent);
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo

  /**
   * Moves {@link WidgetInfo} in/to this container using
   * <code>Container.add(Widget,LayoutData)</code>.
   */
  public void command_MOVE(WidgetInfo component, WidgetInfo nextComponent) throws Exception {
    ContainerInfo container = getContainer();
    AssociationObject association = getAssociation_();
    JavaInfoUtils.move(component, association, container, nextComponent);
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.ContainerInfo

  // IEditPartConfigurator
  //
  ////////////////////////////////////////////////////////////////////////////
  public void configure(EditPart context, EditPart editPart) {
    if (editPart.getModel() instanceof ContainerInfo) {
      ContainerInfo container = (ContainerInfo) editPart.getModel();
      if (container.hasLayout()) {
        new LayoutTracker(container, editPart);
      }
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.widgets.ContainerInfo

    }
    return AbsolutePolicyUtils.DEFAULT_CONTAINER_GAP;
  }

  public Dimension getContainerSize() {
    ContainerInfo container = m_layout.getContainer();
    Dimension size = container.getModelBounds().getSize().getCopy();
    Insets insets = container.getClientAreaInsets();
    return size.shrink(insets.getWidth(), insets.getHeight());
  }
View Full Code Here

Examples of com.spotify.docker.client.messages.ContainerInfo

  private String createAndStartContainer()
      throws DockerException, InterruptedException {

    // Check if the container is already running
    final ContainerInfo info = getContainerInfo(existingContainerId);
    if (info != null && info.state().running()) {
      return existingContainerId;
    }

    // Ensure we have the image
    final String image = config.containerImage();
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.