use of org.ovirt.engine.core.common.businessentities.StorageDomainStatic in project ovirt-engine by oVirt.
the class VdsEventListener method vdsNonOperational.
@Override
public void vdsNonOperational(Guid vdsId, NonOperationalReason reason, boolean logCommand, Guid domainId) {
StorageDomainStatic storageDomain = storageDomainStaticDao.get(domainId);
Map<String, String> customLogValues = null;
if (storageDomain != null) {
customLogValues = Collections.singletonMap("StorageDomainNames", storageDomain.getName());
}
vdsNonOperational(vdsId, reason, logCommand, domainId, customLogValues);
}
use of org.ovirt.engine.core.common.businessentities.StorageDomainStatic in project ovirt-engine by oVirt.
the class BackendExternalVmImportsResource method getStorageDomainId.
private Guid getStorageDomainId(ExternalVmImport vmImport) {
if (vmImport.getStorageDomain().isSetId()) {
return asGuid(vmImport.getStorageDomain().getId());
} else /* if (vmImport.getStorageDomain().isSetName()) */
{
String storageDomainName = vmImport.getStorageDomain().getName();
StorageDomainStatic storageDomain = getEntity(StorageDomainStatic.class, QueryType.GetStorageDomainByName, new NameQueryParameters(storageDomainName), storageDomainName, true);
return storageDomain.getId();
}
}
Aggregations