public interface ReplicaSelector
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCAL_SITE_HANDLE
The local site handle.
|
static java.lang.String |
VERSION
The version of this API.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description()
Returns a short description of the replica selector, that is being
implemented by the implementing class.
|
ReplicaCatalogEntry |
selectReplica(ReplicaLocation rl,
java.lang.String prefferedSite,
boolean allowLocalFileURLs)
Selects a single replica amongst all the replicas returned by the implementing
Replica Mechanism.
|
ReplicaLocation |
selectReplicas(ReplicaLocation rl,
java.lang.String prefferedSite,
boolean allowLocalFileURLs)
Selects a replica amongst all the replicas returned by the implementing
Replica Mechanism.
|
static final java.lang.String VERSION
static final java.lang.String LOCAL_SITE_HANDLE
ReplicaLocation selectReplicas(ReplicaLocation rl, java.lang.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 selected.org.griphyn.cPlanner.classes.ReplicaLocationReplicaCatalogEntry selectReplica(ReplicaLocation rl, java.lang.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.ReplicaLocationjava.lang.String description()