| Home | Trees | Index | Help |
|---|
| Module rlsClient :: Class RlsClient |
|
| Method Summary | |
|---|---|
| instance of class RlsClient |
Constructs an instance. |
| None |
Destroy an instance. |
| integer |
Get the IO timeout, in seconds, for connecting to servers. |
| None |
Add a mapping for a PFN to an existing LFN. |
| dictionary |
Add multiple LFN to PFN mappings for existing LFNs. |
| None |
Set an attribute value for an entry (LFN or PFN) in the LRC |
| None |
Define an attribute in the LRC |
| None |
Delete an attribute definition in the LRC |
| list |
Get definitions of attributes from LRC. |
| None |
Modify an attribute value for an entry (LFN or PFN) in the LRC |
| None |
Remove an attribute value from an entry (LFN or PFN) in the LRC |
| dictionary |
Search for objects (LFNs or PFNs) in a LRC database that have the specified attribute whose value matches a boolean expression. |
| list |
Get attributes in LRC for a specific object (LFN or PFN) |
| None |
Clear all mappings from LRC database. |
| None |
Create LFN with associated PFN in LRC |
| dictionary |
Create multiple LFN to PFN mappings. |
| None |
Delete a mapping for a PFN to an existing LFN. |
| dictionary |
Delete multiple LFN to PFN mappings in the LRC. |
Query LRC for existence of a LFN or PFN **Arguments:** @param fn: LFN or PFN object for which to check existence @type fn: string @param objtype: Type of object argument fn refers to. | |
| [[string],[string]] |
Query LRC for existence of a LFN or PFN in bulk. |
| list |
Query LRC with PFN to obtain LFNs |
| dictionary |
Query LRC with a list of PFNs to obtain LFNs |
| dictionary |
Query LRC with PFN wildcard expression to obtain LFNs. |
| list |
Query LRC with LFN to obtain PFNs |
| dictionary |
Query LRC with a list of LFNs to obtain PFNs |
| dictionary |
Query LRC with LFN wildcard expression to obtain PFNs. |
| integer |
Query LRC for existence of a specific LFN to PFN mapping. |
| None |
LRC servers send information about LFNs in their database to the the list of RLI servers in the database, added with this function. |
| None |
Delete an entry from the LRC rli/partition tables. |
| list |
Get RLI update partitions from LRC server. |
| dictionary |
Get info about RLI server updated by an LRC server. |
| dictionary |
Return URLs of RLIs that LRC sends updates to. |
| None |
Ping the server. |
| None |
Rename an LFN. |
| [(string,string)] |
Bulk rename LFNs. |
| None |
Rename an PFN. |
| [(string,string)] |
Bulk rename PFNs. |
| list |
Return LRCs mapped to LFN in the RLI database. |
| dictionary |
Return LRCs mapped to LFNs in the RLI database. |
| dictionary |
Query RLI with LFN wildcard expression to obtain LRCs. |
| integer |
Check if LFN exists in RLI database. |
| [[string],[string]] |
Query RLI for existence of a LFN or PFN in bulk. |
| integer |
Check if LRC exists in RLI database. |
| list |
Query RLI for list of LRCs updating the RLI. |
| None |
Set the IO timeout, in seconds, for connecting to servers. |
| Method Details |
|---|
__init__(self,
url,
cert=None,
key=None,
proxy=None)
|
__del__(self)
|
get_timeout(self)Get the IO timeout, in seconds, for connecting to servers. Zero means there is no timeout. Note that this is a global timeout and is not limited to this RlsClient object.
|
lrc_add(self, lfn, pfn)Add a mapping for a PFN to an existing LFN. The LFN must exist.
|
lrc_add_bulk(self, mappingDict)Add multiple LFN to PFN mappings for existing LFNs. Each LFN must already exist in the LRC.
|
lrc_attr_add(self, fn, attr)Set an attribute value for an entry (LFN or PFN) in the LRC
|
lrc_attr_define(self, attr)Define an attribute in the LRC
|
lrc_attr_delete(self, attr, clear=0)Delete an attribute definition in the LRC
|
lrc_attr_get(self, objtype, name=None)Get definitions of attributes from LRC.
|
lrc_attr_modify(self, fn, attr)Modify an attribute value for an entry (LFN or PFN) in the LRC
|
lrc_attr_rm(self, fn, attr)Remove an attribute value from an entry (LFN or PFN) in the LRC
|
lrc_attr_search(self, attr1, op, attr2=None, offset=0, reslimit=0)Search for objects (LFNs or PFNs) in a LRC database that have the specified attribute whose value matches a boolean expression.
|
lrc_attr_value_get(self, fn, objtype, attrname=None)Get attributes in LRC for a specific object (LFN or PFN)
|
lrc_clear(self)Clear all mappings from LRC database. User needs both ADMIN and LRCUPDATE privileges to perform this operation. Note that if the LRC is cleared this will not be reflected in any RLI servers updated by the LRC until the next softstate update, even if immediate updates are enabled.
|
lrc_create_lfn(self, lfn, pfn)Create LFN with associated PFN in LRC
|
lrc_create_lfn_bulk(self, mappingDict)Create multiple LFN to PFN mappings.
|
lrc_delete(self, lfn, pfn)Delete a mapping for a PFN to an existing LFN.
|
lrc_delete_bulk(self, mappingDict)Delete multiple LFN to PFN mappings in the LRC.
|
lrc_exists(self, fn, objtype)
Query LRC for existence of a LFN or PFN
**Arguments:**
@param fn: LFN or PFN object for which to check existence
@type fn: string
@param objtype: Type of object argument fn refers to. Should be
either obj_lrc_lfn or obj_lrc_pfn, both of which are defined
in this module.
@type objtype: integer
@return: 1 if exists or 0 if not
@rtype: integer
@raise RlsClientException: raised if unable to query
the LRC.
|
lrc_exists_bulk(self, names, objtype)Query LRC for existence of a LFN or PFN in bulk. **Arguments:**
|
lrc_get_lfn(self, pfn, offset=0, reslimit=0)Query LRC with PFN to obtain LFNs
|
lrc_get_lfn_bulk(self, pfnList)Query LRC with a list of PFNs to obtain LFNs
|
lrc_get_lfn_wc(self, pfnpat, offset=0, reslimit=0)Query LRC with PFN wildcard expression to obtain LFNs.
|
lrc_get_pfn(self, lfn, offset=0, reslimit=0)Query LRC with LFN to obtain PFNs
|
lrc_get_pfn_bulk(self, lfnList)Query LRC with a list of LFNs to obtain PFNs
|
lrc_get_pfn_wc(self, lfnpat, offset=0, reslimit=0)Query LRC with LFN wildcard expression to obtain PFNs.
|
lrc_mapping_exists(self, lfn, pfn)Query LRC for existence of a specific LFN to PFN mapping.
|
lrc_rli_add(self, url, pattern=None, bloom=0)LRC servers send information about LFNs in their database to the the list of RLI servers in the database, added with this function. Updates may be partitioned amongst multiple RLIs by specifying one or more patterns for an RLI.
|
lrc_rli_delete(self, url, pattern=None)Delete an entry from the LRC rli/partition tables.
|
lrc_rli_get_part(self, url=None, pattern=None)Get RLI update partitions from LRC server.
|
lrc_rli_info(self, url)Get info about RLI server updated by an LRC server.
|
lrc_rli_list(self)Return URLs of RLIs that LRC sends updates to.
|
ping(self)Ping the server.
|
rename_lfn(self, oldlfn, newlfn)Rename an LFN. **Arguments:**
|
rename_lfn_bulk(self, lfnmap)Bulk rename LFNs. **Arguments:**
|
rename_pfn(self, oldpfn, newpfn)Rename an PFN. **Arguments:**
|
rename_pfn_bulk(self, pfnmap)Bulk rename PFNs. **Arguments:**
|
rli_get_lrc(self, lfn, offset=0, reslimit=0)Return LRCs mapped to LFN in the RLI database.
|
rli_get_lrc_bulk(self, lfnList)Return LRCs mapped to LFNs in the RLI database.
|
rli_get_lrc_wc(self, lfnpat, offset=0, reslimit=0)Query RLI with LFN wildcard expression to obtain LRCs.
|
rli_lfn_exists(self, lfn)Check if LFN exists in RLI database.
|
rli_lfn_exists_bulk(self, names)Query RLI for existence of a LFN or PFN in bulk. **Arguments:**
|
rli_lrc_exists(self, lrc)Check if LRC exists in RLI database.
|
rli_lrc_list(self)Query RLI for list of LRCs updating the RLI.
|
set_timeout(self, seconds)Set the IO timeout, in seconds, for connecting to servers. Zero means there is no timeout. Note that this is a global timeout and is not limited to this RlsClient object.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Aug 24 09:10:41 2005 | http://epydoc.sf.net |