Inheritance diagram for EdgReplicaLocationService::LocalReplicaCatalog:
Public Methods | |||
LocalReplicaCatalog (const std::string &url) | |||
create a new LocalReplicaCatalog. More... | |||
virtual | ~LocalReplicaCatalog () | ||
standard virtual destructor. More... | |||
virtual const std::string & | getUrl () const=0 | ||
get the URL this LocalReplicaCatalog resides at. More... | |||
virtual void | addMapping (const std::string &guid, const std::string &pfn)=0 throw (ValueTooLongException, PfnExistsException, CommunicationException) | ||
add a new mapping to the Catalog. More... | |||
virtual void | deleteMapping (const std::string &guid)=0 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)=0 throw (CommunicationException) | ||
remove from the catalog a single guid to pfn mapping. More... | |||
virtual bool | guidExists (const std::string &guid) const=0 throw (CommunicationException) | ||
Do we have a given guid in the catalog? More... | |||
virtual bool | pfnExists (const std::string &pfn) const=0 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=0 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=0 throw (NoSuchPfnException, CommunicationException) | ||
For a given pfn, return the guid that points to it. More... | |||
virtual void | createAttributeDefinition (const AttributeDefinition &attrDef)=0 throw (AttributeDefinitionExistsException, EmptyAttributeNameException, ValueTooLongException, CommunicationException) | ||
Create a new Attribute Definition in the Catalog. More... | |||
virtual AttributeDefinition | getAttributeDefinition (const std::string &attrName) const=0 throw (NoSuchAttributeDefinitionException, CommunicationException) | ||
Get the AttributeDefinition corresponding to the attribute name. More... | |||
virtual void | getAttributeDefinitions (AttrDefs_t &attdefs) const=0 throw (CommunicationException) | ||
Retrieve the list of all available attribute definitions. More... | |||
virtual void | removeAttributeDefinition (const std::string &attrName)=0 throw (NoSuchAttributeDefinitionException, EmptyAttributeNameException, CommunicationException) | ||
Delete an Attribute Definition from the Catalog. More... | |||
virtual bool | attributeDefinitionExists (const std::string &attrName) const=0 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)=0 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)=0 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)=0 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)=0 throw (NoSuchAttributeDefinitionException, NoSuchPfnException, UnappropriateAttributeTypeException, CommunicationException) | ||
Add an attribute value to a PFN attribute of type float. More... | |||
virtual std::string | getStringPfnAttribute (const std::string &pfnName, const std::string &attrDefnName)=0 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)=0 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)=0 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)=0 throw (NoSuchPfnException, NoSuchAttributeDefinitionException, NoSuchAttributeException, CommunicationException) | ||
remove the value of a given attribute for an PFN. More... | |||
virtual void | setDefaultResultLength (int resultLength)=0 throw (CommunicationException) | ||
Set the number of mappings that will be displayed by default. More... | |||
virtual int | getDefaultResultLength () const=0 throw (CommunicationException) | ||
Return the number of mappings that will be displayed by default. More... | |||
virtual void | getColumnSizes (ColumnSizes &) const=0 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=0 throw (CommunicationException) | ||
Return the mappings for a list of guids. More... | |||
virtual void | setMappingsWithAttributes (const std::vector< Mapping > &mappings) const=0 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=0 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=0 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=0 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=0 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=0 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=0 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=0 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=0 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=0 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=0 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)=0 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)=0 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)=0 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)=0 throw (CommunicationException) | ||
Add an RLI URL to the list of RLI subscribers. More... | |||
virtual bool | addRLISubscription (const std::string &rliURL)=0 throw ( CommunicationException) | ||
Add an RLI URL to the list of RLI subscribers. More... | |||
virtual bool | removeRLISubscription (const std::string &rliURL)=0 throw (CommunicationException) | ||
Remove a RLI URL from the list of RLI subscribers. More... | |||
virtual void | getRLISubscriptions (RliList_t &rlis) const=0 throw (CommunicationException) | ||
Return the list of RLIs that currently subscribe to this LRC. More... | |||
virtual void | forceRLIUpdate () const=0 throw (CommunicationException) | ||
Force a bloom filter update to all the RLI subscribers
| |||
virtual const std::string | ping () const=0 throw (CommunicationException) | ||
Check if a server is alive. More... | |||
virtual const std::string | getVersion () const=0 throw (CommunicationException) | ||
Return RLS server version as std::string
| |||
virtual const std::string | getInterfaceVersion () const=0 throw (CommunicationException) | ||
Return RLS server version as std::string
| |||
virtual const std::string | getSchemaVersion () const=0 throw (CommunicationException) | ||
Return RLS server version as std::string
|
|
create a new LocalReplicaCatalog.
|
|
standard virtual destructor.
|
|
get the URL this LocalReplicaCatalog resides at.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
delete all parts of an guid to pfn mapping including attached attributes.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
remove from the catalog a single guid to pfn mapping.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Do we have a given guid in the catalog?
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Do we have a given physical filename in the catalog?
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
For a given pfn, return the guid that points to it. The return value will never be null.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Create a new Attribute Definition in the Catalog.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Get the AttributeDefinition corresponding to the attribute name.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Retrieve the list of all available attribute definitions.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
do we have an attribute definition for a given attribute name?
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Add an attribute value to a PFN.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Add an attribute value to a PFN attribute of type string.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Add an attribute value to a PFN attribute of type int.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Add an attribute value to a PFN attribute of type float.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
return the value of a given string attribute for a PFN.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
return the value of a given int attribute for an PFN.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
return the value of a given float attribute for an PFN.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
remove the value of a given attribute for an PFN.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Set the number of mappings that will be displayed by default. (for the getMappingsByGuid and getMappingsByPfn methods)..
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Return the number of mappings that will be displayed by default. (for the getMappingsByGuid and getMappingsByPfn methods).
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.)
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Return the guid to physical filename mappings which contain a pfn that matches the given pfnPattern. Return only a certain number of mappings. We assume unix regexp semantics. The result will be an empty set if no mapppings are found.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
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.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Add an The lrc URL is also passed so that the LRC servlet knows its own URL
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Add an
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Remove a
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Return the list of RLIs that currently subscribe to this LRC.
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Force a bloom filter update to all the RLI subscribers
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Check if a server is alive.
It returns a stats string. If everything is ok, this will start with
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Return RLS server version as std::string
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Return RLS server version as std::string
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |
|
Return RLS server version as std::string
Implemented in EdgReplicaLocationService::RemoteLocalReplicaCatalog. |