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


java.lang.Object
   org.griphyn.common.catalog.replica.Windward

Windward
public class Windward implements ReplicaCatalog(Code)
An implementation of the Replica Catalog interface that talks to Windward Data Characterization Catalog.
author:
   Karan Vahi
version:
   $Revision: 439 $


Field Summary
final public static  StringDATA_AVAILABILITY_KEY
     The availability time attribute key, that designates how soon the data will be available.
final public static  StringDATA_CHARACTERIZATION_IMPL_PROPERTY
     The property that designates which data characterization catalog impl to pick up.
protected  LogManagermLogger
     The handle to the log manager.

Constructor Summary
public  Windward()
     The default constructor.

Method Summary
public  intclear()
     Removes everything.
public  voidclose()
     Explicitely free resources before the garbage collection hits.
public  booleanconnect(Properties props)
     Establishes a link between the implementation and the thing the implementation is build upon.
Parameters:
  props - contains all necessary data to establish the link.
public static  ReplicaCatalogEntryconvertToRCE(DataSourceLocationObject ds)
     Converts a DataSourceLocationObject to ReplicaCatalogEntry.
Parameters:
  ds - the DataSourceLocation to be converted.
public  intdelete(String lfn, String name, Object value)
     Deletes all PFN entries for a given LFN from the replica catalog where the PFN attribute is found, and matches exactly the object value. The SR DC API does not support removes or deletes.
public  intdelete(String lfn, ReplicaCatalogEntry tuple)
     Deletes a very specific mapping from the replica catalog. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  lfn - is the logical filename in the tuple.
Parameters:
  tuple - is a description of the PFN and its attributes.
public  intdelete(Map x, boolean matchAttributes)
     Deletes multiple mappings into the replica catalog. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  x - is a map from logical filename string to list of replicacatalog entries.
Parameters:
  matchAttributes - whether mapping should be deleted only if allattributes match.
public  intdelete(String lfn, String pfn)
     Deletes a specific mapping from the replica catalog. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  lfn - is the logical filename in the tuple.
Parameters:
  pfn - is the physical filename in the tuple.
public  intdeleteByResource(String lfn, String handle)
     Deletes all PFN entries for a given LFN from the replica catalog where the resource handle is found.
public  intinsert(String lfn, String pfn, String handle)
     Inserts a new mapping into the replica catalog.
Parameters:
  lfn - is the logical filename under which to book the entry.
Parameters:
  pfn - is the physical filename associated with it.
Parameters:
  handle - is a resource handle where the PFN resides.
public  intinsert(String lfn, ReplicaCatalogEntry tuple)
     Inserts a new mapping into the replica catalog. For the time being only the pfn and site attribute are registered.
Parameters:
  lfn - is the logical filename under which to book the entry.
Parameters:
  tuple - is the physical filename and associated PFN attributes.
public  intinsert(Map x)
     Inserts multiple mappings into the replica catalog. For the time being only the pfn and site attribute are registered for each entry.
Parameters:
  x - is a map from logical filename string to list of replicacatalog entries.
public  booleanisClosed()
     Predicate to check, if the connection with the catalog's implementation is still active.
public  Setlist(String constraint)
     Lists a subset of all logical filenames in the catalog.
Parameters:
  constraint - is a constraint for the logical filename only.
public  Setlist()
     Lists all logical filenames in the catalog.
public  Stringlookup(String lfn, String handle)
     Retrieves the entry for a given filename and resource handle from the replica catalog.
Parameters:
  lfn - is the logical filename to obtain information for.
Parameters:
  handle - is the resource handle to obtain entries for.
public  Collectionlookup(String lfn)
     Retrieves all entries for a given LFN from the replica catalog. For the time being only the pfn and site attribute are retrieved for the lfn.
Parameters:
  lfn - is the logical filename to obtain information for.
public  Maplookup(Set lfns, String handle)
     Retrieves multiple entries for a given logical filename, up to the complete catalog.
public  Maplookup(Map constraints)
     Retrieves multiple entries for a given logical filename, up to the complete catalog.
Parameters:
  constraints - is mapping of keys 'lfn', 'pfn', or any attributename, e.g.
public  Maplookup(Set lfns)
     Retrieves multiple entries for a given logical filename, up to the complete catalog.
public  SetlookupNoAttributes(String lfn)
     Retrieves all entries for a given LFN from the replica catalog.
Parameters:
  lfn - is the logical filename to obtain information for.
public  MaplookupNoAttributes(Set lfns)
     Retrieves multiple entries for a given logical filename, up to the complete catalog.
