Java Doc for TransformationCatalog.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » common » catalog » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » pegasus 2.1.0 » org.griphyn.common.catalog 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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
 booleanaddTCEntry(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.
 booleanaddTCEntry(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.
 booleanaddTCEntry(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.
 booleanaddTCEntry(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.
 booleanaddTCLfnProfile(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.
 booleanaddTCPfnProfile(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.
 booleandeleteTC()
     Deletes the entire transformation catalog.
 booleandeleteTCLfnProfile(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.
 booleandeleteTCPfnProfile(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.
 booleandeleteTCbyLogicalName(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.
 booleandeleteTCbyPhysicalName(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.
 booleandeleteTCbyResourceId(String resourceid)
     Delete all entries on a particular resource from the transformation catalog.
 booleandeleteTCbySysInfo(SysInfo sysinfo)
     Deletes entries from the catalog which have a particular system information.
 booleandeleteTCbyType(TCType type, String resourceid)
    
 ListgetTC()
    
 ListgetTCEntries(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.
 ListgetTCEntries(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.
 ListgetTCLfnProfiles(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.
 ListgetTCLogicalNames(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.
 StringgetTCMode()
    
 ListgetTCPfnProfiles(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.
 ListgetTCPhysicalNames(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.
 ListgetTCResourceIds(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.



Method Detail
addTCEntry
boolean addTCEntry(List tcentry) throws Exception(Code)
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. Exception is thrown when error occurs.
See Also:   org.griphyn.common.catalog.TransformationCatalogEntry



addTCEntry
boolean addTCEntry(TransformationCatalogEntry tcentry) throws Exception(Code)
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. Exception is thrown when error occurs.
See Also:   org.griphyn.common.catalog.TransformationCatalogEntry



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



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.