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;
}