public class TCMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private LogManager |
mLogger |
private java.util.Map |
mTCMap
The TCMap for a dag is stored in this HashMap.
|
Constructor and Description |
---|
TCMap()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getSiteList(java.lang.String fqlfn)
Returns a List of siteid's that are valid for a particular lfn.
|
java.util.List |
getSiteList(java.lang.String fqlfn,
java.util.List sites)
Returns a list of siteid's that are valid for a particular lfn and
among a list of input sites
|
java.util.Map |
getSiteMap(java.lang.String fqlfn)
Returns a HashMap of sites as keys and a List of TransformationCatalogEntry object as values.
|
java.util.Map |
getSitesTCEntries(java.lang.String fqlfn,
java.util.List sites)
Retrieves all the entries matching a particular lfn for the sites
passed.
|
java.util.List |
getSiteTCEntries(java.lang.String fqlfn,
java.lang.String siteid)
This method returns a list of TransformationCatalogEntry objects
for a given transformation and siteid
|
boolean |
setSiteMap(java.lang.String fqlfn,
java.util.Map sitemap)
This method allows to associate a site map with a particular logical transformation
|
boolean |
setSiteTCEntries(java.lang.String fqlfn,
java.lang.String siteid,
TransformationCatalogEntry entry)
This method allows to add a TransformationCatalogEntry object in the map
to a particular transformation for a particular site
|
java.lang.String |
toString()
Returns the textual description of the contents of the object
|
java.lang.String |
toString(java.lang.String lfn)
Returns a textual description of the object.
|
private java.util.Map mTCMap
private LogManager mLogger
public java.util.Map getSiteMap(java.lang.String fqlfn)
fqlfn
- String The fully qualified logical transformation name for which you want the map.org.griphyn.common.catalog.TransformationCatalogEntry
public boolean setSiteMap(java.lang.String fqlfn, java.util.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 objectsorg.griphyn.common.catalog.TransformationCatalogEntry
public java.util.List getSiteList(java.lang.String fqlfn)
fqlfn
- Stringpublic java.util.List getSiteList(java.lang.String fqlfn, java.util.List sites)
fqlfn
- The logical name of the transformationsites
- The list of siteidspublic java.util.List getSiteTCEntries(java.lang.String fqlfn, java.lang.String siteid)
fqlfn
- String The fully qualified logical name of the transformationsiteid
- String The siteid for which the Entries are requiredpublic java.util.Map getSitesTCEntries(java.lang.String fqlfn, java.util.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(java.lang.String fqlfn, java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String lfn)
lfn
- String