use of org.ovirt.engine.core.common.eventqueue.EventResult in project ovirt-engine by oVirt.
the class InitVdsOnUpCommand method connectHostToPool.
/**
* The following method should connect host to pool
* The method will perform a connect storage pool operation,
* if operation will wail on StoragePoolWrongMaster or StoragePoolMasterNotFound errors
* we will try to run reconstruct
*/
private EventResult connectHostToPool() {
final VDS vds = getVds();
EventResult result = eventQueue.submitEventSync(new Event(getStoragePool().getId(), null, vds.getId(), EventType.VDSCONNECTTOPOOL, "Trying to connect host " + vds.getHostName() + " with id " + vds.getId() + " to the pool " + getStoragePool().getId()), () -> runConnectHostToPoolEvent(getStoragePool().getId(), vds));
return result;
}
Aggregations