#include <CloudAccessLayer.h>
CloudAccessLayer class it makes connecting to multiple clouds an easy job, and hides it from the rest of the software.
Checks if all the the fragments exist in the cloud
- Parameters
-
fileDescriptor | descriptor of the file to check |
- Returns
- true if the all the the fragments exist, false otherwise
bool CloudAccessLayer::checkExists |
( |
LockFile |
lockFile | ) |
|
Checks if the LockFile exists
- Parameters
-
lockFile | the lockFile to check |
- Returns
- true if the LockFile exists, false otherwise
Deletes the file from the corresponding adapters
- Parameters
-
fileDescriptor | descriptor of the file to delete |
- Returns
- successful
bool CloudAccessLayer::deleteFile |
( |
LockFile |
lockFile | ) |
|
Deletes the lockfile from the corresponding adapter
- Parameters
-
lockFile | the lockfile to delete |
- Returns
- successful
Downloads the file from the corresponding adapters
- Parameters
-
fileDescriptor | descriptor of the file to download |
- Returns
- the new filedescriptor or null
bool CloudAccessLayer::download |
( |
LockFile |
lockFile | ) |
|
Downloads the lockfile from the corresponding adapter
- Parameters
-
lockFile | the lockfile to download |
- Returns
- successful
Returns the size of a file
- Parameters
-
fileDescriptor | descriptor of the file to measure |
- Returns
- the length of the file
Uploads the file to the corresponding adapters
- Parameters
-
fileDescriptor | descriptor of the file to upload |
- Returns
- successful
CloudAccessLayer implementation
bool CloudAccessLayer::upload |
( |
LockFile |
lockFile | ) |
|
Uploads the lockfile to the corresponding adapter
- Parameters
-
lockFile | the lockfile to upload |
- Returns
- successful
The documentation for this class was generated from the following files: