org.edg.data.rli
Interface EdgReplicaLocationIndex


public interface EdgReplicaLocationIndex

A Replica Location Index, which allows you to final EdgLocalReplicaCatalogs which contain mappings for the given guids.

Version:
$Id: EdgReplicaLocationIndex.java,v 1.4 2003/10/31 14:02:15 pkunszt Exp $
Author:
James Casey

Method Summary
 boolean exists(java.lang.String guid)
          Does this RLI know about a given guid.
 boolean existsAt(java.lang.String lrc, java.lang.String guid)
          Does this RLI have information about a given LRC containing a mapping for a given guid.
 java.lang.String getInterfaceVersion()
           
 java.lang.String[] getLRC(java.lang.String guid)
          Given an guid, return the list of LRCs which contains a mapping for the guid.
 java.lang.String getVersion()
           
 java.lang.String[] lrcList()
          Return the list of LRCs which publish to this RLI
 java.lang.String ping()
          Is the server alive.
 boolean remove(java.lang.String lrcEndpoint)
          remove the filter associated with a given endpoint
 void update(java.lang.String lrcEndpoint, long expiration, byte[] bits, int entries, int numBits, int optimalNumKeys, int numHashes)
          update the information we have for an LRC with a new set of information.
 

Method Detail

getLRC

public java.lang.String[] getLRC(java.lang.String guid)
Given an guid, return the list of LRCs which contains a mapping for the guid.

Parameters:
guid - the guid
Returns:
the LRCs

lrcList

public java.lang.String[] lrcList()
Return the list of LRCs which publish to this RLI

Returns:
the list of LRCs

exists

public boolean exists(java.lang.String guid)
Does this RLI know about a given guid.

Parameters:
guid - the guid
Returns:
true if it does.

existsAt

public boolean existsAt(java.lang.String lrc,
                        java.lang.String guid)
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.

update

public void update(java.lang.String lrcEndpoint,
                   long expiration,
                   byte[] bits,
                   int entries,
                   int numBits,
                   int optimalNumKeys,
                   int numHashes)
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 -

remove

public boolean remove(java.lang.String lrcEndpoint)
remove the filter associated with a given endpoint

Parameters:
lrcEndpoint - the endpoint to remove
Returns:
true if the endpoint existed in the RLI

ping

public java.lang.String ping()
Is the server 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

getVersion

public java.lang.String getVersion()

getInterfaceVersion

public java.lang.String getInterfaceVersion()