bug 8713: supporting structures for SSVM load management

This commit is contained in:
Kelven Yang 2011-03-29 18:52:40 -07:00
parent e32aa32bfc
commit 64148f46f4
2 changed files with 9 additions and 9 deletions

View File

@ -49,10 +49,6 @@ public class SecondaryStorageListener implements Listener {
boolean processed = false;
if(answers != null) {
for(int i = 0; i < answers.length; i++) {
/*if(answers[i] instanceof ConsoleProxyLoadAnswer) {
_ssVmMgr.onLoadAnswer((ConsoleProxyLoadAnswer)answers[i]);
processed = true;
}*/
}
}
@ -66,11 +62,6 @@ public class SecondaryStorageListener implements Listener {
@Override
public AgentControlAnswer processControlCommand(long agentId, AgentControlCommand cmd) {
/* if(cmd instanceof ConsoleProxyLoadReportCommand) {
_ssVmMgr.onLoadReport((ConsoleProxyLoadReportCommand)cmd);
} else if(cmd instanceof ConsoleAccessAuthenticationCommand) {
return _ssVmMgr.onConsoleAccessAuthentication((ConsoleAccessAuthenticationCommand)cmd);
}*/
return null;
}

View File

@ -1481,4 +1481,13 @@ CREATE TABLE `cloud`.`domain_network_ref` (
CONSTRAINT `fk_domain_network_ref__networks_id` FOREIGN KEY (`network_id`) REFERENCES `networks`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `cloud`.`cmd_exec_log` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
`instance_id` bigint unsigned NOT NULL COMMENT 'instance id of the system VM that command is executed on',
`command_name` bigint unsigned NOT NULL COMMENT 'command name',
`created` datetime NOT NULL COMMENT 'date created',
PRIMARY KEY (`id`),
CONSTRAINT `fk_cmd_exec_log_ref__inst_id` FOREIGN KEY (`instance_id`) REFERENCES `vm_instance`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET foreign_key_checks = 1;