|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReplicaCatalog
This interface describes a minimum set of essential tasks required from a replica catalog. The method verbs have a steering meaning associated with them:
| Field Summary | |
|---|---|
static String |
BATCH_KEY
The suffix for the property that if set, specifies the size of the chunk in which the implementations handle multiple queries. |
static String |
c_prefix
Prefix for the property subset to use with this catalog. |
static String |
DB_PREFIX
The DB Driver properties prefix. |
| Fields inherited from interface edu.isi.pegasus.planner.catalog.Catalog |
|---|
DB_ALL_PREFIX |
| Method Summary | |
|---|---|
int |
clear()
Removes everything. |
int |
delete(Map x,
boolean matchAttributes)
Deletes multiple mappings into the replica catalog. |
int |
delete(String lfn,
ReplicaCatalogEntry tuple)
Deletes a very specific mapping from the replica catalog. |
int |
delete(String lfn,
String pfn)
Deletes a specific mapping from the replica catalog. |
int |
delete(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. |
int |
deleteByResource(String lfn,
String handle)
Deletes all PFN entries for a given LFN from the replica catalog where the resource handle is found. |
int |
insert(Map x)
Inserts multiple mappings into the replica catalog. |
int |
insert(String lfn,
ReplicaCatalogEntry tuple)
Inserts a new mapping into the replica catalog. |
int |
insert(String lfn,
String pfn,
String handle)
Inserts a new mapping into the replica catalog. |
Set |
list()
Lists all logical filenames in the catalog. |
Set |
list(String constraint)
Lists a subset of all logical filenames in the catalog. |
Map |
lookup(Map constraints)
Retrieves multiple entries for a given logical filename, up to the complete catalog. |
Map |
lookup(Set lfns)
Retrieves multiple entries for a given logical filename, up to the complete catalog. |
Map |
lookup(Set lfns,
String handle)
Retrieves multiple entries for a given logical filename, up to the complete catalog. |
Collection |
lookup(String lfn)
Retrieves all entries for a given LFN from the replica catalog. |
String |
lookup(String lfn,
String handle)
Retrieves the entry for a given filename and resource handle from the replica catalog. |
Map |
lookupNoAttributes(Set lfns)
Retrieves multiple entries for a given logical filename, up to the complete catalog. |
Map |
lookupNoAttributes(Set lfns,
String handle)
Retrieves multiple entries for a given logical filename, up to the complete catalog. |
Set |
lookupNoAttributes(String lfn)
Retrieves all entries for a given LFN from the replica catalog. |
int |
remove(Set lfns)
Removes all mappings for a set of LFNs. |
int |
remove(String lfn)
Removes all mappings for an LFN from the replica catalog. |
int |
removeByAttribute(String handle)
Removes all entries associated with a particular resource handle. |
int |
removeByAttribute(String name,
Object value)
Removes all entries from the replica catalog where the PFN attribute is found, and matches exactly the object value. |
| Methods inherited from interface edu.isi.pegasus.planner.catalog.Catalog |
|---|
close, connect, isClosed |
| Field Detail |
|---|
static final String c_prefix
static final String DB_PREFIX
static final String BATCH_KEY
| Method Detail |
|---|
String lookup(String lfn,
String handle)
lfn - is the logical filename to obtain information for.handle - is the resource handle to obtain entries for.
null if no match was found.Collection lookup(String lfn)
lfn - is the logical filename to obtain information for.
ReplicaCatalogEntrySet lookupNoAttributes(String lfn)
lfn - is the logical filename to obtain information for.
Map lookup(Set lfns)
lfns - is a set of logical filename strings to look up.
ReplicaCatalogEntryMap lookupNoAttributes(Set lfns)
lfns - is a set of logical filename strings to look up.
Map lookup(Set lfns,
String handle)
lfns - is a set of logical filename strings to look up.handle - is the resource handle, restricting the LFNs.
ReplicaCatalogEntry
Map lookupNoAttributes(Set lfns,
String handle)
lfns - is a set of logical filename strings to look up.handle - is the resource handle, restricting the LFNs.
Map lookup(Map constraints)
constraints - is mapping of keys 'lfn', 'pfn', or any
attribute name, e.g. the resource handle 'site', to a string that
has some meaning to the implementing system. This can be a SQL
wildcard for queries, or a regular expression for Java-based memory
collections. Unknown keys are ignored. Using an empty map requests
the complete catalog.
ReplicaCatalogEntrySet list()
Set list(String constraint)
constraint - is a constraint for the logical filename only. It
is a string that has some meaning to the implementing system. This
can be a SQL wildcard for queries, or a regular expression for
Java-based memory collections.
int insert(String lfn,
ReplicaCatalogEntry tuple)
lfn - is the logical filename under which to book the entry.tuple - is the physical filename and associated PFN attributes.
int insert(String lfn,
String pfn,
String handle)
ReplicaCatalogEntry element will be contructed, and passed to
the appropriate insert function.
lfn - is the logical filename under which to book the entry.pfn - is the physical filename associated with it.handle - is a resource handle where the PFN resides.
insert( String, ReplicaCatalogEntry ),
ReplicaCatalogEntryint insert(Map x)
x - is a map from logical filename string to list of replica
catalog entries.
ReplicaCatalogEntry
int delete(Map x,
boolean matchAttributes)
x - is a map from logical filename string to list of
replica catalog entries.matchAttributes - whether mapping should be deleted only if all
attributes match.
ReplicaCatalogEntry
int delete(String lfn,
String pfn)
lfn - is the logical filename in the tuple.pfn - is the physical filename in the tuple.
int delete(String lfn,
ReplicaCatalogEntry tuple)
lfn - is the logical filename in the tuple.tuple - is a description of the PFN and its attributes.
int delete(String lfn,
String name,
Object value)
lfn - is the logical filename to look for.name - is the PFN attribute name to look for.value - is an exact match of the attribute value to match.
int deleteByResource(String lfn,
String handle)
delete( lfn, RESOURCE_HANDLE, handle )
lfn - is the logical filename to look for.handle - is the resource handle
int remove(String lfn)
lfn - is the logical filename to remove all mappings for.
int remove(Set lfns)
lfns - is a set of logical filename to remove all mappings for.
int removeByAttribute(String name,
Object value)
name - is the PFN attribute name to look for.value - is an exact match of the attribute value to match.
int removeByAttribute(String handle)
removeByAttribute method.
handle - is the site handle to remove all entries for.
removeByAttribute( String, Object )int clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||