Java Doc for ReplicaCatalogBridge.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » cPlanner » engine » 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.cPlanner.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.griphyn.cPlanner.engine.Engine
      org.griphyn.cPlanner.engine.ReplicaCatalogBridge

ReplicaCatalogBridge
public class ReplicaCatalogBridge extends Engine (Code)
This coordinates the look up to the Replica Location Service, to determine the logical to physical mappings.
author:
   Karan Vahi
author:
   Gaurang Mehta
version:
   $Revision: 456 $


Field Summary
final public static  StringCACHE_REPLICA_CATALOG_IMPLEMENTER
     The name of the Replica Catalog Implementer that serves as the source for cache files.
final public static  StringCACHE_REPLICA_CATALOG_KEY
    
final public static  StringRC_DERIVATION_NAME
     The derivation name for the transfer jobs.
final public static  StringRC_DERIVATION_NS
     The derivation namespace for the transfer jobs.
final public static  StringRC_DERIVATION_VERSION
     The version number for the derivations for registration jobs.
final public static  StringRC_TRANSFORMATION_NAME
     The logical name of the transformation used.
final public static  StringRC_TRANSFORMATION_NS
     The transformation namespace for the regostration jobs.
final public static  StringRC_TRANSFORMATION_VERSION
     The logical name of the transformation used.
final public static  StringREPLICA_CATALOG_URL_KEY
     The name of the URL key for the replica catalog impelementer to be picked up.
protected  SetmSearchFiles
     The Vector of String objects containing the logical filenames of the files whose locations are to be searched in the Replica Catalog.

Constructor Summary
public  ReplicaCatalogBridge(ADag dag, PegasusProperties properties, PlannerOptions options)
     The overloaded constructor.

Method Summary
protected  voidappendProperty(StringBuffer sb, String key, String value)
     Appends a property to the StringBuffer, in the java command line format.
public  voidcloseConnection()
     To close the connection to replica services.
public  voidfinalize()
     Closes the connection to the rli.
protected  StringgetCommandLineProperties(PegasusProperties properties)
     Returns the properties that need to be passed to the the rc-client invocation on the command line .
public  ReplicaLocationgetFileLocs(String lfn)
     Returns all the locations as returned from the Replica Lookup Mechanism.
Parameters:
  lfn - The name of the logical file whose PFN mappings arerequired.
public  SetgetFilesInReplica()
     This returns the files for which mappings exist in the Replica Catalog.
public  voidinitialize(ADag dag, PegasusProperties properties, PlannerOptions options)
     Intialises the refiner.
public  SubInfomakeRCRegNode(String regJobName, SubInfo job, Collection files)
     It constructs the SubInfo object for the registration node, which registers the materialized files on the output pool in the RLS. Note that the relations corresponding to this node should already have been added to the concerned DagInfo object.
Parameters:
  regJobName - The name of the job which registers the files in theReplica Location Service.
Parameters:
  job - The job whose output files are to be registered inthe Replica Location Service.
Parameters:
  files - Collection of FileTransfer objectscontaining the information about source anddestination URLs.

Field Detail
CACHE_REPLICA_CATALOG_IMPLEMENTER
final public static String CACHE_REPLICA_CATALOG_IMPLEMENTER(Code)
The name of the Replica Catalog Implementer that serves as the source for cache files.



CACHE_REPLICA_CATALOG_KEY
final public static String CACHE_REPLICA_CATALOG_KEY(Code)
The name of the source key for Replica Catalog Implementer that serves as cache



RC_DERIVATION_NAME
final public static String RC_DERIVATION_NAME(Code)
The derivation name for the transfer jobs.



RC_DERIVATION_NS
final public static String RC_DERIVATION_NS(Code)
The derivation namespace for the transfer jobs.



RC_DERIVATION_VERSION
final public static String RC_DERIVATION_VERSION(Code)
The version number for the derivations for registration jobs.



RC_TRANSFORMATION_NAME
final public static String RC_TRANSFORMATION_NAME(Code)
The logical name of the transformation used.



RC_TRANSFORMATION_NS
final public static String RC_TRANSFORMATION_NS(Code)
The transformation namespace for the regostration jobs.



RC_TRANSFORMATION_VERSION
final public static String RC_TRANSFORMATION_VERSION(Code)
The logical name of the transformation used.



REPLICA_CATALOG_URL_KEY
final public static String REPLICA_CATALOG_URL_KEY(Code)
The name of the URL key for the replica catalog impelementer to be picked up.



