|
||||||||||
| 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.VORS
public class VORS
The VORS implementation of the Site Catalog interface.
| Field Summary | |
|---|---|
static String |
DEFAULT_VORS_HOST
The default VORS mVORSHost. |
static String |
DEFAULT_VORS_PORT
The default VORS mVORSPort. |
private String |
mGRID
The Grid for which information is required. |
private LogManager |
mLogger
The handle to the log manager. |
private SiteStore |
mSiteStore
The SiteStore object where information about the sites is stored. |
private String |
mVO
The VO to which the user belongs to. |
private Map<String,VORSVOInfo> |
mVOInfo
|
private String |
mVORSHost
The mVORSHost where VORS is running. |
private String |
mVORSPort
The VORS mVORSPort. |
| 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 | |
|---|---|
VORS()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Explicitely free resources before the garbage collection hits. |
boolean |
connect(Properties props)
Establishes a link between the implementation and the thing the implementation is build upon. |
int |
insert(SiteCatalogEntry entry)
Inserts a new mapping into the Site catalog. |
boolean |
isClosed()
Predicate to check, if the connection with the catalog's implementation is still active. |
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)
Removes a site catalog entry matching the the handle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_VORS_HOST
public static final String DEFAULT_VORS_PORT
private SiteStore mSiteStore
private Map<String,VORSVOInfo> mVOInfo
private String mVORSHost
private String mVORSPort
private String mVO
private String mGRID
private LogManager mLogger
| Constructor Detail |
|---|
public VORS()
| Method Detail |
|---|
public int insert(SiteCatalogEntry entry)
throws SiteCatalogException
SiteCatalog
insert in interface SiteCatalogentry - the SiteCatalogEntry object that describes
a site.
SiteCatalogException - in case of error.
public Set<String> list()
throws SiteCatalogException
SiteCatalog
list in interface SiteCatalogSiteCatalogException - in case of error.
public int load(List<String> sites)
throws SiteCatalogException
SiteCatalog
load in interface SiteCatalogsites - the list of sites to be loaded.
SiteCatalogException - in case of error.
public SiteCatalogEntry lookup(String handle)
throws SiteCatalogException
SiteCatalogSiteCatalogEntry 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
SiteCatalog
remove in interface SiteCataloghandle - the site handle / identifier.
SiteCatalogException - in case of error.public void close()
Catalog
close in interface Catalogpublic boolean connect(Properties props)
CatalogFIXME: The cause for failure is lost without exceptions.
connect in interface Catalogprops - contains all necessary data to establish the link.
public boolean isClosed()
Catalogclose().
isClosed in interface CatalogCatalog.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||