use of org.ovirt.engine.core.common.vdscommands.gluster.GlusterVolumeRebalanceVDSParameters in project ovirt-engine by oVirt.
the class StartRebalanceGlusterVolumeCommand method executeCommand.
@Override
protected void executeCommand() {
startSubStep();
VDSReturnValue taskReturn = runVdsCommand(VDSCommandType.StartRebalanceGlusterVolume, new GlusterVolumeRebalanceVDSParameters(upServer.getId(), getGlusterVolumeName(), getParameters().isFixLayoutOnly(), getParameters().isForceAction()));
setSucceeded(taskReturn.getSucceeded());
if (!getSucceeded()) {
handleVdsError(AuditLogType.GLUSTER_VOLUME_REBALANCE_START_FAILED, taskReturn.getVdsError().getMessage());
return;
}
GlusterAsyncTask glusterTask = (GlusterAsyncTask) taskReturn.getReturnValue();
handleTaskReturn(glusterTask);
updateVolumeWithTaskID(glusterTask);
getReturnValue().setActionReturnValue(glusterTask);
}
Aggregations