Home | Trees | Index | Help |
---|
Package pyGlobus :: Module replicaManagement :: Class Session |
|
The main interface to the replica catatlog session module.
It is mainly a proxy class for the replicaManagementc module session functions. It provides a higher level interface designed to simplify usage. Exceptions are used to indicate all error conditions.Method Summary | |
---|---|
Initialize a session. | |
Destroys an instance. | |
Create an empty collection. | |
Delete a collection with no filenames. | |
Copy a file from one replica catalog location's storage system to another. | |
Remove a filename from the replica catalog location. | |
Publish a file into a replica catalog collection and location. | |
Register a file into a collection and location. | |
Free a callback. | |
Return the underlying replica management handle. | |
Get rollback string. | |
Create a storage system location in the replica catalog, | |
Delete a storage system location from the replica catalog. | |
Restart the operation described by the given lock. | |
Rollback the operation described by the given lock. |
Method Details |
---|
__init__(self,
attr=None)
|
__del__(self)
|
collection_create(self, url, colAttr)Create an empty collection. The collection is created with no filenames and default access control rights as defined by the administrator of the replica catalog. The caller must be authorized to create the collection entry in the replica catalog.
|
collection_delete(self, url, colAttr)Delete a collection with no filenames. The caller must be authorized to delete the collection entry in the replica catalog.
|
file_copy(self, url, srcLocationName, destLocationName, filename, behavior, colAttr=None, srcAttr=None, destAttr=None, preregFunc=None, cbArg=None)Copy a file from one replica catalog location's storage system to another. Updates the replica catalog collection and location information.. Throughout, the replica catalog remains consistent: any files listed in a replica catalog location are complete and uncorrupt (barring spontaneous corruption by a storage system). Pending operations on files are locked and their state is checkpointed to the replica catalog so that, in the event of failure, rollback and restart information is available. The caller must have authorization to add a filename to the replica catalog collection and location, to write the file to the destination storage system, and to read from the source storage system.
|
file_delete(self, url, locationName, filename, delete, colAttr=None, ftpAttr=None)Remove a filename from the replica catalog location. Also removes the file from the replica catalog location's storage system. If delete is not true then don't also delete the file from the replica catalog location's storage system. The caller must have authorization to remove a filename from the replica catalog location and to delete the file from the source storage system.
|
file_publish(self, srcUrl, destUrl, locationName, filename, behavior, srcAttr=None, colAttr=None, destAttr=None, preregFunc=None, cbArg=None)Publish a file into a replica catalog collection and location. Copies the file from its source into the replica catalog location's storage system. Throughout, the replica catalog remains consistent: any files listed in a replica catalog location are complete and uncorrupt (barring spontaneous corruption by a storage system). Pending operations on files are locked and their state is checkpointed to the replica catalog so that, in the event of failure, rollback and restart information is available. The caller must have authorization to add a filename to the replica catalog collection and location, to write the file to the storage system, and to read the source file using their own credentials.
|
file_register(self, url, locationName, filename, colAttr=None, ftpAttr=None)Register a file into a collection and location. Registers an existing file in a storage system into an existing replica catalog collection and a location. The file already exists in a storage system referred to by a replica catalog location, no copying is done. The caller must have authorization to add a filename to the replica catalog collection and location, and to read the file from the storage system.
|
free_callback(self, cbHandle)Free a callback. Free's the underlying memory allocated for a callback structure.
|
get_handle(self)Return the underlying replica management handle.
|
get_rollback_contact(self)Get rollback string. Obtain the rollback and restart information contact string from the result of a replica management operation. he operations that support rollback or restart are file_publish(), file_copy(), and file_delete().
|
location_create(self, url, name, rootURL, colAttr=None, ftpAttr=None)Create a storage system location in the replica catalog, The location is created without any associated filenames. The caller must be authorized to create the storage system directory and to add a location entry to the collection in the replica catalog.
|
location_delete(self, url, name, colAttr=None)Delete a storage system location from the replica catalog. The caller must be authorized to remove the location entry from the collection in the replica catalog. Note that this call will fail if there are any files associated with the location and that the associated storage system will not be affected.
|
restart(self, rollbackInfo, colAttr=None, srcFtpAt=None, destFtpAttr=None, preregFunc=None, cbArg=None)Restart the operation described by the given lock.
|
rollback(self, rollbackInfo, colAttr=None, ftpAttr=None)Rollback the operation described by the given lock.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Mon Oct 13 13:47:23 2003 | http://epydoc.sf.net |