Parameters:
  lfns - is a set of logical filename strings to look up.
public  MaplookupNoAttributes(Set lfns, String handle)
     Retrieves multiple entries for a given logical filename, up to the complete catalog.
Parameters:
  lfns - is a set of logical filename strings to look up.
Parameters:
  handle - is the resource handle, restricting the LFNs.
public  intremove(String lfn)
     Removes all mappings for an LFN from the replica catalog.
Parameters:
  lfn - is the logical filename to remove all mappings for.
public  intremove(Set lfns)
     Removes all mappings for a set of LFNs. The SR DC API does not support removes or deletes.
public  intremoveByAttribute(String name, Object value)
     Removes all entries from the replica catalog where the PFN attribute is found, and matches exactly the object value. The SR DC API does not support removes or deletes.
public  intremoveByAttribute(String handle)
     Removes all entries associated with a particular resource handle. The SR DC API does not support removes or deletes.

Field Detail
DATA_AVAILABILITY_KEY
final public static String DATA_AVAILABILITY_KEY(Code)
The availability time attribute key, that designates how soon the data will be available.



DATA_CHARACTERIZATION_IMPL_PROPERTY
final public static String DATA_CHARACTERIZATION_IMPL_PROPERTY(Code)
The property that designates which data characterization catalog impl to pick up.



mLogger
protected LogManager mLogger(Code)
The handle to the log manager.




Constructor Detail
Windward
public Windward()(Code)
The default constructor.




Method Detail
clear
public int clear()(Code)
Removes everything. The SR DC API does not support removes or deletes. Always returns 0. the number of removed entries.



close
public void close()(Code)
Explicitely free resources before the garbage collection hits.



connect
public boolean connect(Properties props)(Code)
Establishes a link between the implementation and the thing the implementation is build upon.
Parameters:
  props - contains all necessary data to establish the link. true if connected now, or false to indicate a failure.



convertToRCE
public static ReplicaCatalogEntry convertToRCE(DataSourceLocationObject ds)(Code)
Converts a DataSourceLocationObject to ReplicaCatalogEntry.
Parameters:
  ds - the DataSourceLocation to be converted. ReplicaCatalogEntry



delete
public int delete(String lfn, String name, Object value)(Code)
Deletes all PFN entries for a given LFN from the replica catalog where the PFN attribute is found, and matches exactly the object value. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  lfn - is the logical filename to look for.
Parameters:
  name - is the PFN attribute name to look for.
Parameters:
  value - is an exact match of the attribute value to match. the number of removed entries.



delete
public int delete(String lfn, ReplicaCatalogEntry tuple)(Code)
Deletes a very specific mapping from the replica catalog. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  lfn - is the logical filename in the tuple.
Parameters:
  tuple - is a description of the PFN and its attributes. the number of removed entries, either 0 or 1.



delete
public int delete(Map x, boolean matchAttributes)(Code)
Deletes multiple mappings into the replica catalog. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  x - is a map from logical filename string to list of replicacatalog entries.
Parameters:
  matchAttributes - whether mapping should be deleted only if allattributes match. the number of deletions.



delete
public int delete(String lfn, String pfn)(Code)
Deletes a specific mapping from the replica catalog. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  lfn - is the logical filename in the tuple.
Parameters:
  pfn - is the physical filename in the tuple. the number of removed entries.



deleteByResource
public int deleteByResource(String lfn, String handle)(Code)
Deletes all PFN entries for a given LFN from the replica catalog where the resource handle is found. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  lfn - is the logical filename to look for.
Parameters:
  handle - is the resource handle the number of entries removed.



insert
public int insert(String lfn, String pfn, String handle)(Code)
Inserts a new mapping into the replica catalog.
Parameters:
  lfn - is the logical filename under which to book the entry.
Parameters:
  pfn - is the physical filename associated with it.
Parameters:
  handle - is a resource handle where the PFN resides. number of insertions, should always be 1. On failure, throwan exception, don't use zero.



insert
public int insert(String lfn, ReplicaCatalogEntry tuple)(Code)
Inserts a new mapping into the replica catalog. For the time being only the pfn and site attribute are registered.
Parameters:
  lfn - is the logical filename under which to book the entry.
Parameters:
  tuple - is the physical filename and associated PFN attributes. number of insertions, should always be 1. On failure, throwan exception, don't use zero.



