Package org.platformlayer.cas

Examples of org.platformlayer.cas.CasStore


      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);
        stagingStore = pickClosest.choose(casStoreMap.getStagingStores());
      }

      if (stagingStore != null) {
        if (stagingStore.equals(src.getStore())) {
          log.info("Already on closest staging server");
          stagingStore = null;
        }
      }
View Full Code Here


    // TODO: Don't hard-code
    casStores.addSecondary(buildJenkins("http://192.168.131.14:8080/"));
    // casStores.add(buildJenkins("http://192.168.192.36:8080/"));

    for (ProviderOf<CasStoreProvider> casStoreProvider : providers.listItemsProviding(CasStoreProvider.class)) {
      CasStore casStore = casStoreProvider.get().getCasStore();
      casStores.addSecondary(casStore);

      if (casStore.getOptions().isStaging()) {
        // Use this as a staging store i.e. we can upload files to here instead of to the VM
        casStores.addStagingStore(casStore);
      }
    }
View Full Code Here

TOP

Related Classes of org.platformlayer.cas.CasStore

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.