Removed redundant getInstallPath to use getPath in VolumeInfo.

This commit is contained in:
Min Chen 2013-05-03 10:01:23 -07:00
parent fc74d76696
commit df7a56d63f
3 changed files with 1 additions and 6 deletions

View File

@ -28,5 +28,4 @@ public interface VolumeInfo extends DataObject, Volume {
public HypervisorType getHypervisorType();
public Long getLastPoolId();
public String getAttachedVmName();
public String getInstallPath();
}

View File

@ -87,6 +87,7 @@ public class DownloadCommand extends AbstractDownloadCommand implements Internal
super(volume.getName(), url, format, volume.getAccountId());
this.checksum = checkSum;
this.id = volume.getVolumeId();
this.installPath = volume.getPath();
this._store = volume.getDataStore();
this.maxDownloadSizeInBytes = maxDownloadSizeInBytes;
this.resourceType = ResourceType.VOLUME;

View File

@ -120,11 +120,6 @@ public class VolumeObject implements VolumeInfo {
return volumeVO.getSize();
}
@Override
public String getInstallPath() {
DataObjectInStore obj = ojbectInStoreMgr.findObject(this, this.dataStore);
return obj.getInstallPath();
}
public long getVolumeId() {
return volumeVO.getId();