Package org.platformlayer.cas

Examples of org.platformlayer.cas.CasLocation


    super(store, hash);
  }

  @Override
  public void copyTo(CasTarget destTarget, File destPath, CasStore stagingStore) throws OpsException {
    CasLocation srcLocation = getLocation();
    CasLocation destLocation = destTarget.getLocation();

    int distance = srcLocation.estimateDistance(destLocation);
    log.info("Estimated distance from " + srcLocation + " to " + destLocation + " => " + distance);

    if (distance == 0) {
View Full Code Here


  public void copyObject(CasStoreMap casStoreMap, CasStoreObject src, OpsCasTarget opsCasTarget, File remoteFilePath,
      boolean useStagingStore) throws OpsException {
    log.info("Copying object from " + src + "  to " + opsCasTarget);
    try {
      CasLocation targetLocation = opsCasTarget.getLocation();

      CasStore stagingStore = null;
      if (useStagingStore) {
        // Find the nearest staging store
        CasPickClosestStore pickClosest = new CasPickClosestStore(targetLocation);
View Full Code Here

TOP

Related Classes of org.platformlayer.cas.CasLocation

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.