|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.catalog.site.impl.XML3
public class XML3
An implementation of the Site Catalog interface that is backed up by an XML file conforming to site catalog xml schema version 3. The schema can be found online at
http://pegasus.isi.edu/schema/sc-3.0.xsd
| Field Summary | |
|---|---|
private PegasusBag |
mBag
The bag of Pegasus Initialization objects |
private String |
mFilename
The Site Catalog file to be parser. |
private LogManager |
mLogger
The handle to the log manager. |
private SiteCatalogParser |
mParser
The handle to parser instance that will parse the site catalog. |
private SiteStore |
mSiteStore
Stores sites in memory |
| Fields inherited from interface edu.isi.pegasus.planner.catalog.SiteCatalog |
|---|
c_prefix, VERSION |
| Fields inherited from interface edu.isi.pegasus.planner.catalog.Catalog |
|---|
DB_ALL_PREFIX |
| Constructor Summary | |
|---|---|
XML3()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close the connection to backend file. |
boolean |
connect(Properties props)
Establishes a connection to the file from the properties. |
boolean |
connect(String filename)
Initializes the Site Catalog Parser instance for the file. |
int |
insert(SiteCatalogEntry entry)
Not implemented as yet. |
boolean |
isClosed()
Returns if the connection is closed or not. |
Set<String> |
list()
Lists the site handles for all the sites in the Site Catalog. |
int |
load(List<String> sites)
Loads up the Site Catalog implementation with the sites whose site handles are specified. |
SiteCatalogEntry |
lookup(String handle)
Retrieves the SiteCatalogEntry for a site. |
int |
remove(String handle)
Not yet implemented as yet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SiteCatalogParser mParser
private SiteStore mSiteStore
private String mFilename
private LogManager mLogger
private PegasusBag mBag
| Constructor Detail |
|---|
public XML3()
| Method Detail |
|---|
public boolean connect(Properties props)
throws SiteCatalogException
connect in interface Catalogprops - is the property table with sufficient settings to
to connect to the implementation.
SiteCatalogExceptionpublic boolean connect(String filename)
filename - is the name of the file to read.
public void close()
close in interface Catalogpublic boolean isClosed()
isClosed in interface CatalogCatalog.close()
public int load(List<String> sites)
throws SiteCatalogException
load in interface SiteCatalogsites - the list of sites to be loaded.
SiteCatalogException - in case of error.
public int insert(SiteCatalogEntry entry)
throws SiteCatalogException
insert in interface SiteCatalogentry -
SiteCatalogException
public Set<String> list()
throws SiteCatalogException
list in interface SiteCatalogSiteCatalogException - in case of error.
public SiteCatalogEntry lookup(String handle)
throws SiteCatalogException
SiteCatalogEntry for a site.
lookup in interface SiteCataloghandle - the site handle / identifier.
null
if no match is found.
SiteCatalogException - in case of error.
public int remove(String handle)
throws SiteCatalogException
remove in interface SiteCataloghandle -
SiteCatalogException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||