org.glite.voms.contact
Class VOMSServerMap

java.lang.Object
  extended by org.glite.voms.contact.VOMSServerMap

public class VOMSServerMap
extends java.lang.Object

A VOMSServerMap organizes voms servers found in vomses configuration files in map keyed by vo. This way is easy to know which servers acts as replicas for the same vos. For more info about vomses configuration files, see VOMSESFileParser.

Author:
Andrea Ceccanti, Vincenzo Ciaschini

Field Summary
protected  java.util.Map map
           
 
Constructor Summary
VOMSServerMap()
           
 
Method Summary
 void add(VOMSServerInfo info)
           
 java.util.Set get(java.lang.String nick)
           
 void merge(VOMSServerMap other)
          Merge this map with another VOMSServerMap object.
 int serverCount(java.lang.String nick)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

map

protected java.util.Map map
Constructor Detail

VOMSServerMap

public VOMSServerMap()
Method Detail

add

public void add(VOMSServerInfo info)

get

public java.util.Set get(java.lang.String nick)

serverCount

public int serverCount(java.lang.String nick)

merge

public void merge(VOMSServerMap other)
Merge this map with another VOMSServerMap object.

Parameters:
other -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object