Package org.cloudfoundry.ide.eclipse.server.core.internal.DeployedResourceCache

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.DeployedResourceCache.DeployedResourceEntry


        while (zipEntries.hasMoreElements()) {
          ZipEntry zipEntry = zipEntries.nextElement();

          AbstractModuleResourceEntryAdapter archiveEntry = missingChangedEntries.get(zipEntry.getName());
          if (archiveEntry != null) {
            DeployedResourceEntry deployedResourcesEntry = archiveEntry instanceof ZipModuleFileEntryAdapter ? ((ZipModuleFileEntryAdapter) archiveEntry)
                .getDeployedResourcesEntry() : null;
            toDeploy.add(new PartialZipEntryAdapter(deployedResourcesEntry, zipEntry, zipPartialWar));

          }
View Full Code Here


      this.recalculate = recalculate;
    }

    @Override
    public long getSize() {
      DeployedResourceEntry entry = getDeployedResourcesEntry();
      return entry != null ? entry.getFileSize() : UNDEFINED_SIZE;
    }
View Full Code Here

      return entry != null ? entry.getFileSize() : UNDEFINED_SIZE;
    }

    public DeployedResourceEntry getDeployedResourcesEntry() {

      DeployedResourceEntry deployedResourcesEntry = CloudFoundryPlugin.getDefault().getDeployedResourcesCache()
          .getEntry(appName, getName());

      if (canComputeResourceEntry() && (recalculate || deployedResourcesEntry == null)) {
        byte[] sha1 = super.getSha1Digest();
        long fileSize = super.getSize();
        deployedResourcesEntry = new DeployedResourceEntry(sha1, fileSize, getName());
        CloudFoundryPlugin.getDefault().getDeployedResourcesCache().add(appName, deployedResourcesEntry);
      }

      return deployedResourcesEntry;
    }
View Full Code Here

      return deployedResourcesEntry;
    }

    public byte[] getSha1Digest() {
      DeployedResourceEntry entry = getDeployedResourcesEntry();
      return entry != null ? entry.getSha1() : null;
    }
View Full Code Here

TOP

Related Classes of org.cloudfoundry.ide.eclipse.server.core.internal.DeployedResourceCache.DeployedResourceEntry

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.