Inheritance diagram for EdgReplicaLocationService::RemoteLocalReplicaCatalog:
Public Methods | |||
RemoteLocalReplicaCatalog (const std::string &url, int timeOut=30) | |||
virtual | ~RemoteLocalReplicaCatalog () | ||
standard virtual destructor. More... | |||
const std::string & | getUrl () const | ||
get the URL this LocalReplicaCatalog resides at. More... | |||
virtual void | addMapping (const std::string &guid, const std::string &pfn) throw (ValueTooLongException, PfnExistsException, CommunicationException) | ||
add a new mapping to the Catalog. More... | |||
virtual void | deleteMapping (const std::string &guid) throw (CommunicationException) | ||
delete all parts of an guid to pfn mapping including attached attributes. More... | |||
virtual void | removeMapping (const std::string &guid, const std::string &pfn) throw (CommunicationException) | ||
remove from the catalog a single guid to pfn mapping. More... | |||
virtual bool | guidExists (const std::string &guid) const throw (CommunicationException) | ||
Do we have a given guid in the catalog? More... | |||
virtual bool | pfnExists (const std::string &pfn) const throw (CommunicationException) | ||
Do we have a given physical filename in the catalog? More... | |||
virtual void | getPfns (const std::string &guid, std::vector< std::string > &output) const throw (NoSuchGuidException, CommunicationException) | ||
For a given guid, return all the physical filenames we map to in this Catalog. More... | |||
virtual const std::string | guidForPfn (const std::string &pfn) const throw (NoSuchPfnException, CommunicationException) | ||
For a given pfn, return the guid that points to it. More... | |||
virtual void | createAttributeDefinition (const AttributeDefinition &attrDef) throw (AttributeDefinitionExistsException, EmptyAttributeNameException, ValueTooLongException, CommunicationException) | ||
Create a new Attribute Definition in the Catalog. More... | |||
virtual AttributeDefinition | getAttributeDefinition (const std::string &attrName) const throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Get the AttributeDefinition corresponding to the attribute name. More... | |||
virtual void | getAttributeDefinitions (AttrDefs_t &attdefs) const throw (CommunicationException) | ||
Retrieve the list of all availabel attribute definitions. More... | |||
virtual void | removeAttributeDefinition (const std::string &attrName) throw (NoSuchAttributeDefinitionException, EmptyAttributeNameException, CommunicationException) | ||
Delete an Attribute Definition from the Catalog. More... | |||
virtual bool | attributeDefinitionExists (const std::string &attrName) const throw (CommunicationException) | ||
do we have an attribute definition for a given attribute name? More... | |||
virtual void | setPfnAttribute (const std::string &pfn, const std::string &attrName, const std::string &value) throw (NoSuchPfnException, NoSuchAttributeDefinitionException, ValueTooLongException, CommunicationException) | ||
Add an attribute value to a PFN. More... | |||
virtual void | setStringPfnAttribute (const std::string &pfnName, const std::string &attrDefnName, const std::string &attrValue) throw (NoSuchAttributeDefinitionException, NoSuchPfnException, UnappropriateAttributeTypeException, CommunicationException) | ||
Add an attribute value to a PFN attribute of type string. More... | |||
virtual void | setIntPfnAttribute (const std::string &pfnName, const std::string &attrDefnName, int attrValue) throw (NoSuchAttributeDefinitionException, NoSuchPfnException, UnappropriateAttributeTypeException, CommunicationException) | ||
Add an attribute value to a PFN attribute of type int. More... | |||
virtual void | setFloatPfnAttribute (const std::string &pfnName, const std::string attrDefnName, float attrValue) throw (NoSuchAttributeDefinitionException, NoSuchPfnException, UnappropriateAttributeTypeException, CommunicationException) | ||
Add an attribute value to a PFN attribute of type float. More... | |||
virtual const std::string | getPfnAttribute (const std::string &pfn, const std::string &attrName) const throw (NoSuchPfnException, NoSuchAttributeDefinitionException, CommunicationException) | ||
return the value of a given attribute for an PFN. More... | |||
virtual std::string | getStringPfnAttribute (const std::string &pfnName, const std::string &attrDefnName) throw (NoSuchPfnException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
return the value of a given string attribute for a PFN. More... | |||
virtual int | getIntPfnAttribute (const std::string &pfnName, const std::string &attrDefnName) throw (NoSuchPfnException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
return the value of a given int attribute for an PFN. More... | |||
virtual float | getFloatPfnAttribute (const std::string &pfnName, const std::string &attrDefnName) throw (NoSuchPfnException, NoSuchAttributeDefinitionException, UnappropriateAttributeTypeException, CommunicationException) | ||
return the value of a given float attribute for an PFN. More... | |||
virtual void | removePfnAttribute (const std::string &pfn, const std::string &attrName) throw (NoSuchPfnException, NoSuchAttributeDefinitionException, NoSuchAttributeException, CommunicationException) | ||
remove the value of a given attribute for an PFN. 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 maximum number of characters for a GUID, a PFN and an attribute. 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, PfnExistsException) | ||
Add a set of guid to pfn mappings, with optional pfn attributes to the database. More... | |||
virtual void | getMappingsByGuid (const std::string &guidPattern, std::vector< GuidPfnPair_t > &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, std::vector< GuidPfnPair_t > &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, std::vector< GuidPfnPair_t > &mappings) const throw (CommunicationException) | ||
Return the guid to physical filename mappings which contain a guid that matches the given guidPattern. More... | |||
virtual void | getMappingsByPfn (const std::string &pfnPattern, std::vector< GuidPfnPair_t > &mappings) const throw (CommunicationException) | ||
Return the guid to physical filename mappings which contain a physical filename that matches the given pfnPattern. More... | |||
virtual void | getMappingsByPfn (const std::string &pfnPattern, int resultLength, std::vector< GuidPfnPair_t > &mappings) const throw (CommunicationException) | ||
Return the guid to physical filename mappings which contain a pfn that matches the given pfnPattern. More... | |||
virtual void | getMappingsByPfn (const std::string &pfnPattern, int resultLength, int resultStart, std::vector< GuidPfnPair_t > &mappings) const throw (CommunicationException) | ||
Return the guid to physical filename mappings which contain a pfn that matches the given pfnPattern. More... | |||
virtual void | getMappingsByAttribute (const std::string &SQLQuery, int resultLength, std::vector< GuidPfnPair_t > &mappings) const throw (InvalidQueryException, CommunicationException) | ||
Return the guid to physical filename mappings which contain the PFNs corresponding to the given attributes conditions. More... | |||
virtual void | getMappingsByAttribute (const std::string &SQLQuery, int resultLength, int resultStart, std::vector< GuidPfnPair_t > &mappings) const throw (InvalidQueryException, CommunicationException) | ||
Return the guid to physical filename mappings which the PFNs corresponding to the given attributes conditions. More... | |||
virtual void | getMappingsWithAttributes (const std::string &SQLQuery, int resultLength, std::vector< Mapping > &mappings) const throw (InvalidQueryException, CommunicationException) | ||
Return the guid to physical filename 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 (InvalidQueryException, CommunicationException) | ||
Return the guid to physical filename mappings which the PFNs corresponding to the given conditions, along with their attributes. More... | |||
virtual void | getMappingsByPfnAttribute (const std::string &attrName, const std::string &valuePattern, std::vector< GuidPfnPair_t > &mappings) throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to physical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByPfnAttribute (const std::string &attrName, const std::string &valuePattern, int resultLength, std::vector< GuidPfnPair_t > &mappings) throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to physical filename mappings which have a given attribute name=value pair. More... | |||
virtual void | getMappingsByPfnAttribute (const std::string &attrName, const std::string &valuePattern, int resultLength, int resultStart, std::vector< GuidPfnPair_t > &mappings) throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Return the guid to physical filename mappings which have a given attribute name=value pair. More... | |||
virtual bool | addRLISubscription (const std::string &lrcURL, const std::string &rliURL) throw (CommunicationException) | ||
Add an RLI URL to the list of RLI subscribers. More... | |||
virtual bool | addRLISubscription (const std::string &rliURL) throw ( CommunicationException) | ||
Add an RLI URL to the list of RLI subscribers. More... | |||
virtual bool | removeRLISubscription (const std::string &rliURL) throw (CommunicationException) | ||
Remove a RLI URL from the list of RLI subscribers. More... | |||
virtual void | getRLISubscriptions (RliList_t &rlis) const throw (CommunicationException) | ||
Return the list of RLIs that currently subscribe to this LRC. More... | |||
virtual void | forceRLIUpdate () const throw (CommunicationException) | ||
Force a bloom filter update to all the RLI subscribers
| |||
virtual const std::string | ping () const throw (CommunicationException) | ||
Check if a server is alive. More... | |||
virtual const std::string | getVersion () const throw (CommunicationException) | ||
Return RLS server version as std::string
| |||
virtual const std::string | getInterfaceVersion () const throw (CommunicationException) | ||
Return RLS server interface version as std::string
| |||
virtual const std::string | getSchemaVersion () const throw (CommunicationException) | ||
Return RLS server schema version as std::string
|
|
|
|
standard virtual destructor.
|
|
get the URL this LocalReplicaCatalog resides at.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
add a new mapping to the Catalog. If there is already a mapping, we add this mapping to the set of mappings. If there are no mappings already, we create a new mapping.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
delete all parts of an guid to pfn mapping including attached attributes.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
remove from the catalog a single guid to pfn mapping.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Do we have a given guid in the catalog?
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Do we have a given physical filename in the catalog?
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
For a given guid, return all the physical filenames we map to in this Catalog. This will always have at least one entry, and never be empty.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
For a given pfn, return the guid that points to it. The return value will never be null.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Create a new Attribute Definition in the Catalog.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Get the AttributeDefinition corresponding to the attribute name.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Retrieve the list of all availabel attribute definitions.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Delete an 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
do we have an attribute definition for a given attribute name?
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Add an attribute value to a PFN.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Add an attribute value to a PFN attribute of type string.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Add an attribute value to a PFN attribute of type int.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Add an attribute value to a PFN attribute of type float.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
return the value of a given attribute for an PFN.
|
|
return the value of a given string attribute for a PFN.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
return the value of a given int attribute for an PFN.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
return the value of a given float attribute for an PFN.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
remove the value of a given attribute for an PFN.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Set the number of mappings that will be displayed by default. (for the getMappingsByGuid and getMappingsByPfn methods)..
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the number of mappings that will be displayed by default. (for the getMappingsByGuid and getMappingsByPfn methods).
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the maximum number of characters for a GUID, a PFN and an attribute. (according to the schema : if GUID has been defined as VARCHAR(250), then the GUID cannot have more than 250 characters. So 250 will be returned.)
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Add a set of guid to pfn mappings, with optional pfn attributes to the database. If any problem occurs when inserting entries or attributes (pfn 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which contain a guid that matches the given guidPattern. We assume unix regexp semantics. The result will be an empty set if no mapppings are found.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which contain a physical filename that matches the given pfnPattern. We assume unix regexp semantics. The result will be an empty set if no mapppings are found.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which contain a pfn that matches the given pfnPattern. 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which contain a pfn that matches the given pfnPattern. 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which contain the PFNs corresponding to the given attributes conditions. 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which the PFNs corresponding to the given attributes conditions. 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename 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 EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found. We assume unix regexp semantics for valuePattern.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found. We assume unix regexp semantics for valuePattern.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the guid to physical filename mappings which have a given attribute name=value pair. The result will be an empty if no mapppings are found. We assume unix regexp semantics for valuePattern.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Add an The lrc URL is also passed so that the LRC servlet knows its own URL
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Add an
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Remove a
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return the list of RLIs that currently subscribe to this LRC.
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Force a bloom filter update to all the RLI subscribers
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Check if a server is alive.
It returns a stats string. If everything is ok, this will start with
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return RLS server version as std::string
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return RLS server interface version as std::string
Implements EdgReplicaLocationService::LocalReplicaCatalog. |
|
Return RLS server schema version as std::string
Implements EdgReplicaLocationService::LocalReplicaCatalog. |