Home | Trees | Indices | Help |
---|
|
object --+ | GPIDev.Base.Objects.Node --+ | GPIDev.Base.Objects.GangaObject --+ | GridSandboxCache
Helper class for upladong/downloading/deleting sandbox files on a grid cache.
Author: Hurng-Chun Lee
Contact: hurngchunlee@gmail.com
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
_schema = Schema(Version(1, 1), {'vo': SimpleItem(defvalue= 'd
|
|||
_category = 'GridSandboxCache'
|
|||
_name = 'GridSandboxCache'
|
|||
_exportmethods = ['upload', 'download', 'delete', 'get_cached_
|
|||
logger = getLogger()
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Uploads multiple files to a remote grid storage. @param files is a list of local files to be uploaded to the grid. The elemement can be a file path or a File object. @return True if files are successfully uploaded; otherwise it returns False |
Downloads multiple files from remote grid storages to a local directory. If the file is successfully downloaded, the local file path would be: - os.path.join(dest_dir, os.path.basename(local_fname_n) @param files is a list of files to be downloaded from the grid. The data format of it should be: - [index_grid_file_1, index_grid_file_2, ...] @param dest_dir is a local destination directory to store the downloaded files. @return True if files are successfully downloaded; otherwise it returns False |
Deletes multiple files from remote grid storages. @param files is a list of files to be deleted from the grid. The data format of it should be: - [index_grid_file_1, index_grid_file_2, ...] @return True if files are successfully deleted; otherwise it returns False |
Cleans up the uploaded files. @return True if all grid files listed in the index file are successfully deleted. |
Gets the indexes of the uploaded files on the grid. @return the dictionary indexing the uploaded files on the grid. The key of the dictionary should be the main index (e.g. GUID) of the grid files. |
Lists the uploaded files. if loop = True, it prints also the uploaded files associated with subjobs. |
Uploads multiple files to a remote grid storage.
|
Downloads multiple files from remote grid storages to a local directory. @param files is a list of files represented by GridFileIndex objects @param dest_dir is a local destination directory to store the downloaded files. @return a list of successfully downloaded files represented by GridFileIndex objects |
Deletes multiple files from remote grid storages. @param files is a list of files represented by GridFileIndex objects @return a list of successfully deleted files represented by GridFileIndex objects |
basic implementation for bookkeeping the uploaded files. It simply keeps the GridFileIndex objects in the job repository. @param files is a list of files represented by GridFileIndex objects @return True if files are successfully logged in the local index file |
basic implementation for getting the previously uploaded files from the job repository. @return a list of files represented by GridFileIndex objects |
Gets file index object according to the given file list
@param files is a list of file indexes @return a list of files represented by GridFileIndex objects |
|
_schema
|
_exportmethods
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Jun 25 10:35:21 2012 | http://epydoc.sourceforge.net |