public interface ReplicaSelector
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_SITE_HANDLE
The local site handle.
|
static String |
PRIORITY_KEY
The attribute key that designates priority for the replica
|
static String |
VERSION
The version of this API.
|
Modifier and Type | Method and Description |
---|---|
String |
description()
Returns a short description of the replica selector, that is being
implemented by the implementing class.
|
edu.isi.pegasus.planner.classes.ReplicaLocation |
selectAndOrderReplicas(edu.isi.pegasus.planner.classes.ReplicaLocation rl,
String prefferedSite,
boolean allowLocalFileURLs)
Select all candidate replicas for a LFN and order them.
|
edu.isi.pegasus.planner.catalog.replica.ReplicaCatalogEntry |
selectReplica(edu.isi.pegasus.planner.classes.ReplicaLocation rl,
String prefferedSite,
boolean allowLocalFileURLs)
Selects a single replica amongst all the replicas returned by the implementing
Replica Mechanism.
|
static final String VERSION
static final String LOCAL_SITE_HANDLE
static final String PRIORITY_KEY
edu.isi.pegasus.planner.classes.ReplicaLocation selectAndOrderReplicas(edu.isi.pegasus.planner.classes.ReplicaLocation rl, String prefferedSite, boolean allowLocalFileURLs)
rl
- the ReplicaLocation
object containing all
the pfn's associated with that LFN.prefferedSite
- the preffered site for picking up the replicas.allowLocalFileURLs
- indicates whether Replica Selector can select a replica
on the local site / submit host.ReplicaLocation
corresponding to the replicas selectededu.isi.pegasus.planner.catalog.replica.ReplicaCatalogEntry selectReplica(edu.isi.pegasus.planner.classes.ReplicaLocation rl, String prefferedSite, boolean allowLocalFileURLs)
rl
- the ReplicaLocation
object containing all
the pfn's associated with that LFN.prefferedSite
- the preffered site for picking up the replicas.allowLocalFileURLs
- indicates whether Replica Selector can select a replica
on the local site / submit host.ReplicaCatalogEntry
corresponding to the location selected.org.griphyn.cPlanner.classes.ReplicaLocation
String description()