bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
Catalogs from a directory structure. More...
#include <BESCatalogDirectory.h>
Public Member Functions | |
BESCatalogDirectory (const std::string &name) | |
A catalog for POSIX file systems. | |
virtual unsigned int | dereference_catalog () |
Decrement the count of clients that reference this catalog. | |
virtual void | dump (std::ostream &strm) const |
dumps information about this object | |
virtual std::string | get_catalog_name () const |
Get the name for this catalog. | |
virtual BESCatalogUtils * | get_catalog_utils () const |
Get a pointer to the utilities, customized for this catalog. | |
virtual bes::CatalogNode * | get_node (const std::string &path) const |
Get a CatalogNode for the given path in the current catalog. | |
virtual std::string | get_root () const |
Get the root directory for the catalog. | |
virtual void | get_site_map (const std::string &prefix, const std::string &node_suffix, const std::string &leaf_suffix, std::ostream &out, const std::string &path="/") const |
Write the site map for this catalog to the stream. | |
virtual void | reference_catalog () |
Increase the count of clients that reference this catalog. | |
virtual BESCatalogEntry * | show_catalog (const std::string &container, BESCatalogEntry *entry) |
Get the CatalogEntry for the given node. | |
Catalogs from a directory structure.
Definition at line 52 of file BESCatalogDirectory.h.
BESCatalogDirectory::BESCatalogDirectory | ( | const std::string & | name | ) |
A catalog for POSIX file systems.
BESCatalgDirectory is BESCatalog specialized for POSIX file systems. The default catalog is an instance of this class.
name | The name of the catalog. |
Definition at line 85 of file BESCatalogDirectory.cc.
|
virtual |
Definition at line 93 of file BESCatalogDirectory.cc.
|
inlinevirtualinherited |
Decrement the count of clients that reference this catalog.
Definition at line 91 of file BESCatalog.h.
|
virtual |
dumps information about this object
Displays the pointer value of this instance along with information about this catalog directory.
strm | C++ i/o stream to dump the information to |
Implements BESCatalog.
Definition at line 671 of file BESCatalogDirectory.cc.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Get a pointer to the utilities, customized for this catalog.
Definition at line 112 of file BESCatalog.h.
|
virtual |
Get a CatalogNode for the given path in the current catalog.
This is similar to show_catalog() but returns a simpler response. The
path | The pathname for the node; must start with a slash (/) |
BESInternalError | If the
|
BESForbiddenError | If the
|
Implements BESCatalog.
Definition at line 395 of file BESCatalogDirectory.cc.
|
virtual |
Get the root directory for the catalog.
Implements BESCatalog.
Definition at line 262 of file BESCatalogDirectory.cc.
|
virtual |
Write the site map for this catalog to the stream.
For any node in the catalog, write the URL for all of the data items (which must be leaves in the node named by
prefix | Prefix for each item found. It's likely the start of a URL (https://_machine_/_service_). It should not end in a slash (/). |
node_suffix | Appended to each node item found if not empty. If this is the empty string, do not print information about nodes. This parameter's value should not include a leading slash (e.g., 'contents.html'). |
leaf_suffix | Appended to each leaf item found. Likely '.html', but if the empty string do not print information about leaves. |
out | Write the site map to this stream |
path | Write the data for this node in the catalog. Starts with a slash. |
Implements BESCatalog.
Definition at line 631 of file BESCatalogDirectory.cc.
|
inlinevirtualinherited |
Increase the count of clients that reference this catalog.
This class maintains a count of the clients that reference the catalog. When count of clients drops to zero, the instance can be deleted.
Definition at line 80 of file BESCatalog.h.
|
virtual |
Get the CatalogEntry for the given node.
node | The node within the Catalog |
entry | If not null, link the newly built CatalogEntry object to
|
Implements BESCatalog.
Definition at line 108 of file BESCatalogDirectory.cc.