| org.griphyn.common.catalog.TransformationCatalog
All known Subclasses: org.griphyn.common.catalog.transformation.Windward, org.griphyn.common.catalog.transformation.File, org.griphyn.common.catalog.transformation.Database,
TransformationCatalog | public interface TransformationCatalog extends org.griphyn.common.catalog.Catalog(Code) | | This class is an interface to the various TxCatalog implementations that Pegasus will use.
It defines the basic functionality for interfacing with various transformation Catalogs
It defines api's for the querying, adding and deleting transformation and associated mappings from the implementing Tx Catalog
By implementing this inteface a user can easily use his own TX Catalog with Pegasus.
author: Gaurang Mehta gmehta@isi.edu version: $Revision: 127 $ |
Method Summary | |
boolean | addTCEntry(List tcentry) Add multiple TCEntries to the Catalog.
Parameters: tcentry - List Takes a list of TransformationCatalogEntry objects as input throws: Exception - boolean Return true if succesful, false if error. | boolean | addTCEntry(TransformationCatalogEntry tcentry) Add single TCEntry to the Catalog.
Parameters: tcentry - Takes a single TransformationCatalogEntry object as input throws: Exception - boolean Return true if succesful, false if error. | boolean | addTCEntry(TransformationCatalogEntry tcentry, boolean write) Add single TCEntry object temporarily to the in memory Catalog.
This is a hack to get around for adding soft state entries to the TC
Parameters: tcentry - Takes a single TransformationCatalogEntry object as input Parameters: write - boolean enable write commits to backed catalog or not. throws: Exception - boolean Return true if succesful, false if error. | boolean | addTCEntry(String namespace, String name, String version, String physicalname, TCType type, String resourceid, List lfnprofiles, List pfnprofiles, SysInfo sysinfo) Add an single entry into the transformation catalog.
Parameters: namespace - String The namespace of the transformation to be added (Can be null) Parameters: name - String The name of the transformation to be added. Parameters: version - String The version of the transformation to be added. | boolean | addTCLfnProfile(String namespace, String name, String version, List profiles) Add additional profile to a logical transformation .
Parameters: namespace - String The nsamespace of the transformation to be added. | boolean | addTCPfnProfile(String pfn, TCType type, String resourcename, List profiles) Add additional profile to a physical transformation.
Parameters: pfn - String The physical name of the transformation Parameters: type - TCType The type of transformation that the profile is associated with. Parameters: resourcename - String The resource on which the physical transformation exists Parameters: profiles - List The List of Profile objects that are to be added to the transformation. | boolean | deleteTC() Deletes the entire transformation catalog. | boolean | deleteTCLfnProfile(String namespace, String name, String version, List profiles) Delete a list of profiles or all the profiles associated with a logical transformation.
Parameters: namespace - String The namespace of the logical transformation. Parameters: name - String The name of the logical transformation. Parameters: version - String The version of the logical transformation. Parameters: profiles - List The List of profiles to be deleted. | boolean | deleteTCPfnProfile(String physicalname, TCType type, String resourceid, List profiles) Delete a list of profiles or all the profiles associated with a pfn on a resource and of a type.
Parameters: physicalname - String The physical name of the transformation. Parameters: type - TCType The type of the transformation. Parameters: resourceid - String The resource of the transformation. Parameters: profiles - List The list of profiles to be deleted. | boolean | deleteTCbyLogicalName(String namespace, String name, String version, String resourceid, TCType type) Delete all entries in the transformation catalog for a give logical tranformation and/or on a resource and/or of
a particular type
Parameters: namespace - String The namespace of the transformation to be added. | boolean | deleteTCbyPhysicalName(String physicalname, String namespace, String name, String version, String resourceid, TCType type) Delete all entries in the transformation catalog for pair of logical and physical transformation.
Parameters: physicalname - String The physical name of the transformation Parameters: namespace - String The namespace assocaited in the logical name of the transformation. Parameters: name - String The name of the logical transformation. Parameters: version - String The version number of the logical transformation. Parameters: resourceid - String The resource on which the transformation is to be deleted.If NULL then it searches all the resource id. Parameters: type - TCType The type of transformation. | boolean | deleteTCbyResourceId(String resourceid) Delete all entries on a particular resource from the transformation catalog. | boolean | deleteTCbySysInfo(SysInfo sysinfo) Deletes entries from the catalog which have a particular system information. | boolean | deleteTCbyType(TCType type, String resourceid) | List | getTC() | List | getTCEntries(String namespace, String name, String version, String resourceid, TCType type) Returns TC entries for a particular logical transformation and/or on a particular resource and/or of a particular type.
Parameters: namespace - String The namespace of the logical transformation. Parameters: name - String the name of the logical transformation. Parameters: version - String The version of the logical transformation. Parameters: resourceid - String The resourceid where the transformation is located. | List | getTCEntries(String namespace, String name, String version, List resourceids, TCType type) Returns TC entries for a particular logical transformation and/or on a number of resources and/or of a particular type.
Parameters: namespace - String The namespace of the logical transformation. Parameters: name - String the name of the logical transformation. Parameters: version - String The version of the logical transformation. Parameters: resourceids - List The List resourceid where the transformation is located. | List | getTCLfnProfiles(String namespace, String name, String version) Get the list of Profiles associated with a particular logical transformation.
Parameters: namespace - String The namespace of the transformation to search for. Parameters: name - String The name of the transformation to search for. Parameters: version - String The version of the transformation to search for. | List | getTCLogicalNames(String resourceid, TCType type) Get the list of LogicalNames available on a particular resource.
Parameters: resourceid - String The id of the resource on which you want to search Parameters: type - TCType The type of the transformation to search for. | String | getTCMode() | List | getTCPfnProfiles(String pfn, String resourceid, TCType type) Get the list of Profiles associated with a particular physical transformation.
Parameters: pfn - The physical file name to search the transformation by. Parameters: resourceid - String The id of the resource on which you want to search. Parameters: type - TCType The type of the transformation to search for. | List | getTCPhysicalNames(String namespace, String name, String version, String resourceid, TCType type) Get the list of PhysicalNames for a particular transformation on a site/sites for a particular type/types;
Parameters: namespace - String The namespace of the transformation to search for. Parameters: name - String The name of the transformation to search for. Parameters: version - String The version of the transformation to search for. Parameters: resourceid - String The id of the resource on which you want to search. | List | getTCResourceIds(String namespace, String name, String version, TCType type) Get the list of Resource ID's where a particular transformation may reside.
Parameters: namespace - String The namespace of the transformation to search for. Parameters: name - String The name of the transformation to search for. Parameters: version - String The version of the transformation to search for. Parameters: type - TCType The type of the transformation to search for. (Enumerated type includes SOURCE, STATIC-BINARY, DYNAMIC-BINARY, PACMAN, INSTALLED, SCRIPT) If NULL it returns all types. |
addTCEntry | boolean addTCEntry(TransformationCatalogEntry tcentry, boolean write) throws Exception(Code) | | Add single TCEntry object temporarily to the in memory Catalog.
This is a hack to get around for adding soft state entries to the TC
Parameters: tcentry - Takes a single TransformationCatalogEntry object as input Parameters: write - boolean enable write commits to backed catalog or not. throws: Exception - boolean Return true if succesful, false if error. Exception is thrown when error occurs. See Also: org.griphyn.common.catalog.TransformationCatalogEntry |
addTCEntry | boolean addTCEntry(String namespace, String name, String version, String physicalname, TCType type, String resourceid, List lfnprofiles, List pfnprofiles, SysInfo sysinfo) throws Exception(Code) | | Add an single entry into the transformation catalog.
Parameters: namespace - String The namespace of the transformation to be added (Can be null) Parameters: name - String The name of the transformation to be added. Parameters: version - String The version of the transformation to be added. (Can be null) Parameters: physicalname - String The physical name/location of the transformation to be added. Parameters: type - TCType The type of the physical transformation. Parameters: resourceid - String The resource location id where the transformation is located. Parameters: lfnprofiles - List The List of Profile objects associated with a Logical Transformation. (can be null) Parameters: pfnprofiles - List The List of Profile objects associated with a Physical Transformation. (can be null) Parameters: sysinfo - SysInfo The System information associated with a physical transformation. throws: Exception - boolean Returns true if succesfully added, returns false if error and throws exception. See Also: org.griphyn.common.catalog.TransformationCatalogEntry See Also: org.griphyn.common.classes.SysInfo See Also: org.griphyn.cPlanner.classes.Profile |
addTCLfnProfile | boolean addTCLfnProfile(String namespace, String name, String version, List profiles) throws Exception(Code) | | Add additional profile to a logical transformation .
Parameters: namespace - String The nsamespace of the transformation to be added. (can be null) Parameters: name - String The name of the transformation to be added. Parameters: version - String The version of the transformation to be added. (can be null) Parameters: profiles - List The List of Profile objects that are to be added to the transformation. boolean Returns true if success, false if error. throws: Exception - See Also: org.griphyn.cPlanner.classes.Profile |
addTCPfnProfile | boolean addTCPfnProfile(String pfn, TCType type, String resourcename, List profiles) throws Exception(Code) | | Add additional profile to a physical transformation.
Parameters: pfn - String The physical name of the transformation Parameters: type - TCType The type of transformation that the profile is associated with. Parameters: resourcename - String The resource on which the physical transformation exists Parameters: profiles - List The List of Profile objects that are to be added to the transformation. boolean Returns true for success, false for error. throws: Exception - See Also: org.griphyn.cPlanner.classes.Profile |
deleteTC | boolean deleteTC() throws Exception(Code) | | Deletes the entire transformation catalog. CLEAN............. USE WITH CAUTION.
boolean Returns true if delete succeeds, false if any error occurs. throws: Exception - |
deleteTCLfnProfile | boolean deleteTCLfnProfile(String namespace, String name, String version, List profiles) throws Exception(Code) | | Delete a list of profiles or all the profiles associated with a logical transformation.
Parameters: namespace - String The namespace of the logical transformation. Parameters: name - String The name of the logical transformation. Parameters: version - String The version of the logical transformation. Parameters: profiles - List The List of profiles to be deleted. If NULL then all profiles for the logical transformation are deleted. boolean Returns true if success, false if any error occurs. See Also: org.griphyn.cPlanner.classes.Profile throws: Exception - |
deleteTCPfnProfile | boolean deleteTCPfnProfile(String physicalname, TCType type, String resourceid, List profiles) throws Exception(Code) | | Delete a list of profiles or all the profiles associated with a pfn on a resource and of a type.
Parameters: physicalname - String The physical name of the transformation. Parameters: type - TCType The type of the transformation. Parameters: resourceid - String The resource of the transformation. Parameters: profiles - List The list of profiles to be deleted. If NULL then all profiles for that pfn+resource+type are deleted. boolean Returns true if success, false if any error occurs. See Also: org.griphyn.cPlanner.classes.Profile throws: Exception - |
deleteTCbyLogicalName | boolean deleteTCbyLogicalName(String namespace, String name, String version, String resourceid, TCType type) throws Exception(Code) | | Delete all entries in the transformation catalog for a give logical tranformation and/or on a resource and/or of
a particular type
Parameters: namespace - String The namespace of the transformation to be added. (can be null) Parameters: name - String The name of the transformation to be added. Parameters: version - String The version of the transformation to be added. ( can be null) Parameters: resourceid - String The resource id for which the transformation is to be deleted.If NULL then transformation on all resource are deleted Parameters: type - TCType The type of the transformation. If NULL then all types are deleted for the transformation. throws: Exception - boolean Returns true if success , false if there is any error. See Also: org.griphyn.common.classes.TCType |
deleteTCbyPhysicalName | boolean deleteTCbyPhysicalName(String physicalname, String namespace, String name, String version, String resourceid, TCType type) throws Exception(Code) | | Delete all entries in the transformation catalog for pair of logical and physical transformation.
Parameters: physicalname - String The physical name of the transformation Parameters: namespace - String The namespace assocaited in the logical name of the transformation. Parameters: name - String The name of the logical transformation. Parameters: version - String The version number of the logical transformation. Parameters: resourceid - String The resource on which the transformation is to be deleted.If NULL then it searches all the resource id. Parameters: type - TCType The type of transformation. If NULL then it search and deletes entries for all types. throws: Exception - boolean Returns true if sucess, false if any error occurs. See Also: org.griphyn.common.classes.TCType |
deleteTCbyResourceId | boolean deleteTCbyResourceId(String resourceid) throws Exception(Code) | | Delete all entries on a particular resource from the transformation catalog.
Parameters: resourceid - String The resource which you want to remove. throws: Exception - boolean Returns true if successm false if any error occurs. |
deleteTCbySysInfo | boolean deleteTCbySysInfo(SysInfo sysinfo) throws Exception(Code) | | Deletes entries from the catalog which have a particular system information.
Parameters: sysinfo - SysInfo The System Information by which you want to delete boolean Returns true for success, false if any error occurs. See Also: org.griphyn.common.classes.SysInfo throws: Exception - |
deleteTCbyType | boolean deleteTCbyType(TCType type, String resourceid) throws Exception(Code) | | Delete a paricular type of transformation, and/or on a particular resource
Parameters: type - TCType The type of the transformation Parameters: resourceid - String The resource on which the transformation exists.If NULL then that type of transformation is deleted from all the resources. throws: Exception - boolean Returns true if success, false if any error occurs. See Also: org.griphyn.common.classes.TCType |
getTC | List getTC() throws Exception(Code) | | List all the contents of the TC
List Returns a List of TransformationCatalogEntry objects. throws: Exception - |
getTCEntries | List getTCEntries(String namespace, String name, String version, String resourceid, TCType type) throws Exception(Code) | | Returns TC entries for a particular logical transformation and/or on a particular resource and/or of a particular type.
Parameters: namespace - String The namespace of the logical transformation. Parameters: name - String the name of the logical transformation. Parameters: version - String The version of the logical transformation. Parameters: resourceid - String The resourceid where the transformation is located. If NULL it returns all resources. Parameters: type - TCType The type of the transformation to search for. If NULL it returns all types. List Returns a list of TransformationCatalogEntry objects containing the corresponding entries from the TC. Returns null if no entry found. throws: Exception - See Also: org.griphyn.common.classes.TCType See Also: org.griphyn.common.catalog.TransformationCatalogEntry |
getTCEntries | List getTCEntries(String namespace, String name, String version, List resourceids, TCType type) throws Exception(Code) | | Returns TC entries for a particular logical transformation and/or on a number of resources and/or of a particular type.
Parameters: namespace - String The namespace of the logical transformation. Parameters: name - String the name of the logical transformation. Parameters: version - String The version of the logical transformation. Parameters: resourceids - List The List resourceid where the transformation is located. If NULL it returns all resources. Parameters: type - TCType The type of the transformation to search for. If NULL it returns all types. List Returns a list of TransformationCatalogEntry objects containing the corresponding entries from the TC. Returns null if no entry found. throws: Exception - See Also: org.griphyn.common.classes.TCType See Also: org.griphyn.common.catalog.TransformationCatalogEntry |
getTCLfnProfiles | List getTCLfnProfiles(String namespace, String name, String version) throws Exception(Code) | | Get the list of Profiles associated with a particular logical transformation.
Parameters: namespace - String The namespace of the transformation to search for. Parameters: name - String The name of the transformation to search for. Parameters: version - String The version of the transformation to search for. List Returns a list of Profile Objects containing profiles assocaited with the transformation.Returns NULL if no profiles found. throws: Exception - NotImplementedException if not implemented. See Also: org.griphyn.cPlanner.classes.Profile |
getTCLogicalNames | List getTCLogicalNames(String resourceid, TCType type) throws Exception(Code) | | Get the list of LogicalNames available on a particular resource.
Parameters: resourceid - String The id of the resource on which you want to search Parameters: type - TCType The type of the transformation to search for. (Enumerated type includes source, binary, dynamic-binary, pacman, installed) If NULL then return logical name for all types. List Returns a list of String Arrays.Each array contains the resourceid, logical transformationin the format namespace::name:version and type.The last entry in the list is an array of integers specifying the column length for pretty print.Returns NULL if no results found. throws: Exception - NotImplementedException if not implemented. |
getTCMode | String getTCMode()(Code) | | Returns the TC implementation being used
String |
getTCPfnProfiles | List getTCPfnProfiles(String pfn, String resourceid, TCType type) throws Exception(Code) | | Get the list of Profiles associated with a particular physical transformation.
Parameters: pfn - The physical file name to search the transformation by. Parameters: resourceid - String The id of the resource on which you want to search. Parameters: type - TCType The type of the transformation to search for. (Enumerated type includes source, binary, dynamic-binary, pacman, installed)
throws: Exception - NotImplementedException if not implemented. List Returns a list of Profile Objects containing profiles assocaited with the transformation.Returns NULL if no profiless found. See Also: org.griphyn.cPlanner.classes.Profile |
getTCPhysicalNames | List getTCPhysicalNames(String namespace, String name, String version, String resourceid, TCType type) throws Exception(Code) | | Get the list of PhysicalNames for a particular transformation on a site/sites for a particular type/types;
Parameters: namespace - String The namespace of the transformation to search for. Parameters: name - String The name of the transformation to search for. Parameters: version - String The version of the transformation to search for. Parameters: resourceid - String The id of the resource on which you want to search. If NULL then returns entries on all resources Parameters: type - TCType The type of the transformation to search for. (Enumerated type includes source, binary, dynamic-binary, pacman, installed) If NULL then returns entries of all types. List Returns a list of String Arrays.Each array contains the resourceid, the physical transformation, the type of the tr and the systeminfo.The last entry in the List is a int array containing the column lengths for pretty print.Returns NULL if no results found. throws: Exception - NotImplementedException if not implemented. See Also: org.griphyn.common.classes.TCType See Also: org.griphyn.common.classes.SysInfo |
getTCResourceIds | List getTCResourceIds(String namespace, String name, String version, TCType type) throws Exception(Code) | | Get the list of Resource ID's where a particular transformation may reside.
Parameters: namespace - String The namespace of the transformation to search for. Parameters: name - String The name of the transformation to search for. Parameters: version - String The version of the transformation to search for. Parameters: type - TCType The type of the transformation to search for. (Enumerated type includes SOURCE, STATIC-BINARY, DYNAMIC-BINARY, PACMAN, INSTALLED, SCRIPT) If NULL it returns all types. List Returns a list of Resource Id's as strings. Returns NULL if no results found. throws: Exception - NotImplementedException if not implemented See Also: org.griphyn.common.classes.TCType |
|
|