Package org.springframework.xd.dirt.core

Examples of org.springframework.xd.dirt.core.DeploymentUnitStatus.toMap()


          DeploymentUnitStatus status = stateCalculator.calculate(job, provider, deploymentStatuses);

          logger.info("Deployment status for job '{}': {}", job.getName(), status);

          client.setData().forPath(statusPath, ZooKeeperUtils.mapToBytes(status.toMap()));
        }
      }
      catch (InterruptedException e) {
        throw e;
      }
View Full Code Here


        if (stat != null) {
          logger.trace("Found old status path {}; stat: {}", statusPath, stat);
          client.delete().forPath(statusPath);
        }
        client.create().withMode(CreateMode.EPHEMERAL).forPath(statusPath,
            ZooKeeperUtils.mapToBytes(status.toMap()));
      }
    }
  }

}
View Full Code Here

        isStream ? "stream" : "job", deploymentUnit.getName(), status);

    getClient().setData().forPath(
        Paths.build(isStream ? Paths.STREAM_DEPLOYMENTS : Paths.JOB_DEPLOYMENTS,
            deploymentUnit.getName(), Paths.STATUS),
        ZooKeeperUtils.mapToBytes(status.toMap()));
  }

  /**
   * Get all the module deployment requests.
   *
 
View Full Code Here

      DeploymentUnitStatus status = stateCalculator.calculate(stream, deploymentPropertiesProvider,
          deploymentStatuses);
      logger.info("Deployment status for stream '{}': {}", stream.getName(), status);

      client.setData().forPath(statusPath, ZooKeeperUtils.mapToBytes(status.toMap()));
    }
    catch (InterruptedException e) {
      throw e;
    }
    catch (Exception e) {
View Full Code Here

        if (stat != null) {
          logger.trace("Found old status path {}; stat: {}", statusPath, stat);
          client.delete().forPath(statusPath);
        }
        client.create().withMode(CreateMode.EPHEMERAL).forPath(statusPath,
            ZooKeeperUtils.mapToBytes(status.toMap()));
      }
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.