|
80 | 80 | import com.cloud.agent.api.StartupCommand; |
81 | 81 | import com.cloud.agent.api.StartupSecondaryStorageCommand; |
82 | 82 | import com.cloud.agent.api.UploadTemplateToS3FromSecondaryStorageCommand; |
83 | | -import com.cloud.agent.api.downloadSnapshotFromSwiftCommand; |
84 | | -import com.cloud.agent.api.downloadTemplateFromSwiftToSecondaryStorageCommand; |
85 | | -import com.cloud.agent.api.uploadTemplateToSwiftFromSecondaryStorageCommand; |
| 83 | +import com.cloud.agent.api.DownloadSnapshotFromSwiftCommand; |
| 84 | +import com.cloud.agent.api.DownloadTemplateFromSwiftToSecondaryStorageCommand; |
| 85 | +import com.cloud.agent.api.UploadTemplateToSwiftFromSecondaryStorageCommand; |
86 | 86 | import com.cloud.agent.api.storage.CreateEntityDownloadURLCommand; |
87 | 87 | import com.cloud.agent.api.storage.DeleteEntityDownloadURLCommand; |
88 | 88 | import com.cloud.agent.api.storage.DeleteTemplateCommand; |
@@ -190,20 +190,20 @@ public Answer executeRequest(Command cmd) { |
190 | 190 | return execute((ListTemplateCommand)cmd); |
191 | 191 | } else if (cmd instanceof ListVolumeCommand){ |
192 | 192 | return execute((ListVolumeCommand)cmd); |
193 | | - }else if (cmd instanceof downloadSnapshotFromSwiftCommand){ |
194 | | - return execute((downloadSnapshotFromSwiftCommand)cmd); |
| 193 | + }else if (cmd instanceof DownloadSnapshotFromSwiftCommand){ |
| 194 | + return execute((DownloadSnapshotFromSwiftCommand)cmd); |
195 | 195 | } else if (cmd instanceof DownloadSnapshotFromS3Command) { |
196 | 196 | return execute((DownloadSnapshotFromS3Command) cmd); |
197 | 197 | } else if (cmd instanceof DeleteSnapshotBackupCommand){ |
198 | 198 | return execute((DeleteSnapshotBackupCommand)cmd); |
199 | 199 | } else if (cmd instanceof DeleteSnapshotsDirCommand){ |
200 | 200 | return execute((DeleteSnapshotsDirCommand)cmd); |
201 | | - } else if (cmd instanceof downloadTemplateFromSwiftToSecondaryStorageCommand) { |
202 | | - return execute((downloadTemplateFromSwiftToSecondaryStorageCommand) cmd); |
| 201 | + } else if (cmd instanceof DownloadTemplateFromSwiftToSecondaryStorageCommand) { |
| 202 | + return execute((DownloadTemplateFromSwiftToSecondaryStorageCommand) cmd); |
203 | 203 | } else if (cmd instanceof DownloadTemplateFromS3ToSecondaryStorageCommand) { |
204 | 204 | return execute((DownloadTemplateFromS3ToSecondaryStorageCommand) cmd); |
205 | | - } else if (cmd instanceof uploadTemplateToSwiftFromSecondaryStorageCommand) { |
206 | | - return execute((uploadTemplateToSwiftFromSecondaryStorageCommand) cmd); |
| 205 | + } else if (cmd instanceof UploadTemplateToSwiftFromSecondaryStorageCommand) { |
| 206 | + return execute((UploadTemplateToSwiftFromSecondaryStorageCommand) cmd); |
207 | 207 | } else if (cmd instanceof UploadTemplateToS3FromSecondaryStorageCommand) { |
208 | 208 | return execute((UploadTemplateToS3FromSecondaryStorageCommand) cmd); |
209 | 209 | } else if (cmd instanceof DeleteObjectFromSwiftCommand) { |
@@ -281,7 +281,7 @@ public String determineFileName(final String key) { |
281 | 281 |
|
282 | 282 | } |
283 | 283 |
|
284 | | - private Answer execute(downloadTemplateFromSwiftToSecondaryStorageCommand cmd) { |
| 284 | + private Answer execute(DownloadTemplateFromSwiftToSecondaryStorageCommand cmd) { |
285 | 285 | SwiftTO swift = cmd.getSwift(); |
286 | 286 | String secondaryStorageUrl = cmd.getSecondaryStorageUrl(); |
287 | 287 | Long accountId = cmd.getAccountId(); |
@@ -324,7 +324,7 @@ private Answer execute(downloadTemplateFromSwiftToSecondaryStorageCommand cmd) { |
324 | 324 | } |
325 | 325 | } |
326 | 326 |
|
327 | | - private Answer execute(uploadTemplateToSwiftFromSecondaryStorageCommand cmd) { |
| 327 | + private Answer execute(UploadTemplateToSwiftFromSecondaryStorageCommand cmd) { |
328 | 328 | SwiftTO swift = cmd.getSwift(); |
329 | 329 | String secondaryStorageUrl = cmd.getSecondaryStorageUrl(); |
330 | 330 | Long accountId = cmd.getAccountId(); |
@@ -769,7 +769,7 @@ private String determineSnapshotLocalDirectory( |
769 | 769 | SNAPSHOT_ROOT_DIR, accountId, volumeId); |
770 | 770 | } |
771 | 771 |
|
772 | | - public Answer execute(downloadSnapshotFromSwiftCommand cmd){ |
| 772 | + public Answer execute(DownloadSnapshotFromSwiftCommand cmd){ |
773 | 773 | SwiftTO swift = cmd.getSwift(); |
774 | 774 | String secondaryStorageUrl = cmd.getSecondaryStorageUrl(); |
775 | 775 | Long accountId = cmd.getAccountId(); |
|
0 commit comments