mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Boolean -> boolean
This commit is contained in:
parent
de4445845e
commit
6a821730ce
@ -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);
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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");
|
||||
}
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user