Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

EdgReplicaLocationIndex::ReplicaLocationIndex Class Reference

Inheritance diagram for EdgReplicaLocationIndex::ReplicaLocationIndex:

EdgReplicaLocationIndex::ReplicaLocationIndexImpl List of all members.

Public Methods

 ReplicaLocationIndex (const std::string &url)
 create a new ReplicaLocationIndex. More...

virtual ~ReplicaLocationIndex ()
 Standard virtual destructor. More...

virtual const std::string getUrl () const=0
 get the URL this ReplicaLocationIndex resides at. More...

virtual void getLRC (const std::string &guid, LRCs &toFill) const=0 throw (CommunicationException)
 Given an guid, return the list of LRCs which contains a mapping for the guid. More...

virtual void lrcList (LRCs &toFill) const=0 throw (CommunicationException)
 Return the list of LRCs which publish to this RLI. More...

virtual bool exists (const std::string &guid) const=0 throw (CommunicationException)
 Does this RLI know about a given guid. More...

virtual bool existsAt (const std::string &lrc, const std::string &guid) const=0 throw (CommunicationException)
 Does this RLI have information about a given LRC containing a mapping for a given guid. More...

virtual void update (const std::string &lrcEndpoint, long expiration, const Bytes &bits, int entries, int numBits, int optimalNumKeys, int numHashes)=0 throw (CommunicationException)
 update the information we have for an LRC with a new set of information. More...

virtual bool remove (const std::string &lrcEndpoint)=0 throw (CommunicationException)
 remove the filter associated with a given endpoint. More...

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 RLI server version as std::string
Exceptions:
CommunicationException  in case of an unknown server side error.
More...


virtual const std::string getInterfaceVersion () const=0 throw (CommunicationException)
 Return RLI server interface version as std::string
Exceptions:
CommunicationException  in case of an unknown server side error.
More...



Constructor & Destructor Documentation

ReplicaLocationIndex const std::string &    url
 

create a new ReplicaLocationIndex.

virtual ~ReplicaLocationIndex   [virtual]
 

Standard virtual destructor.


Member Function Documentation

virtual const std::string getUrl   const [pure virtual]
 

get the URL this ReplicaLocationIndex resides at.

Returns:
the URL

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual void getLRC const std::string &    guid,
LRCs   toFill
const throw (CommunicationException) [pure virtual]
 

Given an guid, return the list of LRCs which contains a mapping for the guid.

Parameters:
guid  the guid
toFill  the vector of LRCs to be filled if any found
Exceptions:
CommunicationException  in case of an unknown server side error

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual void lrcList LRCs   toFill const throw (CommunicationException) [pure virtual]
 

Return the list of LRCs which publish to this RLI.

Parameters:
toFill  the list of LRCs to be filled if any
Exceptions:
CommunicationException  in case of an unknown server side error

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual bool exists const std::string &    guid const throw (CommunicationException) [pure virtual]
 

Does this RLI know about a given guid.

Parameters:
guid  the guid
Returns:
true if it does.
Exceptions:
CommunicationException  in case of an unknown server side error

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual bool existsAt const std::string &    lrc,
const std::string &    guid
const throw (CommunicationException) [pure virtual]
 

Does this RLI have information about a given LRC containing a mapping for a given guid.

Parameters:
lrc  the lrc
guid  the guid
Returns:
true if it does.
Exceptions:
CommunicationException  in case of an unknown server side error

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual void update const std::string &    lrcEndpoint,
long    expiration,
const Bytes   bits,
int    entries,
int    numBits,
int    optimalNumKeys,
int    numHashes
throw (CommunicationException) [pure virtual]
 

update the information we have for an LRC with a new set of information.

Parameters:
lrcEndpoint  The URL of the endpoint of the lrc.
expiration  the time in millis when this filter should expire
bits 
entries 
numBits 
optimalNumKeys 
numHashes 
Exceptions:
CommunicationException  in case of an unknown server side error

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual bool remove const std::string &    lrcEndpoint throw (CommunicationException) [pure virtual]
 

remove the filter associated with a given endpoint.

Parameters:
lrcEndpoint  the endpoint to remove
Returns:
true if the endpoint existed in the RLI
Exceptions:
CommunicationException  in case of an unknown server side error

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual const std::string ping   const throw (CommunicationException) [pure virtual]
 

Check if a server is alive.

It returns a stats string. If everything is ok, this will start with OK else it will start with FAIL.

Returns:
the stats string
Exceptions:
CommunicationException  in case of an unknown server side error

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual const std::string getVersion   const throw (CommunicationException) [pure virtual]
 

Return RLI server version as std::string

Exceptions:
CommunicationException  in case of an unknown server side error.

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

virtual const std::string getInterfaceVersion   const throw (CommunicationException) [pure virtual]
 

Return RLI server interface version as std::string

Exceptions:
CommunicationException  in case of an unknown server side error.

Implemented in EdgReplicaLocationIndex::ReplicaLocationIndexImpl.

The EU DataGrid Project. All rights reserved.