Package org.springframework.xd.dirt.module.store

Examples of org.springframework.xd.dirt.module.store.ModuleMetadata$Id


  @ResponseStatus(HttpStatus.OK)
  @ResponseBody
  public ModuleMetadataResource listByContainerAndModuleId(
      @RequestParam("containerId") String containerId,
      @RequestParam("moduleId") String moduleId) {
    ModuleMetadata moduleMetadata = this.moduleMetadataRepository.findOne(containerId, moduleId);
    if (moduleMetadata == null) {
      throw new ModuleNotDeployedException(containerId, moduleId);
    }
    return moduleMetadataResourceAssembler.toResource(moduleMetadata);
View Full Code Here


    deploymentProps2.put("count", "2");
    Properties deploymentProps3 = new Properties();
    deploymentProps3.put("criteria", "groups.contains('hdfs')");
    Stream stream1 = new Stream(new StreamDefinition("s1", "http | log"));
    stream1.setStatus(new DeploymentUnitStatus(State.deployed));
    ModuleMetadata entity1 = new ModuleMetadata(new ModuleMetadata.Id("1", "s1.source.http.0"),
        entityProps1, deploymentProps1, State.deployed);
    Stream stream2 = new Stream(new StreamDefinition("s2", "http | log"));
    stream1.setStatus(new DeploymentUnitStatus(State.failed));

    ModuleMetadata entity2 = new ModuleMetadata(new ModuleMetadata.Id("2", "s2.sink.log.1"),
        entityProps2, deploymentProps2, DeploymentUnitStatus.State.deployed);

    Job job1 = new Job(new JobDefinition("j3", "job"));
    job1.setStatus(new DeploymentUnitStatus(State.deployed));

    ModuleMetadata entity3 = new ModuleMetadata(new ModuleMetadata.Id("3", "j3.job.myjob.0"),
        entityProps3, deploymentProps3, State.deployed);
    List<ModuleMetadata> entities1 = new ArrayList<ModuleMetadata>();
    List<ModuleMetadata> entities2 = new ArrayList<ModuleMetadata>();
    List<ModuleMetadata> entities3 = new ArrayList<ModuleMetadata>();
    List<ModuleMetadata> all = new ArrayList<ModuleMetadata>();
View Full Code Here

TOP

Related Classes of org.springframework.xd.dirt.module.store.ModuleMetadata$Id

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.