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

EdgReplicaLocationIndex::ReplicaLocationIndexImpl Class Reference

Inheritance diagram for EdgReplicaLocationIndex::ReplicaLocationIndexImpl:

EdgReplicaLocationIndex::ReplicaLocationIndex List of all members.

Public Methods

 ReplicaLocationIndexImpl (const std::string &url)
virtual ~ReplicaLocationIndexImpl ()
const std::string getUrl () const
 get the URL this ReplicaLocationIndex resides at. More...

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

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

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

virtual bool existsAt (const std::string &lrc, const std::string &guid) const 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) throw (CommunicationException)
 update the information we have for an LRC with a new set of information. More...

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

virtual const std::string ping () const throw (CommunicationException)
 Check if a server is alive. More...

virtual const std::string getVersion () const 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 throw (CommunicationException)
 Return RLI server interface version as std::string
Exceptions:
CommunicationException  in case of an unknown server side error.
More...



Detailed Description

Author:
James Casey , Radovan Chytracek
Version:
Id:
ReplicaLocationIndexImpl.h,v 1.6 2004/05/05 08:55:22 jamesc Exp


Constructor & Destructor Documentation

ReplicaLocationIndexImpl const std::string &    url
 

~ReplicaLocationIndexImpl   [virtual]
 


Member Function Documentation

const std::string getUrl   const [virtual]
 

get the URL this ReplicaLocationIndex resides at.

Returns:
the URL

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

void getLRC const std::string &    guid,
LRCs   toFill
const throw (CommunicationException) [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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

void lrcList LRCs   toFill const throw (CommunicationException) [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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

bool exists const std::string &    guid const throw (CommunicationException) [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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

bool existsAt const std::string &    lrc,
const std::string &    guid
const throw (CommunicationException) [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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

void update const std::string &    lrcEndpoint,
long    expiration,
const Bytes   bits,
int    entries,
int    numBits,
int    optimalNumKeys,
int    numHashes
throw (CommunicationException) [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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

bool remove const std::string &    lrcEndpoint throw (CommunicationException) [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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

const std::string ping   const throw (CommunicationException) [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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

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

Return RLI server version as std::string

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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

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

Return RLI server interface version as std::string

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

Implements EdgReplicaLocationIndex::ReplicaLocationIndex.

The EU DataGrid Project. All rights reserved.