| Trees | Indices | Help |
|---|
|
|
object --+
|
StorageElement
This class represents a logical StorageElement.
The class implements the necessary functions for a generic SRM v2.2 based storage element - however, it leaves many things blank as there's no way to determine space available, etc. Provider implementors for SEs should subclass this and implement SE-specific functions.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Run whatever data-gathering activities which need to be done. For the base class, this is a no-op. |
Stub function for providing access protocol information. Return a list of dictionaries. Each dictionary will have the following keys with reference to an access endpoint:
Optionally, the following keys may be included (default in parenthesis):
For the base class, this just returns []. |
Return a list of dictionaries containing information about the SRM endpoints. Each dictionary must have the following keys:
The base class implementation uses the following configuration entries (default value in parenthesis)
|
Return the name of the SE. The base class uses the value of se.name in the configuration object. |
Return the unique ID of the SE. The base class uses the value of se.unique_name (defaults to se.name) in the configuraiton object. |
Return the status of the SE. The base classes uses the value of se.status (defaults to Production) in the configuration object. |
Return the implementation name for this SE. The base class uses the value of se.implementation (defaults to UNKNOWN) in the configuration object. |
Return a version string for this SE. The base class uses the value of se.version (defaults to UNKNOWN) in the configuration object. |
Returns information about the SE disk space. See Also: getSESpace (module-level implementation) |
Retrieve the freespace information from the tape systems. See Also: getSETape (module level implementation) |
Returns the SE architecture. This is an enumeration; the possible values are "tape", "multi-disk", "disk", or "other". The base class makes an educated guess based upon the implementation name and the return value of hasTape. |
Return a list of storage areas at this site. For each storage area, we have a dictionary with the following keys: Required:
Optional (default):
|
Return a list of VOInfo dictionaries. Each dictionary must have the following keys:
|
Return a path appropriate for a VO and space.
Based upon the configuration info and the VO/space requested, determine
a path they should use.
This function tries to find option dcache.space_<space>_path; it parses
this as a comma-separated list of VO:path pairs; i.e.,
space_CMS_path=cms:/dev/null, atlas:/pnfs/blah
If that does not provide a match and return_default is true, then it will
look for dcache.space_<space>_default_path and return that.
If that is not there and return_default is true, it will use the standard
getPath from gip_storage.
If return_default is true, this is guaranteed to return a non-empty
string; if return_default is false, then this might through a ValueError
exception.
@param cp: Site config object
@param space: The name of the space to determine the path for.
@param vo: The name of the VO which will be using this space; None for
the default information.
@kw return_default: Set to True if you want this function to return the
default path if it cannot find a VO-specific one.
@returns: A path string; raises a ValueError if return_default=False
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Jan 7 13:01:11 2009 | http://epydoc.sourceforge.net |