From 8a50f9f7cab51be3c90a707e6502eba42c7daad3 Mon Sep 17 00:00:00 2001 From: alena Date: Fri, 17 Sep 2010 16:44:15 -0700 Subject: [PATCH] Temporary relaxing serialization for for Start/Stop/Destroy commands. --- core/src/com/cloud/agent/api/StartCommand.java | 3 ++- core/src/com/cloud/agent/api/StartConsoleProxyCommand.java | 3 ++- core/src/com/cloud/agent/api/StartRouterCommand.java | 3 ++- core/src/com/cloud/agent/api/StartSecStorageVmCommand.java | 3 ++- core/src/com/cloud/agent/api/StopCommand.java | 3 ++- core/src/com/cloud/agent/api/storage/CreateCommand.java | 3 ++- core/src/com/cloud/agent/api/storage/DestroyCommand.java | 3 ++- .../cloud/agent/api/storage/PrimaryStorageDownloadCommand.java | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/core/src/com/cloud/agent/api/StartCommand.java b/core/src/com/cloud/agent/api/StartCommand.java index 966cc33e537..4ff5821c253 100755 --- a/core/src/com/cloud/agent/api/StartCommand.java +++ b/core/src/com/cloud/agent/api/StartCommand.java @@ -106,7 +106,8 @@ public class StartCommand extends AbstractStartCommand { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } public int getCpu() { diff --git a/core/src/com/cloud/agent/api/StartConsoleProxyCommand.java b/core/src/com/cloud/agent/api/StartConsoleProxyCommand.java index 9b6faa4b893..312b0b5cce1 100644 --- a/core/src/com/cloud/agent/api/StartConsoleProxyCommand.java +++ b/core/src/com/cloud/agent/api/StartConsoleProxyCommand.java @@ -50,7 +50,8 @@ public class StartConsoleProxyCommand extends AbstractStartCommand { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } public ConsoleProxyVO getProxy() { diff --git a/core/src/com/cloud/agent/api/StartRouterCommand.java b/core/src/com/cloud/agent/api/StartRouterCommand.java index ec8ca7a808a..c8b8c72b87c 100755 --- a/core/src/com/cloud/agent/api/StartRouterCommand.java +++ b/core/src/com/cloud/agent/api/StartRouterCommand.java @@ -35,7 +35,8 @@ public class StartRouterCommand extends AbstractStartCommand { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } public StartRouterCommand(DomainRouterVO router, String routerName, String[] storageIps, List vols, boolean mirroredVols) { diff --git a/core/src/com/cloud/agent/api/StartSecStorageVmCommand.java b/core/src/com/cloud/agent/api/StartSecStorageVmCommand.java index c41070eb028..7f7bd4aa140 100644 --- a/core/src/com/cloud/agent/api/StartSecStorageVmCommand.java +++ b/core/src/com/cloud/agent/api/StartSecStorageVmCommand.java @@ -49,7 +49,8 @@ public class StartSecStorageVmCommand extends AbstractStartCommand { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } public SecondaryStorageVmVO getSecondaryStorageVmVO() { diff --git a/core/src/com/cloud/agent/api/StopCommand.java b/core/src/com/cloud/agent/api/StopCommand.java index 4d8274f778a..533abfa9283 100755 --- a/core/src/com/cloud/agent/api/StopCommand.java +++ b/core/src/com/cloud/agent/api/StopCommand.java @@ -59,7 +59,8 @@ public class StopCommand extends RebootCommand { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } public boolean isMirroredVolumes() { diff --git a/core/src/com/cloud/agent/api/storage/CreateCommand.java b/core/src/com/cloud/agent/api/storage/CreateCommand.java index b3ff5f6c312..af0340b1206 100644 --- a/core/src/com/cloud/agent/api/storage/CreateCommand.java +++ b/core/src/com/cloud/agent/api/storage/CreateCommand.java @@ -65,7 +65,8 @@ public class CreateCommand extends Command { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } public String getTemplateUrl() { diff --git a/core/src/com/cloud/agent/api/storage/DestroyCommand.java b/core/src/com/cloud/agent/api/storage/DestroyCommand.java index fe8f9eeebfc..c185b3095ef 100755 --- a/core/src/com/cloud/agent/api/storage/DestroyCommand.java +++ b/core/src/com/cloud/agent/api/storage/DestroyCommand.java @@ -42,6 +42,7 @@ public class DestroyCommand extends StorageCommand { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } } diff --git a/core/src/com/cloud/agent/api/storage/PrimaryStorageDownloadCommand.java b/core/src/com/cloud/agent/api/storage/PrimaryStorageDownloadCommand.java index a9010d5782e..9c11802f3f2 100644 --- a/core/src/com/cloud/agent/api/storage/PrimaryStorageDownloadCommand.java +++ b/core/src/com/cloud/agent/api/storage/PrimaryStorageDownloadCommand.java @@ -56,6 +56,7 @@ public class PrimaryStorageDownloadCommand extends AbstractDownloadCommand { @Override public boolean executeInSequence() { - return true; + //Temporary relaxing serialization + return false; } }