Inheritance diagram for EdgReplicaMetadataCatalog::ReplicaMetadataCatalogImpl:
Public Methods | |||
ReplicaMetadataCatalogImpl (const std::string &url, int timeOut) | |||
create a new RemoteLocalReplicaCatalog. More... | |||
virtual | ~ReplicaMetadataCatalogImpl () | ||
const std::string & | getUrl () const | ||
get the URL this ReplicaMetadataCatalog resides at. More... | |||
virtual void | addAlias (const std::string &guid, const std::string &alias) throw (AliasExistsException, ValueTooLongException, CommunicationException) | ||
Add an alias into catalog. More... | |||
virtual void | removeAlias (const std::string &guid, const std::string &alias) throw (CommunicationException) | ||
Remove an alias from the catalog. More... | |||
virtual bool | aliasExists (const std::string &alias) const throw (CommunicationException) | ||
Do we have a given alias in the catalog? More... | |||
virtual bool | guidExists (const std::string &guid) const throw (CommunicationException) | ||
Do we have a given guid in the catalog? More... | |||
virtual const std::string | guidForAlias (const std::string &alias) const throw (NoSuchAliasException, CommunicationException) | ||
Find a corresponding guid for a given alias. More... | |||
virtual void | getAliases (const std::string &guid, Aliases_t &vec) const throw (NoSuchGuidException, CommunicationException) | ||
Retrieve the list of all aliases pointing to the same guid. More... | |||
virtual void | createAliasAttributeDefinition (const AttributeDefinition &attrDef) throw (AttributeDefinitionExistsException, UnsupportedAttributeTypeException, EmptyAttributeNameException, ValueTooLongException, CommunicationException) | ||
Create a new alias Attribute Definition in the Catalog. More... | |||
virtual void | createAliasAttributeDefinition (const std::string &attrName) throw (AttributeDefinitionExistsException, UnsupportedAttributeTypeException, EmptyAttributeNameException, ValueTooLongException, CommunicationException) | ||
virtual void | getAliasAttributeDefinitions (AttrDefs_t &ads) const throw (CommunicationException) | ||
Retrieve the list of all available alias attribute definitions. More... | |||
virtual AttributeDefinition | getAliasAttributeDefinition (const std::string &attrAliasName) const throw (CommunicationException) | ||
Retrieve the alias attribute definition. More... | |||
virtual bool | aliasAttributeDefinitionExists (const std::string &attrName) const throw (CommunicationException) | ||
Do we have an alias attribute definition for a given attribute name? More... | |||
virtual void | removeAliasAttributeDefinition (const std::string &attrName) throw (NoSuchAttributeDefinitionException, EmptyAttributeNameException, CommunicationException) | ||
Delete an alias Attribute Definition from the Catalog. More... | |||
virtual void | createGuidAttributeDefinition (const AttributeDefinition &attrDef) throw (AttributeDefinitionExistsException, UnsupportedAttributeTypeException, EmptyAttributeNameException, ValueTooLongException, CommunicationException) | ||
Create a new guid Attribute Definition in the Catalog. More... | |||
virtual void | createGuidAttributeDefinition (const std::string &attrName) throw (AttributeDefinitionExistsException, UnsupportedAttributeTypeException, EmptyAttributeNameException, ValueTooLongException, CommunicationException) | ||
virtual void | getGuidAttributeDefinitions (AttrDefs_t &ads) const throw (CommunicationException) | ||
Retrieve the list of all available attribute definitions. More... | |||
virtual AttributeDefinition | getGuidAttributeDefinition (const std::string &attrGuidName) const throw (CommunicationException) | ||
Retrieve the guid attribute definition. More... | |||
virtual bool | guidAttributeDefinitionExists (const std::string &attrName) const throw (CommunicationException) | ||
Do we have an attribute definition for a given attribute name? More... | |||
virtual void | removeGuidAttributeDefinition (const std::string &attrName) throw (NoSuchAttributeDefinitionException, EmptyAttributeNameException, CommunicationException) | ||
Delete a guid Attribute Definition from the Catalog. More... | |||
virtual const std::string | setGuidAttribute (const std::string &guidName, const std::string &attrDefnName, const std::string &attrValue) throw (NoSuchAttributeDefinitionException, NoSuchGuidException, ValueTooLongException, CommunicationException) | ||
Returns the old guid attribute, or empty string if no old attribute exists. More... | |||
virtual const std::string | setStringGuidAttribute (const std::string &guidName, const std::string &attrDefnName, const std::string &attrValue) throw (NoSuchAttributeDefinitionException, NoSuchGuidException, ValueTooLongException, UnappropriateAttributeTypeException, CommunicationException) | ||
Returns the old guid attribute, or empty string if no old attribute exists. More... | |||
virtual int | setIntGuidAttribute (const std::string &guidName, const std::string &attrDefnName, int attrValue) throw (NoSuchAttributeDefinitionException, NoSuchGuidException, ValueTooLongException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual float | setFloatGuidAttribute (const std::string &guidName, const std::string &attrDefnName, float attrValue) throw (NoSuchAttributeDefinitionException, NoSuchGuidException, ValueTooLongException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual const std::string | getGuidAttribute (const std::string &guidName, const std::string &attrDefnName) const throw (NoSuchGuidException, NoSuchAttributeDefinitionException, CommunicationException) | ||
Returns the guid attribute, or empty string if no attribute exists. More... | |||
virtual const std::string | getStringGuidAttribute (const std::string &guidName, const std::string &attrDefnName) const throw (NoSuchGuidException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
Returns the guid attribute, or empty string if no attribute exists. More... | |||
virtual int | getIntGuidAttribute (const std::string &guidName, const std::string &attrDefnName) const throw (NoSuchGuidException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual float | getFloatGuidAttribute (const std::string &guidName, const std::string &attrDefnName) const throw (NoSuchGuidException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual void | removeGuidAttribute (const std::string &guidName, const std::string &attrDefnName) throw (NoSuchGuidException, NoSuchAttributeDefinitionException, CommunicationException) | ||
Removes the attribute for a given guid. More... | |||
virtual const std::string | setAliasAttribute (const std::string &aliasName, const std::string &attrDefnName, const std::string &attrValue) throw (NoSuchAttributeDefinitionException, NoSuchAliasException, ValueTooLongException, CommunicationException) | ||
Returns the old alias attribute, or empty string if no old attribute exists. More... | |||
virtual const std::string | setStringAliasAttribute (const std::string &aliasName, const std::string &attrDefnName, const std::string &attrValue) throw (NoSuchAttributeDefinitionException, NoSuchAliasException, ValueTooLongException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual int | setIntAliasAttribute (const std::string &aliasName, const std::string &attrDefnName, int attrValue) throw (NoSuchAttributeDefinitionException, NoSuchAliasException, ValueTooLongException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual float | setFloatAliasAttribute (const std::string &aliasName, const std::string &attrDefnName, float attrValue) throw (NoSuchAttributeDefinitionException, NoSuchAliasException, ValueTooLongException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual const std::string | getAliasAttribute (const std::string &aliasName, const std::string &attrDefnName) const throw (NoSuchAliasException, NoSuchAttributeDefinitionException, CommunicationException) | ||
Returns the alias attribute, or empty string if no attribute exists. More... | |||
virtual const std::string | getStringAliasAttribute (const std::string &aliasName, const std::string &attrDefnName) const throw (NoSuchAliasException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual int | getIntAliasAttribute (const std::string &aliasName, const std::string &attrDefnName) const throw (NoSuchAliasException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual float | getFloatAliasAttribute (const std::string &aliasName, const std::string &attrDefnName) const throw (NoSuchAliasException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
virtual void | removeAliasAttribute (const std::string &aliasName, const std::string &attrDefnName) throw (NoSuchAliasException, NoSuchAttributeDefinitionException, CommunicationException) | ||
Removes the attribute for a given alias. More... | |||
virtual void | setDefaultResultLength (int resultLength) throw (CommunicationException) | ||
Set the number of mappings that will be displayed by default. More... | |||
virtual int | getDefaultResultLength () const throw (CommunicationException) | ||
Return the number of mappings that will be displayed by default. More... | |||
virtual void | getColumnSizes (ColumnSizes &cs) const throw (CommunicationException) | ||
Return the DB schema defined column sizes for guid, alias and attr. More... | |||
virtual void | getMappingsWithAttributes (const std::vector< std::string > &guids, std::vector< Mapping > &mappings) const throw (CommunicationException) | ||
Return the mappings for a list of guids. More... | |||
virtual void | setMappingsWithAttributes (const std::vector< Mapping > &mappings) const throw (CommunicationException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, AliasExistsException) | ||
Add a set of guid to alias mappings, with optional guid and alias attributes to the database. More... | |||
virtual void | getMappingsByGuid (const std::string &guidPattern, GaMap &mappings) const throw (CommunicationException) | ||
Return the guid to logical filename mappings which match the given guid name pattern The result will be an empty if no mapppings are found. More... | |||
virtual void | getMappingsByGuid (const std::string &guidPattern, int resultLength, GaMap &mappings) const throw (CommunicationException) | ||
Return the guid to physical filename mappings which contain a guid that matches the given guidPattern. More... | |||
virtual void | getMappingsByGuid (const std::string &guidPattern, int resultLength, int resultStart, GaMap &mappings) const throw (CommunicationException) | ||
Return the guid to physical filename mappings which contain a guid that matches the given guidPattern. More... | |||
virtual void | getMappingsByAlias (const std::string &aliasPattern, GaMap &mappings) const throw (CommunicationException) | ||
Return the guid to logical filename mappings which match the given alias name pattern The result will be an empty if no mapppings are found. More... | |||
virtual void | getMappingsByAlias (const std::string &aliasPattern, int resultLength, GaMap &mappings) const throw (CommunicationException) | ||
Return the guid to logical filename mappings which match the given alias name pattern The result will be an empty if no mapppings are found. More... | |||
virtual void | getMappingsByAlias (const std::string &aliasPattern, int resultLength, int resultStart, GaMap &mappings) const throw (CommunicationException) | ||
Return the guid to logical filename mappings which match the given alias name pattern The result will be an empty if no mapppings are found. More... | |||
virtual void | getMappingsByGuidAttribute (const std::string &name, const std::string &value, GaMap &mappings) const throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to logical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByGuidAttribute (const std::string &name, const std::string &value, int resultLength, GaMap &mappings) const throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to logical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByGuidAttribute (const std::string &name, const std::string &value, int resultLength, int resultStart, GaMap &mappings) const throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to logical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByAliasAttribute (const std::string &name, const std::string &value, GaMap &mappings) const throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to logical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByAliasAttribute (const std::string &name, const std::string &value, int resultLength, GaMap &mappings) const throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to logical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByAliasAttribute (const std::string &name, const std::string &value, int resultLength, int resultStart, GaMap &mappings) const throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to logical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByAttribute (const std::string &SQLQuery, int resultLength, GaMap &mappings) const throw (CommunicationException) | ||
Retrieve mappings by SQL query on attributes. More... | |||
virtual void | getMappingsByAttribute (const std::string &SQLQuery, int resultLength, int resultStart, GaMap &mappings) const throw (CommunicationException) | ||
Retrieve mappings by SQL query on attributes. More... | |||
virtual void | getMappingsWithAttributes (const std::string &SQLQuery, int resultLength, std::vector< Mapping > &mappings) const throw (NoSuchAttributeDefinitionException, InvalidQueryException, CommunicationException) | ||
Return the guid to alias mappings which the PFNs corresponding to the given conditions, along with their attributes. More... | |||
virtual void | getMappingsWithAttributes (const std::string &SQLQuery, int resultLength, int resultStart, std::vector< Mapping > &mappings) const throw (NoSuchAttributeDefinitionException, InvalidQueryException, CommunicationException) | ||
Return the guid to alias mappings which the PFNs corresponding to the given conditions, along with their attributes. More... | |||
virtual const std::string | getVersion () const throw (CommunicationException) | ||
Return RMC server version as std::string
| |||
virtual const std::string | getInterfaceVersion () const throw (CommunicationException) | ||
Return RMC server interface version as std::string
| |||
virtual const std::string | getSchemaVersion () const throw (CommunicationException) | ||
Return RMC server schema version as std::string
| |||
virtual const std::string | ping () const throw (CommunicationException) | ||
Check if a server is alive. More... |
|
create a new RemoteLocalReplicaCatalog.
|
|
|
|
get the URL this ReplicaMetadataCatalog resides at.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Add an alias into catalog.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Remove an alias from the catalog.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Do we have a given alias in the catalog?
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Do we have a given guid in the catalog?
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Find a corresponding guid for a given alias.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Retrieve the list of all aliases pointing to the same guid.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Create a new alias Attribute Definition in the Catalog.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
|
|
Retrieve the list of all available alias attribute definitions.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Retrieve the alias attribute definition.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Do we have an alias attribute definition for a given attribute name?
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Delete an alias Attribute Definition from the Catalog. This will also remove any attribute value with this definition from GUID and Physical FileName entries in the Catalog.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Create a new guid Attribute Definition in the Catalog.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
|
|
Retrieve the list of all available attribute definitions.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Retrieve the guid attribute definition.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Do we have an attribute definition for a given attribute name?
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Delete a guid Attribute Definition from the Catalog. This will also remove any attribute value with this definition from GUID and Physical FileName entries in the Catalog.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Returns the old guid attribute, or
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Returns the old guid attribute, or
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Returns the guid attribute, or
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Returns the guid attribute, or
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Removes the attribute for a given guid.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Returns the old alias attribute, or
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Returns the alias attribute, or
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Removes the attribute for a given alias.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Set the number of mappings that will be displayed by default. (for the getMappingsByGuid and getMappingsByPfn methods)..
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the number of mappings that will be displayed by default. (for the getMappingsByGuid and getMappingsByPfn methods).
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the DB schema defined column sizes for guid, alias and attr. def. names
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the mappings for a list of guids. If some of the guids do not exist, this is not a problem. If there are no results, an empty array is returned
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Add a set of guid to alias mappings, with optional guid and alias attributes to the database. If any problem occurs when inserting entries or attributes (alias already exists, inserting an attribute value for an attribute which doesn't exist, inserting the wrong type of attribute value) the entire transaction is rolled back, and a fault thrown
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which match the given guid name pattern The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to physical filename mappings which contain a guid that matches the given guidPattern. Return only the first mappings (no more than the resultLength parameter). We assume unix regexp semantics. The result will be an empty set if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to physical filename mappings which contain a guid that matches the given guidPattern. Return only a certain number of mappings. Return We assume unix regexp semantics. The result will be an empty set if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which match the given alias name pattern The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which match the given alias name pattern The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which match the given alias name pattern The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to logical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Retrieve mappings by SQL query on attributes.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Retrieve mappings by SQL query on attributes.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to alias mappings which the PFNs corresponding to the given conditions, along with their attributes. Return only a certain number of mappings. We assume unix regexp semantics. The result will be an empty set if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return the guid to alias mappings which the PFNs corresponding to the given conditions, along with their attributes. Return only a certain number of mappings. We assume unix regexp semantics. The result will be an empty set if no mapppings are found.
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return RMC server version as std::string
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return RMC server interface version as std::string
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Return RMC server schema version as std::string
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |
|
Check if a server is alive.
It returns a stats string. If everything is ok, this will start with
Implements EdgReplicaMetadataCatalog::ReplicaMetadataCatalog. |