From c52d04cd63e88dbdd8dbcca18038822c89778982 Mon Sep 17 00:00:00 2001 From: Min Chen Date: Thu, 28 Mar 2013 10:23:55 -0700 Subject: [PATCH] Correct a naming typo. --- ...trategy.java => AncientSnapshotStrategy.java} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/{AncientSnasphotStrategy.java => AncientSnapshotStrategy.java} (98%) diff --git a/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/AncientSnasphotStrategy.java b/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/AncientSnapshotStrategy.java similarity index 98% rename from engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/AncientSnasphotStrategy.java rename to engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/AncientSnapshotStrategy.java index ea3b0afd09d..9e666d21515 100644 --- a/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/AncientSnasphotStrategy.java +++ b/engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/strategy/AncientSnapshotStrategy.java @@ -89,8 +89,8 @@ import com.cloud.vm.snapshot.VMSnapshotVO; import com.cloud.vm.snapshot.dao.VMSnapshotDao; @Component -public class AncientSnasphotStrategy implements SnapshotStrategy { - private static final Logger s_logger = Logger.getLogger(AncientSnasphotStrategy.class); +public class AncientSnapshotStrategy implements SnapshotStrategy { + private static final Logger s_logger = Logger.getLogger(AncientSnapshotStrategy.class); @Inject protected VolumeDao _volsDao; @Inject @@ -174,7 +174,7 @@ public class AncientSnasphotStrategy implements SnapshotStrategy { } - protected Void createSnapshotAsyncCallback(AsyncCallbackDispatcher callback, + protected Void createSnapshotAsyncCallback(AsyncCallbackDispatcher callback, CreateSnapshotContext context) { CreateCmdResult result = callback.getResult(); SnapshotObject snapshot = (SnapshotObject)context.snapshot; @@ -293,7 +293,7 @@ public class AncientSnasphotStrategy implements SnapshotStrategy { try { CreateSnapshotContext context = new CreateSnapshotContext( null, volume, snapshot, future); - AsyncCallbackDispatcher caller = AsyncCallbackDispatcher + AsyncCallbackDispatcher caller = AsyncCallbackDispatcher .create(this); caller.setCallback( caller.getTarget().createSnapshotAsyncCallback(null, null)) @@ -417,7 +417,7 @@ public class AncientSnasphotStrategy implements SnapshotStrategy { snapshotOnImageStore.processEvent(Event.CreateOnlyRequested); CopySnapshotContext context = new CopySnapshotContext(null, snapshot, snapshotOnImageStore, future); - AsyncCallbackDispatcher caller = AsyncCallbackDispatcher + AsyncCallbackDispatcher caller = AsyncCallbackDispatcher .create(this); caller.setCallback( caller.getTarget().copySnapshotAsyncCallback(null, null)) @@ -448,7 +448,7 @@ public class AncientSnasphotStrategy implements SnapshotStrategy { } - protected Void copySnapshotAsyncCallback(AsyncCallbackDispatcher callback, + protected Void copySnapshotAsyncCallback(AsyncCallbackDispatcher callback, CopySnapshotContext context) { CopyCommandResult result = callback.getResult(); SnapshotInfo destSnapshot = context.destSnapshot; @@ -494,7 +494,7 @@ public class AncientSnasphotStrategy implements SnapshotStrategy { AsyncCallFuture future = new AsyncCallFuture(); DeleteSnapshotContext context = new DeleteSnapshotContext(null, snapshotInfo, future); - AsyncCallbackDispatcher caller = AsyncCallbackDispatcher + AsyncCallbackDispatcher caller = AsyncCallbackDispatcher .create(this); caller.setCallback( caller.getTarget().deleteSnapshotCallback(null, null)) @@ -513,7 +513,7 @@ public class AncientSnasphotStrategy implements SnapshotStrategy { } } - protected Void deleteSnapshotCallback(AsyncCallbackDispatcher callback, + protected Void deleteSnapshotCallback(AsyncCallbackDispatcher callback, DeleteSnapshotContext context) { CommandResult result = callback.getResult(); AsyncCallFuture future = context.future;