use of org.ovirt.engine.core.bll.pm.HostFenceActionExecutor in project ovirt-engine by oVirt.
the class GetFenceAgentStatusQuery method executeQueryCommand.
@Override
protected void executeQueryCommand() {
HostFenceActionExecutor executor = new HostFenceActionExecutor(getHost());
FenceOperationResult result = executor.getFenceAgentStatus(getParameters().getAgent());
getQueryReturnValue().setSucceeded(result.getStatus() == Status.SUCCESS);
getQueryReturnValue().setReturnValue(result);
}
use of org.ovirt.engine.core.bll.pm.HostFenceActionExecutor 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;
}
}
use of org.ovirt.engine.core.bll.pm.HostFenceActionExecutor in project ovirt-engine by oVirt.
the class GetVdsFenceStatusQuery method executeQueryCommand.
@Override
protected void executeQueryCommand() {
VDS vds = vdsDao.get(getParameters().getId());
HostFenceActionExecutor executor = new HostFenceActionExecutor(vds);
getQueryReturnValue().setReturnValue(executor.fence(FenceActionType.STATUS));
}
Aggregations