Skip to content

Commit c3f6d76

Browse files
Update simulator investigator
1 parent a454e85 commit c3f6d76

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

api/src/main/java/com/cloud/ha/Investigator.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,16 @@ public interface Investigator extends Adapter {
2626
* Returns if the vm is still alive.
2727
*
2828
* @param vm to work on.
29+
* @return true if vm is alive, otherwise false
2930
*/
3031
boolean isVmAlive(VirtualMachine vm, Host host) throws UnknownVM;
3132

33+
/**
34+
* Returns the agent status of the host.
35+
*
36+
* @param host
37+
* @return status of the host agent
38+
*/
3239
Status getHostAgentStatus(Host host);
3340

3441
class UnknownVM extends Exception {

plugins/hypervisors/simulator/src/main/java/com/cloud/ha/SimulatorInvestigator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected SimulatorInvestigator() {
5454
}
5555

5656
@Override
57-
public Status isAgentAlive(Host agent) {
57+
public Status getHostAgentStatus(Host agent) {
5858
if (agent.getHypervisorType() != HypervisorType.Simulator) {
5959
return null;
6060
}

0 commit comments

Comments
 (0)