|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.griphyn.vdl.planner.Catalog
This class looks up in the transformation catalog and replica catalog. Both catalogs look similar, thus the same code is "recycled" for it.
| Nested Class Summary | |
protected class |
Catalog.Items
Internal class to abstract the entries in a catalog. |
| Field Summary | |
private String |
m_catName
Name of the catalog. |
private String |
m_pool
Name of the pool -- always local for the shell planner. |
private HashMap |
m_poolMap
Contains the mapping from a logical TR to the physical app, or from the logical filename to the physical filename. |
| Constructor Summary | |
Catalog(String catName)
Initializes the catalog with the file that contains it. |
|
Catalog(String catName,
String pool)
Initializes the catalog location and default resource handle. |
|
| Method Summary | |
boolean |
addEntry(String pool,
String lfn,
String pfn)
Adds a triple to the catalog. |
void |
dump()
Overwrites the existing (or not existing) catalogs with the new content in main memory. |
String |
getName()
Gets the file location of the catalog. |
private void |
initialize()
Reads the catalog and stores mappings in the internal map. |
String |
lookup_env(String pool,
String lfn)
Find the environment string for a logical entity. |
String |
lookup(String pool,
String lfn)
Find the physical entity for a logical entity and resource. |
String |
toString()
Shows the contents of the in-memory catalog as one string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private String m_catName
private String m_pool
private HashMap m_poolMap
| Constructor Detail |
public Catalog(String catName)
catName - is the location of the catalog.
public Catalog(String catName,
String pool)
catName - is the location of the catalog file.pool - is the default resource handle (site).| Method Detail |
private void initialize()
public String lookup(String pool,
String lfn)
pool - is the pool name.lfn - is the logical entity to look up.
null if not found.
public String lookup_env(String pool,
String lfn)
pool - is the pool name.lfn - is the logical entity to look up.
null if not found.
public boolean addEntry(String pool,
String lfn,
String pfn)
pool - is the resource handle, should be "local".lfn - is the logical entitypfn - is the physical entity
public String getName()
public void dump()
throws IOException
IOExceptionpublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||