insert
public int insert(Map x)(Code)
Inserts multiple mappings into the replica catalog. For the time being only the pfn and site attribute are registered for each entry.
Parameters:
  x - is a map from logical filename string to list of replicacatalog entries. the number of insertions.



isClosed
public boolean isClosed()(Code)
Predicate to check, if the connection with the catalog's implementation is still active. true, if the implementation is disassociated, false otherwise.



list
public Set list(String constraint)(Code)
Lists a subset of all logical filenames in the catalog.
Parameters:
  constraint - is a constraint for the logical filename only. Itis a string that has some meaning to the implementing system. Thiscan be a SQL wildcard for queries, or a regular expression forJava-based memory collections. A set of logical filenames that match. The set may be empty
throws:
  UnsupportedOperationException -



list
public Set list()(Code)
Lists all logical filenames in the catalog. A set of all logical filenames known to the catalog.
throws:
  UnsupportedOperationException -



lookup
public String lookup(String lfn, String handle)(Code)
Retrieves the entry for a given filename and resource handle from the replica catalog.
Parameters:
  lfn - is the logical filename to obtain information for.
Parameters:
  handle - is the resource handle to obtain entries for. the (first) matching physical filename, or nullif no match was found.



lookup
public Collection lookup(String lfn)(Code)
Retrieves all entries for a given LFN from the replica catalog. For the time being only the pfn and site attribute are retrieved for the lfn.
Parameters:
  lfn - is the logical filename to obtain information for. a collection of replica catalog entries



lookup
public Map lookup(Set lfns, String handle)(Code)
Retrieves multiple entries for a given logical filename, up to the complete catalog. For the time being only the pfn and site attribute are retrieved for the lfn.
Parameters:
  lfns - is a set of logical filename strings to look up.
Parameters:
  handle - is the resource handle, restricting the LFNs. a map indexed by the LFN. Each value is a collection ofreplica catalog entries (all attributes).



lookup
public Map lookup(Map constraints)(Code)
Retrieves multiple entries for a given logical filename, up to the complete catalog.
Parameters:
  constraints - is mapping of keys 'lfn', 'pfn', or any attributename, e.g. the resource handle 'site', to a string that has somemeaning to the implementing system. This can be a SQL wildcard forqueries, or a regular expression for Java-based memory collections.Unknown keys are ignored. Using an empty map requests the completecatalog. a map indexed by the LFN. Each value is a collection ofreplica catalog entries. new UnsupportedOperationException( "Unsupported operation list( String )" );



lookup
public Map lookup(Set lfns)(Code)
Retrieves multiple entries for a given logical filename, up to the complete catalog. For the time being only the pfn and site attribute are retrieved for the lfn.
Parameters:
  lfns - is a set of logical filename strings to look up. a map indexed by the LFN. Each value is a collection ofreplica catalog entries for the LFN.



lookupNoAttributes
public Set lookupNoAttributes(String lfn)(Code)
Retrieves all entries for a given LFN from the replica catalog.
Parameters:
  lfn - is the logical filename to obtain information for. a set of PFN strings



lookupNoAttributes
public Map lookupNoAttributes(Set lfns)(Code)
Retrieves multiple entries for a given logical filename, up to the complete catalog.
Parameters:
  lfns - is a set of logical filename strings to look up. a map indexed by the LFN. Each value is a set of PFN strings.



lookupNoAttributes
public Map lookupNoAttributes(Set lfns, String handle)(Code)
Retrieves multiple entries for a given logical filename, up to the complete catalog.
Parameters:
  lfns - is a set of logical filename strings to look up.
Parameters:
  handle - is the resource handle, restricting the LFNs. a map indexed by the LFN. Each value is a set of physicalfilenames.



remove
public int remove(String lfn)(Code)
Removes all mappings for an LFN from the replica catalog.
Parameters:
  lfn - is the logical filename to remove all mappings for. the number of removed entries.



remove
public int remove(Set lfns)(Code)
Removes all mappings for a set of LFNs. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  lfns - is a set of logical filename to remove all mappings for. the number of removed entries.



removeByAttribute
public int removeByAttribute(String name, Object value)(Code)
Removes all entries from the replica catalog where the PFN attribute is found, and matches exactly the object value. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  name - is the PFN attribute name to look for.
Parameters:
  value - is an exact match of the attribute value to match. the number of removed entries.



removeByAttribute
public int removeByAttribute(String handle)(Code)
Removes all entries associated with a particular resource handle. The SR DC API does not support removes or deletes. Always returns 0.
Parameters:
  handle - is the site handle to remove all entries for. the number of removed entries.



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.