Search in sources :

Example 1 with FenceProxyLocator

use of org.ovirt.engine.core.bll.pm.FenceProxyLocator in project ovirt-engine by oVirt.

the class InitVdsOnUpCommand method processFence.

private void processFence() {
    vdsProxyFound = new FenceProxyLocator(getVds()).isProxyHostAvailable();
    if (getVds().isPmEnabled() && vdsProxyFound) {
        HostFenceActionExecutor executor = new HostFenceActionExecutor(getVds());
        fenceStatusResult = executor.fence(FenceActionType.STATUS);
        fenceSucceeded = fenceStatusResult.getStatus() == Status.SUCCESS;
    }
}
Also used : HostFenceActionExecutor(org.ovirt.engine.core.bll.pm.HostFenceActionExecutor) FenceProxyLocator(org.ovirt.engine.core.bll.pm.FenceProxyLocator)

Aggregations

FenceProxyLocator (org.ovirt.engine.core.bll.pm.FenceProxyLocator)1 HostFenceActionExecutor (org.ovirt.engine.core.bll.pm.HostFenceActionExecutor)1