Search in sources :

Example 6 with StorageDomainPoolParametersBase

use of org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase in project ovirt-engine by oVirt.

the class VdsEventListener method storageDomainNotOperational.

@Override
public EventResult storageDomainNotOperational(Guid storageDomainId, Guid storagePoolId) {
    StorageDomainPoolParametersBase parameters = new StorageDomainPoolParametersBase(storageDomainId, storagePoolId);
    parameters.setIsInternal(true);
    parameters.setInactive(true);
    boolean isSucceeded = backend.runInternalAction(ActionType.DeactivateStorageDomain, parameters, ExecutionHandler.createInternalJobContext()).getSucceeded();
    return new EventResult(isSucceeded, EventType.DOMAINNOTOPERATIONAL);
}
Also used : EventResult(org.ovirt.engine.core.common.eventqueue.EventResult) StorageDomainPoolParametersBase(org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase)

Example 7 with StorageDomainPoolParametersBase

use of org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase in project ovirt-engine by oVirt.

the class AttachStorageDomainToPoolCommand method attemptToActivateDomain.

protected void attemptToActivateDomain() {
    StorageDomainPoolParametersBase activateParameters = new StorageDomainPoolParametersBase(getStorageDomain().getId(), getStoragePool().getId());
    backend.runInternalAction(ActionType.ActivateStorageDomain, activateParameters, cloneContext().withoutCompensationContext().withoutExecutionContext());
}
Also used : StorageDomainPoolParametersBase(org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase)

Aggregations

StorageDomainPoolParametersBase (org.ovirt.engine.core.common.action.StorageDomainPoolParametersBase)7 ArrayList (java.util.ArrayList)3 ActionParametersBase (org.ovirt.engine.core.common.action.ActionParametersBase)2 Guid (org.ovirt.engine.core.compat.Guid)2 Set (java.util.Set)1 StoragePoolWithStoragesParameter (org.ovirt.engine.core.common.action.StoragePoolWithStoragesParameter)1 VdsActionParameters (org.ovirt.engine.core.common.action.VdsActionParameters)1 StorageDomain (org.ovirt.engine.core.common.businessentities.StorageDomain)1 StoragePool (org.ovirt.engine.core.common.businessentities.StoragePool)1 StoragePoolIsoMapId (org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId)1 VDS (org.ovirt.engine.core.common.businessentities.VDS)1 VdsNetworkInterface (org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface)1 EventResult (org.ovirt.engine.core.common.eventqueue.EventResult)1 VdsIdAndVdsVDSCommandParametersBase (org.ovirt.engine.core.common.vdscommands.VdsIdAndVdsVDSCommandParametersBase)1