|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.classes.PoolConfig
public class PoolConfig
A data class to store information about the various remote sites.
SiteInfo| Field Summary | |
|---|---|
private LogManager |
mLogger
The handle to the logging object. |
private HashMap |
mSiteCatalog
The map indexed by the site handle. |
| Constructor Summary | |
|---|---|
PoolConfig()
The default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private HashMap mSiteCatalog
private LogManager mLogger
| Constructor Detail |
|---|
public PoolConfig()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||