Moti Asayag has uploaded a new change for review.

Change subject: engine: Format CommandExecutor.invokeCallbackMethods()
......................................................................

engine: Format CommandExecutor.invokeCallbackMethods()

Change-Id: I919ce914e92f086956c2694bd2ffe74aed26c428
Signed-off-by: Moti Asayag <masa...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java
1 file changed, 19 insertions(+), 18 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/60/29160/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java
index c20739f..488b95b 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java
@@ -55,24 +55,25 @@
             Guid cmdId = entry.getKey();
             CommandCallBack callBack = entry.getValue();
             CommandStatus status = coco.getCommandStatus(cmdId);
-            switch(status) {
-                case FAILED:
-                    callBack.onFailed(cmdId, coco.getChildCommandIds(cmdId));
-                    coco.updateCallBackNotified(cmdId);
-                    iterator.remove();
-                    break;
-                case SUCCEEDED:
-                    callBack.onSucceeded(cmdId, 
coco.getChildCommandIds(cmdId));
-                    coco.updateCallBackNotified(cmdId);
-                    iterator.remove();
-                    break;
-                case ACTIVE_SYNC:
-                    
coco.retrieveCommand(cmdId).setCommandStatus(CommandStatus.FAILED_RESTARTED);
-                    break;
-                case ACTIVE:
-                case ACTIVE_ASYNC:
-                    callBack.doPolling(cmdId, coco.getChildCommandIds(cmdId));
-                    break;
+
+            switch (status) {
+            case FAILED:
+                callBack.onFailed(cmdId, coco.getChildCommandIds(cmdId));
+                coco.updateCallBackNotified(cmdId);
+                iterator.remove();
+                break;
+            case SUCCEEDED:
+                callBack.onSucceeded(cmdId, coco.getChildCommandIds(cmdId));
+                coco.updateCallBackNotified(cmdId);
+                iterator.remove();
+                break;
+            case ACTIVE_SYNC:
+                
coco.retrieveCommand(cmdId).setCommandStatus(CommandStatus.FAILED_RESTARTED);
+                break;
+            case ACTIVE:
+            case ACTIVE_ASYNC:
+                callBack.doPolling(cmdId, coco.getChildCommandIds(cmdId));
+                break;
             default:
                 break;
             }


-- 
To view, visit http://gerrit.ovirt.org/29160
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I919ce914e92f086956c2694bd2ffe74aed26c428
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masa...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to