Package org.springframework.xd.dirt.core

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


   * @param data the module deployment data
   * @throws Exception
   */
  protected void onChildRemoved(CuratorFramework client, ChildData data) throws Exception {
    String deploymentUnitName = Paths.stripPath(data.getPath());
    ModuleDeploymentRequestsPath path;
    for (ChildData requestedModulesData : moduleDeploymentRequests.getCurrentData()) {
      path = new ModuleDeploymentRequestsPath(requestedModulesData.getPath());
      if (path.getDeploymentUnitName().equals(deploymentUnitName)) {
        client.delete().deletingChildrenIfNeeded().forPath(path.build());
      }
    }
  }
View Full Code Here


   * @param deploymentProperties the runtime deployment properties
   */
  protected void createModuleDeploymentRequestsPath(CuratorFramework client, ModuleDescriptor descriptor,
      RuntimeModuleDeploymentProperties deploymentProperties) {
    // Create and set the data for the requested modules path
    String requestedModulesPath = new ModuleDeploymentRequestsPath()
        .setDeploymentUnitName(descriptor.getGroup())
        .setModuleType(descriptor.getType().toString())
        .setModuleLabel(descriptor.getModuleLabel())
        .setModuleSequence(deploymentProperties.getSequenceAsString())
        .build();
View Full Code Here

   * @return the list of all the requested modules' paths.
   */
  protected List<ModuleDeploymentRequestsPath> getAllModuleDeploymentRequests() {
    List<ModuleDeploymentRequestsPath> requestedModulesPaths = new ArrayList<ModuleDeploymentRequestsPath>();
    for (ChildData requestedModulesData : moduleDeploymentRequests.getCurrentData()) {
      requestedModulesPaths.add(new ModuleDeploymentRequestsPath(requestedModulesData.getPath()));
    }
    return requestedModulesPaths;
  }
View Full Code Here

TOP

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

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.