Modifier and Type | Field and Description |
---|---|
private LogManager |
mLogger
The handle to the logging object.
|
private HashMap |
mSiteCatalog
The map indexed by the site handle.
|
Constructor and Description |
---|
PoolConfig()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(PoolConfig sites)
Adds all the sites in a controlled fashion, to the existing map containing
information about the sites.
|
void |
add(PoolConfig sites,
boolean overwrite)
Adds all the sites in a controlled fashion, to the existing map containing
information about the sites.
|
void |
add(String id,
SiteInfo site)
Adds a SiteInfo object to the container.
|
boolean |
contains(String id)
Returns a boolean indicating if an entry for a Site with a particular id
exists or not.
|
SiteInfo |
get(String siteID)
Retrives the information about a site.
|
Map |
getSites()
Returns information about all the sites.
|
String |
toMultiLine()
Returns the textual description of the contents of
PoolConfig
object in the multiline format. |
String |
toXML()
Returns the XML description of the contents of
PoolConfig
object. |
private HashMap mSiteCatalog
private LogManager mLogger
public void add(String id, SiteInfo site)
id
- the id of the site, usually the name of the site.site
- the SiteInfo
object containing the information
about the site.public void add(PoolConfig sites)
sites
- a map indexed by siteid. Each value is a SiteInfo object.public void add(PoolConfig sites, boolean overwrite)
sites
- a map indexed by siteid. Each value is a SiteInfo object.overwrite
- resolves intersections, in case of a site already exists.
If true, the orginal site information is overwritten with
the new one. If false original site information remains.public boolean contains(String id)
id
- the id of the site, usually the name of the site.public SiteInfo get(String siteID)
siteID
- the id of the site, usually the name of the site.SiteInfo
containing the site layout,
else null in case of site not existing.public Map getSites()
SiteInfo
object.public String toMultiLine()
PoolConfig
object in the multiline format.public String toXML()
PoolConfig
object.