Package org.springframework.xd.dirt.core

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


   *
   * @return path for this status
   * @see #toMap
   */
  public String buildPath() {
    return Paths.build(new ModuleDeploymentsPath()
        .setContainer(container)
        .setDeploymentUnitName(key.getGroup())
        .setModuleType(key.getType().toString())
        .setModuleLabel(key.getLabel())
        .setModuleSequence(String.valueOf(moduleSequence)).build(), Paths.STATUS);
View Full Code Here


     * {@inheritDoc}
     */
    @Override
    public void childEvent(CuratorFramework client, PathChildrenCacheEvent event) throws Exception {
      ZooKeeperUtils.logCacheEvent(logger, event);
      ModuleDeploymentsPath path = new ModuleDeploymentsPath(event.getData().getPath());
      if (event.getType().equals(Type.CHILD_ADDED)) {
        deployQueues.putIfAbsent(path.getDeploymentUnitName(),
            new LinkedBlockingQueue<PathChildrenCacheEvent>());
        LinkedBlockingQueue<PathChildrenCacheEvent> queue = deployQueues.get(path.getDeploymentUnitName());
        queue.put(event);
      }
      else if (event.getType().equals(Type.CHILD_REMOVED)) {
        undeployQueues.putIfAbsent(path.getDeploymentUnitName(),
            new LinkedBlockingQueue<PathChildrenCacheEvent>());
        LinkedBlockingQueue<PathChildrenCacheEvent> queue = undeployQueues.get(path.getDeploymentUnitName());
        queue.put(event);
      }
    }
View Full Code Here

TOP

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

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.