mSearchFiles
protected Set mSearchFiles(Code)
The Vector of String objects containing the logical filenames of the files whose locations are to be searched in the Replica Catalog.




Constructor Detail
ReplicaCatalogBridge
public ReplicaCatalogBridge(ADag dag, PegasusProperties properties, PlannerOptions options)(Code)
The overloaded constructor.
Parameters:
  dag - the workflow that is being worked on.
Parameters:
  properties - the properties passed to the planner.
Parameters:
  options - the options passed to the planner at runtime.




Method Detail
appendProperty
protected void appendProperty(StringBuffer sb, String key, String value)(Code)
Appends a property to the StringBuffer, in the java command line format.
Parameters:
  sb - the StringBuffer to append the property to.
Parameters:
  key - the property.
Parameters:
  value - the property value.



closeConnection
public void closeConnection()(Code)
To close the connection to replica services. This must be defined in the case where one has not done a singleton implementation. In other cases just do an empty implementation of this method.



finalize
public void finalize()(Code)
Closes the connection to the rli.



getCommandLineProperties
protected String getCommandLineProperties(PegasusProperties properties)(Code)
Returns the properties that need to be passed to the the rc-client invocation on the command line . It is of the form "-Dprop1=value1 -Dprop2=value2 .."
Parameters:
  properties - the properties object the properties list, else empty string.



getFileLocs
public ReplicaLocation getFileLocs(String lfn)(Code)
Returns all the locations as returned from the Replica Lookup Mechanism.
Parameters:
  lfn - The name of the logical file whose PFN mappings arerequired. ReplicaLocation containing all the locations for that LFN
See Also:   org.griphyn.cPlanner.classes.ReplicaLocation



getFilesInReplica
public Set getFilesInReplica()(Code)
This returns the files for which mappings exist in the Replica Catalog. This should return a subset of the files which are specified in the mSearchFiles, while getting an instance to this. a Set of logical file names as String objects, forwhich logical to physical mapping exists.
See Also:   ReplicaCatalogBridge.mSearchFiles



initialize
public void initialize(ADag dag, PegasusProperties properties, PlannerOptions options)(Code)
Intialises the refiner.
Parameters:
  dag - the workflow that is being worked on.
Parameters:
  properties - the properties passed to the planner.
Parameters:
  options - the options passed to the planner at runtime.



makeRCRegNode
public SubInfo makeRCRegNode(String regJobName, SubInfo job, Collection files)(Code)
It constructs the SubInfo object for the registration node, which registers the materialized files on the output pool in the RLS. Note that the relations corresponding to this node should already have been added to the concerned DagInfo object.
Parameters:
  regJobName - The name of the job which registers the files in theReplica Location Service.
Parameters:
  job - The job whose output files are to be registered inthe Replica Location Service.
Parameters:
  files - Collection of FileTransfer objectscontaining the information about source anddestination URLs. The destinationURLs would be our PFNs. SubInfo corresponding to the new registration node.



Fields inherited from org.griphyn.cPlanner.engine.Engine
final public static String REGISTRATION_UNIVERSE(Code)(Java Doc)
final public static String TRANSFER_UNIVERSE(Code)(Java Doc)
protected String mLogMsg(Code)(Java Doc)
protected LogManager mLogger(Code)(Java Doc)
protected static String mOutputPool(Code)(Java Doc)
protected PlannerOptions mPOptions(Code)(Java Doc)
protected String mPoolClass(Code)(Java Doc)
protected String mPoolFile(Code)(Java Doc)
protected PoolInfoProvider mPoolHandle(Code)(Java Doc)
protected PegasusProperties mProps(Code)(Java Doc)
protected String mRLIUrl(Code)(Java Doc)
protected String mTCFile(Code)(Java Doc)
protected TransformationCatalog mTCHandle(Code)(Java Doc)
protected String mTCMode(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.engine.Engine
public Vector addVector(Vector from_vector, Vector to_vector)(Code)(Java Doc)
public void appendArrayList(ArrayList dest, ArrayList source)(Code)(Java Doc)
public void loadProperties()(Code)(Java Doc)
public void printVector(String heading, Vector vector)(Code)(Java Doc)
public boolean stringInList(String stringName, List list)(Code)(Java Doc)
public boolean stringInPegVector(String stringName, Vector vector)(Code)(Java Doc)
public boolean stringInVector(String stringName, Vector vector)(Code)(Java Doc)
public String vectorToString(String heading, Vector vector)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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