|
154 | 154 | import com.cloud.agent.api.GetHostStatsCommand; |
155 | 155 | import com.cloud.agent.api.GetStorageStatsAnswer; |
156 | 156 | import com.cloud.agent.api.GetStorageStatsCommand; |
| 157 | +import com.cloud.agent.api.GetVmDiskStatsAnswer; |
| 158 | +import com.cloud.agent.api.GetVmDiskStatsCommand; |
157 | 159 | import com.cloud.agent.api.GetVmStatsAnswer; |
158 | 160 | import com.cloud.agent.api.GetVmStatsCommand; |
159 | 161 | import com.cloud.agent.api.GetVncPortAnswer; |
@@ -444,6 +446,8 @@ public Answer executeRequest(Command cmd) { |
444 | 446 | answer = execute((GetHostStatsCommand) cmd); |
445 | 447 | } else if (clz == GetVmStatsCommand.class) { |
446 | 448 | answer = execute((GetVmStatsCommand) cmd); |
| 449 | + } else if (clz == GetVmDiskStatsCommand.class) { |
| 450 | + answer = execute((GetDiskVmStatsCommand) cmd); |
447 | 451 | } else if (clz == CheckHealthCommand.class) { |
448 | 452 | answer = execute((CheckHealthCommand) cmd); |
449 | 453 | } else if (clz == StopCommand.class) { |
@@ -3523,6 +3527,10 @@ protected Answer execute(GetVmStatsCommand cmd) { |
3523 | 3527 | return answer; |
3524 | 3528 | } |
3525 | 3529 |
|
| 3530 | + protected Answer execute(GetVmDiskStatsCommand cmd) { |
| 3531 | + return new GetVmDiskStatsAnswer(cmd, null, null, null); |
| 3532 | + } |
| 3533 | + |
3526 | 3534 | protected Answer execute(CheckHealthCommand cmd) { |
3527 | 3535 | if (s_logger.isInfoEnabled()) { |
3528 | 3536 | s_logger.info("Executing resource CheckHealthCommand: " + _gson.toJson(cmd)); |
|
0 commit comments