mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1192: GetVmDiskStatsCommand return null as disk I/O statistics does not support xen/vmware
(cherry picked from commit 3121133c03)
This commit is contained in:
parent
b220403e35
commit
87d73e227f
|
|
@ -154,6 +154,8 @@ import com.cloud.agent.api.GetHostStatsAnswer;
|
|||
import com.cloud.agent.api.GetHostStatsCommand;
|
||||
import com.cloud.agent.api.GetStorageStatsAnswer;
|
||||
import com.cloud.agent.api.GetStorageStatsCommand;
|
||||
import com.cloud.agent.api.GetVmDiskStatsAnswer;
|
||||
import com.cloud.agent.api.GetVmDiskStatsCommand;
|
||||
import com.cloud.agent.api.GetVmStatsAnswer;
|
||||
import com.cloud.agent.api.GetVmStatsCommand;
|
||||
import com.cloud.agent.api.GetVncPortAnswer;
|
||||
|
|
@ -444,6 +446,8 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
answer = execute((GetHostStatsCommand) cmd);
|
||||
} else if (clz == GetVmStatsCommand.class) {
|
||||
answer = execute((GetVmStatsCommand) cmd);
|
||||
} else if (clz == GetVmDiskStatsCommand.class) {
|
||||
answer = execute((GetDiskVmStatsCommand) cmd);
|
||||
} else if (clz == CheckHealthCommand.class) {
|
||||
answer = execute((CheckHealthCommand) cmd);
|
||||
} else if (clz == StopCommand.class) {
|
||||
|
|
@ -3523,6 +3527,10 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
return answer;
|
||||
}
|
||||
|
||||
protected Answer execute(GetVmDiskStatsCommand cmd) {
|
||||
return new GetVmDiskStatsAnswer(cmd, null, null, null);
|
||||
}
|
||||
|
||||
protected Answer execute(CheckHealthCommand cmd) {
|
||||
if (s_logger.isInfoEnabled()) {
|
||||
s_logger.info("Executing resource CheckHealthCommand: " + _gson.toJson(cmd));
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ import com.cloud.agent.api.GetHostStatsAnswer;
|
|||
import com.cloud.agent.api.GetHostStatsCommand;
|
||||
import com.cloud.agent.api.GetStorageStatsAnswer;
|
||||
import com.cloud.agent.api.GetStorageStatsCommand;
|
||||
import com.cloud.agent.api.GetVmDiskStatsAnswer;
|
||||
import com.cloud.agent.api.GetVmDiskStatsCommand;
|
||||
import com.cloud.agent.api.GetVmStatsAnswer;
|
||||
import com.cloud.agent.api.GetVmStatsCommand;
|
||||
import com.cloud.agent.api.GetVncPortAnswer;
|
||||
|
|
@ -489,6 +491,8 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
return execute((GetHostStatsCommand) cmd);
|
||||
} else if (clazz == GetVmStatsCommand.class) {
|
||||
return execute((GetVmStatsCommand) cmd);
|
||||
} else if (clazz == GetVmDiskStatsCommand.class) {
|
||||
return execute((GetVmDiskStatsCommand) cmd);
|
||||
} else if (clazz == CheckHealthCommand.class) {
|
||||
return execute((CheckHealthCommand) cmd);
|
||||
} else if (clazz == StopCommand.class) {
|
||||
|
|
@ -2745,6 +2749,10 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
return vmResponseMap;
|
||||
}
|
||||
|
||||
protected GetVmDiskStatsAnswer execute(GetVmDiskStatsCommand cmd) {
|
||||
return new GetVmDiskStatsAnswer(cmd, null, null, null);
|
||||
}
|
||||
|
||||
protected Object[] getRRDData(Connection conn, int flag) {
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue