mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1192: GetVmDiskStatsCommand return null as disk I/O statistics does not support xen/vmware
This commit is contained in:
parent
1a333f369b
commit
3121133c03
|
|
@ -91,6 +91,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;
|
||||
|
|
@ -445,6 +447,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) {
|
||||
|
|
@ -3808,6 +3812,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) {
|
||||
|
|
@ -2757,6 +2761,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