Skip to content

Commit dbfec8c

Browse files
committed
Merge pull request #1 from cristofolini/pr/1331
Added javadocs to swiftUploadMetadataFile and copyFromNfsToSwift
2 parents 1b9ff62 + 1797979 commit dbfec8c

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,10 +931,16 @@ protected Answer copyFromNfsToS3(CopyCommand cmd) {
931931
}
932932
}
933933

934+
/**
935+
* Creates a template.properties for Swift with its correct unique name
936+
*
937+
* @param swift
938+
* @param srcFile
939+
* @param containerName
940+
* @return true on successful write
941+
*/
934942
protected boolean swiftUploadMetadataFile(SwiftTO swift, File srcFile, String containerName) throws IOException {
935943

936-
937-
//create a template.properties for Swift with its correct unique name
938944
File uniqDir = _storage.createUniqDir();
939945
String metaFileName = uniqDir.getAbsolutePath() + File.separator + "template.properties";
940946
_storage.create(uniqDir.getAbsolutePath(), "template.properties");
@@ -960,7 +966,12 @@ protected boolean swiftUploadMetadataFile(SwiftTO swift, File srcFile, String co
960966
return true;
961967
}
962968

963-
969+
/**
970+
* Copies data from NFS and uploads it into a Swift container
971+
*
972+
* @param cmd CopyComand
973+
* @return CopyCmdAnswer
974+
*/
964975
protected Answer copyFromNfsToSwift(CopyCommand cmd) {
965976

966977
final DataTO srcData = cmd.getSrcTO();

0 commit comments

Comments
 (0)