Package org.springframework.xd.rest.domain

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


  @Override
  protected ModuleMetadataResource instantiateResource(ModuleMetadata entity) {
    String moduleType = (entity.getModuleType() != null) ? entity.getModuleType().name() : null;
    RESTDeploymentState deploymentStatus = (entity.getDeploymentStatus() != null) ? RESTDeploymentState.valueOf(entity.getDeploymentStatus().name())
        : null;
    return new ModuleMetadataResource(entity.getQualifiedId(), entity.getName(), entity.getUnitName(),
        RESTModuleType.valueOf(moduleType), entity.getContainerId(), entity.getModuleOptions(),
        entity.getDeploymentProperties(), deploymentStatus);
  }
View Full Code Here


    Assert.hasText(streamName, "stream name can not be empty nor null");
    String moduleIdPrefix = streamName + "." + moduleType + ".";
    Iterator<ModuleMetadataResource> resourceIter = StreamUtils.getRuntimeModules(adminServer).iterator();
    ArrayList<String> containerIds = new ArrayList<String>();
    while (resourceIter.hasNext()) {
      ModuleMetadataResource resource = resourceIter.next();
      if (resource.getModuleId().startsWith(moduleIdPrefix)) {
        containerIds.add(resource.getContainerId());
      }
    }
    Assert.isTrue(
        containerIds.size() == 1,
        "Test require that module to be deployed to only one container. It was deployed to "
View Full Code Here

TOP

Related Classes of org.springframework.xd.rest.domain.ModuleMetadataResource

Copyright © 2018 www.massapicom. 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.