Search in sources :

Example 1 with GlusterVolumeRebalanceVDSParameters

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);
}
Also used : GlusterAsyncTask(org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask) GlusterVolumeRebalanceVDSParameters(org.ovirt.engine.core.common.vdscommands.gluster.GlusterVolumeRebalanceVDSParameters) VDSReturnValue(org.ovirt.engine.core.common.vdscommands.VDSReturnValue)

Aggregations

GlusterAsyncTask (org.ovirt.engine.core.common.asynctasks.gluster.GlusterAsyncTask)1 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)1 GlusterVolumeRebalanceVDSParameters (org.ovirt.engine.core.common.vdscommands.gluster.GlusterVolumeRebalanceVDSParameters)1