Incremental checkin

This commit is contained in:
abhishek 2010-08-26 14:18:36 -07:00
parent 2bdaaa48a6
commit 604e7016a3
3 changed files with 16 additions and 10 deletions

View File

@ -34,12 +34,6 @@ import com.cloud.utils.Pair;
public class DeleteVolumeCmd extends BaseCmd {
public static final Logger s_logger = Logger.getLogger(DeleteVolumeCmd.class.getName());
private static final String s_name = "deletevolumeresponse";
private static final List<Pair<Enum, Boolean>> s_properties = new ArrayList<Pair<Enum, Boolean>>();
static {
s_properties.add(new Pair<Enum, Boolean>(BaseCmd.Properties.ACCOUNT_OBJ, Boolean.FALSE));
s_properties.add(new Pair<Enum, Boolean>(BaseCmd.Properties.ID, Boolean.TRUE));
}
/////////////////////////////////////////////////////
//////////////// API parameters /////////////////////
@ -66,10 +60,6 @@ public class DeleteVolumeCmd extends BaseCmd {
return s_name;
}
public List<Pair<Enum, Boolean>> getProperties() {
return s_properties;
}
public static String getResultObjectName() {
return "volume";
}
@ -113,4 +103,11 @@ public class DeleteVolumeCmd extends BaseCmd {
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, "Failed to delete volume: " + ex.getMessage());
}
}
@Override
public String getResponse() {
// TODO Auto-generated method stub
return null;
}
}

View File

@ -24,6 +24,7 @@ import com.cloud.agent.api.Answer;
import com.cloud.agent.api.Command;
import com.cloud.api.commands.CreateStoragePoolCmd;
import com.cloud.api.commands.DeletePoolCmd;
import com.cloud.api.commands.DeleteVolumeCmd;
import com.cloud.api.commands.UpdateStoragePoolCmd;
import com.cloud.dc.DataCenterVO;
import com.cloud.dc.HostPodVO;
@ -206,6 +207,7 @@ public interface StorageManager extends Manager {
* @param volume
*/
void destroyVolume(VolumeVO volume);
boolean deleteVolume(DeleteVolumeCmd cmd);
/** Create capacity entries in the op capacity table
* @param storagePool

View File

@ -65,6 +65,7 @@ import com.cloud.api.BaseCmd;
import com.cloud.api.ServerApiException;
import com.cloud.api.commands.CreateStoragePoolCmd;
import com.cloud.api.commands.DeletePoolCmd;
import com.cloud.api.commands.DeleteVolumeCmd;
import com.cloud.api.commands.UpdateStoragePoolCmd;
import com.cloud.async.AsyncInstanceCreateStatus;
import com.cloud.async.AsyncJobExecutor;
@ -2251,4 +2252,10 @@ public class StorageManagerImpl implements StorageManager {
return false;
}
}
@Override
public boolean deleteVolume(DeleteVolumeCmd cmd) {
return false;
}
}