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.
|
* @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);
|
public Status isAgentAlive(Host agent);
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ public class HypervInvestigator extends AdapterBase implements Investigator {
|
|||||||
@Inject ResourceManager _resourceMgr;
|
@Inject ResourceManager _resourceMgr;
|
||||||
|
|
||||||
@Override
|
@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);
|
Status status = isAgentAlive(host);
|
||||||
if (status == null) {
|
if (status == null) {
|
||||||
throw new UnknownVM();
|
throw new UnknownVM();
|
||||||
|
|||||||
@ -47,7 +47,7 @@ public class KVMInvestigator extends AdapterBase implements Investigator {
|
|||||||
ResourceManager _resourceMgr;
|
ResourceManager _resourceMgr;
|
||||||
|
|
||||||
@Override
|
@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);
|
Status status = isAgentAlive(host);
|
||||||
if (status == null) {
|
if (status == null) {
|
||||||
throw new UnknownVM();
|
throw new UnknownVM();
|
||||||
|
|||||||
@ -46,7 +46,7 @@ public class Ovm3Investigator extends AdapterBase implements Investigator {
|
|||||||
ResourceManager resourceMgr;
|
ResourceManager resourceMgr;
|
||||||
|
|
||||||
@Override
|
@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());
|
LOGGER.debug("isVmAlive: " + vm.getHostName() + " on " + host.getName());
|
||||||
if (host.getHypervisorType() != Hypervisor.HypervisorType.Ovm3) {
|
if (host.getHypervisorType() != Hypervisor.HypervisorType.Ovm3) {
|
||||||
throw new UnknownVM();
|
throw new UnknownVM();
|
||||||
|
|||||||
@ -80,7 +80,7 @@ public class SimulatorInvestigator extends AdapterBase implements Investigator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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());
|
CheckVirtualMachineCommand cmd = new CheckVirtualMachineCommand(vm.getInstanceName());
|
||||||
try {
|
try {
|
||||||
Answer answer = _agentMgr.send(vm.getHostId(), cmd);
|
Answer answer = _agentMgr.send(vm.getHostId(), cmd);
|
||||||
|
|||||||
@ -38,7 +38,7 @@ public class VmwareInvestigator extends AdapterBase implements Investigator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM {
|
public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM {
|
||||||
if (vm.getHypervisorType() == HypervisorType.VMware)
|
if (vm.getHypervisorType() == HypervisorType.VMware)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ public class CheckOnAgentInvestigator extends AdapterBase implements Investigato
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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());
|
CheckVirtualMachineCommand cmd = new CheckVirtualMachineCommand(vm.getInstanceName());
|
||||||
try {
|
try {
|
||||||
CheckVirtualMachineAnswer answer = (CheckVirtualMachineAnswer)_agentMgr.send(vm.getHostId(), cmd);
|
CheckVirtualMachineAnswer answer = (CheckVirtualMachineAnswer)_agentMgr.send(vm.getHostId(), cmd);
|
||||||
|
|||||||
@ -42,7 +42,7 @@ public class ManagementIPSystemVMInvestigator extends AbstractInvestigatorImpl {
|
|||||||
private final NetworkModel _networkMgr = null;
|
private final NetworkModel _networkMgr = null;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM {
|
public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM {
|
||||||
if (!vm.getType().isUsedBySystem()) {
|
if (!vm.getType().isUsedBySystem()) {
|
||||||
s_logger.debug("Not a System Vm, unable to determine state of " + vm + " returning null");
|
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;
|
private final VpcVirtualNetworkApplianceManager _vnaMgr = null;
|
||||||
|
|
||||||
@Override
|
@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 (vm.getType() != VirtualMachine.Type.User) {
|
||||||
if (s_logger.isDebugEnabled()) {
|
if (s_logger.isDebugEnabled()) {
|
||||||
s_logger.debug("Not a User Vm, unable to determine state of " + vm + " returning null");
|
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
|
@Override
|
||||||
public Boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM {
|
public boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM {
|
||||||
Status status = isAgentAlive(host);
|
Status status = isAgentAlive(host);
|
||||||
if (status == null) {
|
if (status == null) {
|
||||||
throw new UnknownVM();
|
throw new UnknownVM();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user