Examples of DetailedContainerResource


Examples of org.springframework.xd.rest.domain.DetailedContainerResource

    return createResourceWithId(entity.getName(), entity);
  }

  @Override
  protected DetailedContainerResource instantiateResource(DetailedContainer entity) {
    return new DetailedContainerResource(entity.getAttributes(), entity.getDeploymentSize(),
        moduleMetadatResourceAssembler.toResources(entity.getDeployedModules()), entity.getMessageRates());
  }
View Full Code Here

Examples of org.springframework.xd.rest.domain.DetailedContainerResource

  public static Map<String, String> getAvailableContainers(URL adminServer) {
    Assert.notNull(adminServer, "adminServer must not be null");
    HashMap<String, String> results = new HashMap<String, String>();
    Iterator<DetailedContainerResource> iter = createSpringXDTemplate(adminServer).runtimeOperations().listContainers().iterator();
    while (iter.hasNext()) {
      DetailedContainerResource container = iter.next();
      results.put(container.getAttribute("id"), container.getAttribute("host"));
    }
    return results;
  }
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.