|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.classes.TCMap
public class TCMap
This is a data class to store the TCMAP for a particular dag. This data class is populated and maintained in the TCMapper and is queried from the Interpool Engine and site selectors. The TCMAP is a hashmap which maps an lfn to a Map which contains keys as siteids and values as List of TransformationCatalogEntry objects TCMAP= lfn1 ---> MAP1 lfn2 ---> MAP2 MAP1 = site1 ---> List1 site2 ---> List2 List1 = TCE1 TCE2 TCEn
| Field Summary | |
|---|---|
private LogManager |
mLogger
|
private Map |
mTCMap
The TCMap for a dag is stored in this HashMap. |
| Constructor Summary | |
|---|---|
TCMap()
Default constructor. |
|
| Method Summary | |
|---|---|
List |
getSiteList(String fqlfn)
Returns a List of siteid's that are valid for a particular lfn. |
List |
getSiteList(String fqlfn,
List sites)
Returns a list of siteid's that are valid for a particular lfn and among a list of input sites |
Map |
getSiteMap(String fqlfn)
Returns a HashMap of sites as keys and a List of TransformationCatalogEntry object as values. |
Map |
getSitesTCEntries(String fqlfn,
List sites)
Retrieves all the entries matching a particular lfn for the sites passed. |
List |
getSiteTCEntries(String fqlfn,
String siteid)
This method returns a list of TransformationCatalogEntry objects for a given transformation and siteid |
boolean |
setSiteMap(String fqlfn,
Map sitemap)
This method allows to associate a site map with a particular logical transformation |
boolean |
setSiteTCEntries(String fqlfn,
String siteid,
TransformationCatalogEntry entry)
This method allows to add a TransformationCatalogEntry object in the map to a particular transformation for a particular site |
String |
toString()
Returns the textual description of the contents of the object |
String |
toString(String lfn)
Returns a textual description of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Map mTCMap
private LogManager mLogger
| Constructor Detail |
|---|
public TCMap()
| Method Detail |
|---|
public Map getSiteMap(String fqlfn)
fqlfn - String The fully qualified logical transformation name for which you want the map.
TransformationCatalogEntry
public boolean setSiteMap(String fqlfn,
Map sitemap)
fqlfn - String The transformation for which the sitemap is to be storedsitemap - Map The sitemap that is to be stored. It is a hashmap with key
as the siteid and value as a list of TranformationCatalogEntry objects
TransformationCatalogEntrypublic List getSiteList(String fqlfn)
fqlfn - String
public List getSiteList(String fqlfn,
List sites)
fqlfn - The logical name of the transformationsites - The list of siteids
public List getSiteTCEntries(String fqlfn,
String siteid)
fqlfn - String The fully qualified logical name of the transformationsiteid - String The siteid for which the Entries are required
public Map getSitesTCEntries(String fqlfn,
List sites)
fqlfn - the fully qualified logical namesites - the list of siteID's for which the entries are required.
TransformationCatalogEntry objects. Returns null in case
of no entry being found.
public boolean setSiteTCEntries(String fqlfn,
String siteid,
TransformationCatalogEntry entry)
fqlfn - String The fully qualified logical transformationsiteid - String The site for which the TransformationCatalogEntry is validentry - TransformationCatalogEntry The Transformation CatalogEntry object to be added.
public String toString()
toString in class Objectpublic String toString(String lfn)
lfn - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||