Package org.springframework.xd.dirt.core

Examples of org.springframework.xd.dirt.core.DeploymentUnitStatus


      // missing node means this stream has not been deployed
      ZooKeeperUtils.wrapAndThrowIgnoring(e, KeeperException.NoNodeException.class);
    }

    return (statusBytes == null)
        ? new DeploymentUnitStatus(DeploymentUnitStatus.State.undeployed)
        : new DeploymentUnitStatus(ZooKeeperUtils.bytesToMap(statusBytes));
  }
View Full Code Here


    CuratorFramework client = zkConnection.getClient();

    try {
      client.setData().forPath(
          Paths.build(Paths.JOB_DEPLOYMENTS, id, Paths.STATUS),
          ZooKeeperUtils.mapToBytes(new DeploymentUnitStatus(
              DeploymentUnitStatus.State.undeploying).toMap()));
    }
    catch (Exception e) {
      logger.warn("Exception while transitioning job '{}' state to {}", id,
          DeploymentUnitStatus.State.undeploying, e);
View Full Code Here

      // missing node means this job has not been deployed
      ZooKeeperUtils.wrapAndThrowIgnoring(e, KeeperException.NoNodeException.class);
    }

    return (statusBytes == null)
        ? new DeploymentUnitStatus(DeploymentUnitStatus.State.undeployed)
        : new DeploymentUnitStatus(ZooKeeperUtils.bytesToMap(statusBytes));
  }
View Full Code Here

    Properties deploymentProps2 = new Properties();
    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>();
View Full Code Here

TOP

Related Classes of org.springframework.xd.dirt.core.DeploymentUnitStatus

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.