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);
}
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());
}
Aggregations