Examples of ContainerDTO


Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

            return container != null && container.isRoot();
          }
        }));

    if (rootContainers.size() == 1 && fabric != null) {
      ContainerDTO rootContainer = rootContainers.get(0);
      ContainersNode containersNode = fabric.getContainersNode();
      if (containersNode != null) {
        return containersNode.getContainerNode(rootContainer.getId());
      }
    }
    return null;
  }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

            Viewers.async(new Runnable() {

              @Override
              public void run() {
                for (CreateContainerMetadataDTO metadata : newAgents) {
                  ContainerDTO newContainer = metadata.getContainer();
                  if (newContainer != null) {
                    setContainerProfiles(newContainer, profiles);
                    refreshCreatedAgent(args.getName());
                  }
                }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

            Viewers.async(new Runnable() {

              @Override
              public void run() {
                for (CreateContainerMetadataDTO metadata : newAgents) {
                  ContainerDTO newContainer = metadata.getContainer();
                  if (newContainer != null) {
                    setContainerProfiles(newContainer, profiles);
                    refreshCreatedAgent(args.getName());
                  }
                }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

  public void okPressed() {
    if (isValid()) {
      String agentName = getNewAgentName();
      ProfileDTO[] profiles = getSelectedProfileArray();

      ContainerDTO agent = null;
      if (selectedAgent != null) {
        agent = selectedAgent.getContainer();
      }
      args.setName(agentName);
      getFabric().createContainer(agent, profiles, args.delegate());
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

    // addChild(connectionWrapper);
    // }
  }

  protected boolean hasJmxConnector() {
    ContainerDTO a = getContainer();
    String jmxUrl = a.getJMXUrl();
    boolean provisioned = a.isAlive() && a.isProvisioningComplete();
    return jmxUrl != null && jmxUrl.trim().length() > 0
        && (provisioned || a.isRoot());
  }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

  public boolean supportsJmxDomain(String domain) {
    return container.getJmxDomains().contains(domain);
  }

  public boolean matches(ProfileDTO profile) {
    ContainerDTO ag = getContainer();
    List<String> profileIds = ag.getProfileIDs();
    for (String pId : profileIds) {
      if (Objects.equal(pId, profile.getId())) {
        if (Objects.equal(ag.getVersionId(), profile.getVersionId())) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

  @Override
  public Object[] getElements(Object element) {
    if (element instanceof ContainerNode) {
      ContainerNode node = (ContainerNode) element;
      ContainerDTO agent = node.getContainer();
      return agent.getProfiles().toArray();
    }
    if (element instanceof VersionNode) {
      VersionNode version = (VersionNode) element;
      return getProfileChildren(version);
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

        }

      }
    }

    ContainerDTO agent = null;
    if (selectedAgent != null) {
      agent = selectedAgent.getContainer();
    }
    ProfileDTO[] profiles = form.getSelectedProfileArray();
    versionNode.getFabric().createContainer(agent, profiles, args.build());
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

  }

  @Override
  public void okPressed() {
    ProfileDTO[] profiles = getSelectedProfileArray();
    ContainerDTO agent = node.getContainer();
    FabricPlugin.getLogger().debug("Updating the profiles of " + agent + " to: " + Arrays.asList(profiles));
    agent.setProfileDTOs(Arrays.asList(profiles));
    node.refresh();
    selectionChanged = false;
  }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.dto.ContainerDTO

    openTerminalAction = new ActionSupport(Messages.openTerminalLabel, Messages.openTerminalToolTip, FabricPlugin.getDefault().getImageDescriptor("terminal_view.gif")) {
      @Override
      public void run() {
        List<ContainerDTO> selectedContainers = getSelectedContainers();
        if (selectedContainers.size() > 0) {
          ContainerDTO container = selectedContainers.get(0);
          if (container != null) {
            ContainerNode.openTerminal(getFabric(), container, null);
          }
        }
      }
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.