| |
|
| java.lang.Object org.griphyn.cPlanner.classes.TCMap
TCMap | public class TCMap (Code) | | 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
author: Gaurang Mehta version: $Revision: 50 $ |
Constructor Summary | |
public | TCMap() Default constructor. |
Method Summary | |
public List | getSiteList(String fqlfn) Returns a List of siteid's that are valid for a particular lfn. | public List | getSiteList(String fqlfn, List sites) | public Map | getSiteMap(String fqlfn) Returns a HashMap of sites as keys and a List of TransformationCatalogEntry object as values.
Parameters: fqlfn - String The fully qualified logical transformation name for which you want the map. | public List | getSiteTCEntries(String fqlfn, String siteid) | public Map | getSitesTCEntries(String fqlfn, List sites) Retrieves all the entries matching a particular lfn for the sites
passed.
Parameters: fqlfn - the fully qualified logical name Parameters: sites - the list of siteID's for which the entries are required. | public boolean | setSiteMap(String fqlfn, Map sitemap) This method allows to associate a site map with a particular logical transformation
Parameters: fqlfn - String The transformation for which the sitemap is to be stored Parameters: sitemap - Map The sitemap that is to be stored. | public 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
Parameters: fqlfn - String The fully qualified logical transformation Parameters: siteid - String The site for which the TransformationCatalogEntry is valid Parameters: entry - TransformationCatalogEntry The Transformation CatalogEntry object to be added. | public String | toString() | public String | toString(String lfn) Returns a textual description of the object. |
TCMap | public TCMap()(Code) | | Default constructor. Initializes the tcmap to 10 lfns.
|
getSiteList | public List getSiteList(String fqlfn)(Code) | | Returns a List of siteid's that are valid for a particular lfn.
Parameters: fqlfn - String List |
getSiteList | public List getSiteList(String fqlfn, List sites)(Code) | | Returns a list of siteid's that are valid for a particular lfn and
among a list of input sites
Parameters: fqlfn - The logical name of the transformation Parameters: sites - The list of siteids the list of siteids which are valid. |
getSiteMap | public Map getSiteMap(String fqlfn)(Code) | | Returns a HashMap of sites as keys and a List of TransformationCatalogEntry object as values.
Parameters: fqlfn - String The fully qualified logical transformation name for which you want the map. Map Returns NULL if the transformation does not exist in the map. See Also: org.griphyn.common.catalog.TransformationCatalogEntry |
getSiteTCEntries | public List getSiteTCEntries(String fqlfn, String siteid)(Code) | | This method returns a list of TransformationCatalogEntry objects
for a given transformation and siteid
Parameters: fqlfn - String The fully qualified logical name of the transformation Parameters: siteid - String The siteid for which the Entries are required List returns NULL if no entries exist. |
getSitesTCEntries | public Map getSitesTCEntries(String fqlfn, List sites)(Code) | | Retrieves all the entries matching a particular lfn for the sites
passed.
Parameters: fqlfn - the fully qualified logical name Parameters: sites - the list of siteID's for which the entries are required. a map indexed by site names. Each value is a collection ofTransformationCatalogEntry objects. Returns null in caseof no entry being found. |
setSiteMap | public boolean setSiteMap(String fqlfn, Map sitemap)(Code) | | This method allows to associate a site map with a particular logical transformation
Parameters: fqlfn - String The transformation for which the sitemap is to be stored Parameters: sitemap - Map The sitemap that is to be stored. It is a hashmap with keyas the siteid and value as a list of TranformationCatalogEntry objects boolean See Also: org.griphyn.common.catalog.TransformationCatalogEntry |
setSiteTCEntries | public boolean setSiteTCEntries(String fqlfn, String siteid, TransformationCatalogEntry entry)(Code) | | This method allows to add a TransformationCatalogEntry object in the map
to a particular transformation for a particular site
Parameters: fqlfn - String The fully qualified logical transformation Parameters: siteid - String The site for which the TransformationCatalogEntry is valid Parameters: entry - TransformationCatalogEntry The Transformation CatalogEntry object to be added. boolean |
toString | public String toString()(Code) | | Returns the textual description of the contents of the object
String |
toString | public String toString(String lfn)(Code) | | Returns a textual description of the object.
Parameters: lfn - String the textual description. |
|
|
|