diff --git a/api/src/com/cloud/ha/Investigator.java b/api/src/com/cloud/ha/Investigator.java index bc6f331f8d5..88d802a1ce4 100644 --- a/api/src/com/cloud/ha/Investigator.java +++ b/api/src/com/cloud/ha/Investigator.java @@ -27,7 +27,7 @@ public interface Investigator extends Adapter { * * @param vm to work on. */ - public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM; + public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM; public Status isAgentAlive(Host agent); diff --git a/plugins/hypervisors/hyperv/src/com/cloud/ha/HypervInvestigator.java b/plugins/hypervisors/hyperv/src/com/cloud/ha/HypervInvestigator.java index 8b94672e4ca..634f242bfe7 100644 --- a/plugins/hypervisors/hyperv/src/com/cloud/ha/HypervInvestigator.java +++ b/plugins/hypervisors/hyperv/src/com/cloud/ha/HypervInvestigator.java @@ -44,7 +44,7 @@ public class HypervInvestigator extends AdapterBase implements Investigator { @Inject ResourceManager _resourceMgr; @Override - public Boolean isVmAlive(com.cloud.vm.VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(com.cloud.vm.VirtualMachine vm, Host host) throws UnknownVM { Status status = isAgentAlive(host); if (status == null) { throw new UnknownVM(); diff --git a/plugins/hypervisors/kvm/src/com/cloud/ha/KVMInvestigator.java b/plugins/hypervisors/kvm/src/com/cloud/ha/KVMInvestigator.java index b519312a012..43cc71d6d6d 100644 --- a/plugins/hypervisors/kvm/src/com/cloud/ha/KVMInvestigator.java +++ b/plugins/hypervisors/kvm/src/com/cloud/ha/KVMInvestigator.java @@ -47,7 +47,7 @@ public class KVMInvestigator extends AdapterBase implements Investigator { ResourceManager _resourceMgr; @Override - public Boolean isVmAlive(com.cloud.vm.VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(com.cloud.vm.VirtualMachine vm, Host host) throws UnknownVM { Status status = isAgentAlive(host); if (status == null) { throw new UnknownVM(); diff --git a/plugins/hypervisors/ovm3/src/main/java/com/cloud/ha/Ovm3Investigator.java b/plugins/hypervisors/ovm3/src/main/java/com/cloud/ha/Ovm3Investigator.java index 56f904bc922..f9e88c0b57c 100644 --- a/plugins/hypervisors/ovm3/src/main/java/com/cloud/ha/Ovm3Investigator.java +++ b/plugins/hypervisors/ovm3/src/main/java/com/cloud/ha/Ovm3Investigator.java @@ -46,7 +46,7 @@ public class Ovm3Investigator extends AdapterBase implements Investigator { ResourceManager resourceMgr; @Override - public Boolean isVmAlive(com.cloud.vm.VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(com.cloud.vm.VirtualMachine vm, Host host) throws UnknownVM { LOGGER.debug("isVmAlive: " + vm.getHostName() + " on " + host.getName()); if (host.getHypervisorType() != Hypervisor.HypervisorType.Ovm3) { throw new UnknownVM(); diff --git a/plugins/hypervisors/simulator/src/com/cloud/ha/SimulatorInvestigator.java b/plugins/hypervisors/simulator/src/com/cloud/ha/SimulatorInvestigator.java index 9366b83078c..bc55ba32497 100644 --- a/plugins/hypervisors/simulator/src/com/cloud/ha/SimulatorInvestigator.java +++ b/plugins/hypervisors/simulator/src/com/cloud/ha/SimulatorInvestigator.java @@ -80,7 +80,7 @@ public class SimulatorInvestigator extends AdapterBase implements Investigator { } @Override - public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { CheckVirtualMachineCommand cmd = new CheckVirtualMachineCommand(vm.getInstanceName()); try { Answer answer = _agentMgr.send(vm.getHostId(), cmd); diff --git a/plugins/hypervisors/vmware/src/com/cloud/ha/VmwareInvestigator.java b/plugins/hypervisors/vmware/src/com/cloud/ha/VmwareInvestigator.java index 0fda96ac466..3f7a05c4f23 100644 --- a/plugins/hypervisors/vmware/src/com/cloud/ha/VmwareInvestigator.java +++ b/plugins/hypervisors/vmware/src/com/cloud/ha/VmwareInvestigator.java @@ -38,7 +38,7 @@ public class VmwareInvestigator extends AdapterBase implements Investigator { } @Override - public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { if (vm.getHypervisorType() == HypervisorType.VMware) return true; diff --git a/server/src/com/cloud/ha/CheckOnAgentInvestigator.java b/server/src/com/cloud/ha/CheckOnAgentInvestigator.java index fdb587bccf3..b2e333fbf92 100644 --- a/server/src/com/cloud/ha/CheckOnAgentInvestigator.java +++ b/server/src/com/cloud/ha/CheckOnAgentInvestigator.java @@ -47,7 +47,7 @@ public class CheckOnAgentInvestigator extends AdapterBase implements Investigato } @Override - public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { CheckVirtualMachineCommand cmd = new CheckVirtualMachineCommand(vm.getInstanceName()); try { CheckVirtualMachineAnswer answer = (CheckVirtualMachineAnswer)_agentMgr.send(vm.getHostId(), cmd); diff --git a/server/src/com/cloud/ha/ManagementIPSystemVMInvestigator.java b/server/src/com/cloud/ha/ManagementIPSystemVMInvestigator.java index 3f1b17f4548..5db5b9ca11e 100644 --- a/server/src/com/cloud/ha/ManagementIPSystemVMInvestigator.java +++ b/server/src/com/cloud/ha/ManagementIPSystemVMInvestigator.java @@ -42,7 +42,7 @@ public class ManagementIPSystemVMInvestigator extends AbstractInvestigatorImpl { private final NetworkModel _networkMgr = null; @Override - public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { if (!vm.getType().isUsedBySystem()) { s_logger.debug("Not a System Vm, unable to determine state of " + vm + " returning null"); } diff --git a/server/src/com/cloud/ha/UserVmDomRInvestigator.java b/server/src/com/cloud/ha/UserVmDomRInvestigator.java index b3a5ec1a939..6084e767867 100644 --- a/server/src/com/cloud/ha/UserVmDomRInvestigator.java +++ b/server/src/com/cloud/ha/UserVmDomRInvestigator.java @@ -53,7 +53,7 @@ public class UserVmDomRInvestigator extends AbstractInvestigatorImpl { private final VpcVirtualNetworkApplianceManager _vnaMgr = null; @Override - public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { if (vm.getType() != VirtualMachine.Type.User) { if (s_logger.isDebugEnabled()) { s_logger.debug("Not a User Vm, unable to determine state of " + vm + " returning null"); diff --git a/server/src/com/cloud/ha/XenServerInvestigator.java b/server/src/com/cloud/ha/XenServerInvestigator.java index b6549f839f5..07eb76be193 100644 --- a/server/src/com/cloud/ha/XenServerInvestigator.java +++ b/server/src/com/cloud/ha/XenServerInvestigator.java @@ -77,7 +77,7 @@ public class XenServerInvestigator extends AdapterBase implements Investigator { } @Override - public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { + public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM { Status status = isAgentAlive(host); if (status == null) { throw new UnknownVM();