"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "clc/modules/imaging-common/src/main/java/com/eucalyptus/imaging/manifest/ImageManifestFile.java" between
eucalyptus-4.4.1.tar.gz and eucalyptus-4.4.2.tar.gz

About: Eucalyptus (Elastic Utility Computing Architecture for Linking Your Programs To Useful Systems) is an infrastructure for implementing "cloud computing" on clusters (compatible with Amazon’s EC2 interface, but designed to support multiple client-side interfaces).

ImageManifestFile.java  (eucalyptus-4.4.1):ImageManifestFile.java  (eucalyptus-4.4.2)
skipping to change at line 28 skipping to change at line 28
* additional information or have any questions. * additional information or have any questions.
************************************************************************/ ************************************************************************/
package com.eucalyptus.imaging.manifest; package com.eucalyptus.imaging.manifest;
import com.eucalyptus.util.EucalyptusCloudException; import com.eucalyptus.util.EucalyptusCloudException;
public class ImageManifestFile { public class ImageManifestFile {
private final ImageManifest manifestType; private final ImageManifest manifestType;
private final String location; private final String location;
private final int manifestSizeLimit; private final int manifestSizeLimit;
private volatile String baseBucket;
private volatile String prefix;
public ImageManifestFile(String location, ImageManifest type, public ImageManifestFile(String location, ImageManifest type,
int manifestSizeLimit) { int manifestSizeLimit) {
this.manifestType = type; this.manifestType = type;
this.location = location; this.location = location;
this.manifestSizeLimit = manifestSizeLimit; this.manifestSizeLimit = manifestSizeLimit;
} }
public ImageManifest getManifestType() { public ImageManifest getManifestType() {
// TODO: return it base on manifest content // TODO: return it base on manifest content
return manifestType; return manifestType;
} }
public String getManifest() throws EucalyptusCloudException { public String getManifest() throws EucalyptusCloudException {
return manifestType.getManifest(this.location, this.manifestSizeLimit); return manifestType.getManifest(this.location, this.manifestSizeLimit);
} }
public String getBaseBucket() throws EucalyptusCloudException { public String getBaseBucket() throws EucalyptusCloudException {
return manifestType.getBaseBucket(this.location); if ( baseBucket == null ) {
baseBucket = manifestType.getBaseBucket( this.location );
}
return baseBucket;
}
public String getPrefix() throws EucalyptusCloudException {
if ( prefix == null ) {
prefix = manifestType.getPrefix( this.location );
}
return prefix;
} }
public int getManifestSizeLimit() { public int getManifestSizeLimit() {
return manifestSizeLimit; return manifestSizeLimit;
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)