Search in sources :

Example 1 with UpdateGlusterGeoRepKeysVDSParameters

use of org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters in project ovirt-engine by oVirt.

the class UpdateGlusterGeoRepKeysVDSCommand method executeVdsBrokerCommand.

@Override
protected void executeVdsBrokerCommand() {
    UpdateGlusterGeoRepKeysVDSParameters parameters = getParameters();
    status = getBroker().glusterGeoRepKeysUpdate(parameters.getGeoRepPubKeys(), parameters.getRemoteUserName());
    proceedProxyReturnValue();
}
Also used : UpdateGlusterGeoRepKeysVDSParameters(org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters)

Example 2 with UpdateGlusterGeoRepKeysVDSParameters

use of org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters in project ovirt-engine by oVirt.

the class UpdateGlusterHostPubKeyToSlaveInternalCommand method executeCommand.

@Override
protected void executeCommand() {
    final VDSReturnValue writePubKeysReturnValue = runVdsCommand(VDSCommandType.UpdateGlusterGeoRepKeys, new UpdateGlusterGeoRepKeysVDSParameters(getParameters().getId(), getParameters().getPubKeys(), getParameters().getRemoteUserName()));
    setSucceeded(writePubKeysReturnValue.getSucceeded());
    if (!writePubKeysReturnValue.getSucceeded()) {
        String errorMsg = writePubKeysReturnValue.getVdsError().getMessage();
        writePubKeysReturnValue.getVdsError().setMessage(errorMsg + " : " + vdsDao.get(getParameters().getId()).getName());
        propagateFailure(convertToActionReturnValue(writePubKeysReturnValue));
        return;
    }
}
Also used : UpdateGlusterGeoRepKeysVDSParameters(org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters) VDSReturnValue(org.ovirt.engine.core.common.vdscommands.VDSReturnValue)

Aggregations

UpdateGlusterGeoRepKeysVDSParameters (org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters)2 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)1