Package org.springframework.xd.dirt.cluster

Examples of org.springframework.xd.dirt.cluster.NoSuchContainerException


    String path = Paths.build(Paths.CONTAINERS, entity.getName());

    try {
      Stat stat = client.checkExists().forPath(path);
      if (stat == null) {
        throw new NoSuchContainerException("Could not find container with id " + entity.getName());
      }
      client.setData().forPath(path, ZooKeeperUtils.mapToBytes(entity.getAttributes()));
    }
    catch (Exception e) {
      throw ZooKeeperUtils.wrapThrowable(e, e.getMessage());
View Full Code Here


    String path = Paths.build(Paths.ADMINS, entity.getName());

    try {
      Stat stat = client.checkExists().forPath(path);
      if (stat == null) {
        throw new NoSuchContainerException("Could not find admin with id " + entity.getName());
      }
      client.setData().forPath(path, ZooKeeperUtils.mapToBytes(entity.getAttributes()));
    }
    catch (Exception e) {
      throw ZooKeeperUtils.wrapThrowable(e, e.getMessage());
View Full Code Here

      catch (RestClientException e) {
        throw new ContainerShutdownException(e.getMessage());
      }
    }
    else {
      throw new NoSuchContainerException("Container could not be found with id " + containerId);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.dirt.cluster.NoSuchContainerException

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.