public class Local extends java.lang.Object implements ReplicaSelector
In order to use the replica selector implemented by this class,
- the property pegasus.selector.replica must be set to value Local
org.griphyn.cPlanner.transfer.implementation.Condor
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
mDescription
A short description of the replica selector.
|
protected edu.isi.pegasus.common.logging.LogManager |
mLogger
The handle to the logging object that is used to log the various debug
messages.
|
protected edu.isi.pegasus.planner.common.PegasusProperties |
mProps
The properties object containing the properties passed to the planner.
|
static java.lang.String |
SANITY_CHECK_ERROR_MESSAGE_PREFIX
Sanity Check Error Message.
|
LOCAL_SITE_HANDLE, PRIORITY_KEY, VERSION
Constructor and Description |
---|
Local(edu.isi.pegasus.planner.common.PegasusProperties properties)
The overloaded constructor, that is called by load method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
Returns a short description of the replica selector.
|
edu.isi.pegasus.planner.classes.ReplicaLocation |
selectAndOrderReplicas(edu.isi.pegasus.planner.classes.ReplicaLocation rl,
java.lang.String preferredSite,
boolean allowLocalFileURLs)
This chooses a location amongst all the locations returned by the
Replica Mechanism.
|
edu.isi.pegasus.planner.catalog.replica.ReplicaCatalogEntry |
selectReplica(edu.isi.pegasus.planner.classes.ReplicaLocation rl,
java.lang.String preferredSite,
boolean allowLocalFileURLs)
Selects a random replica from all the replica's that have their
site handle set to local and the pfn's start with a file url scheme.
|
private static final java.lang.String mDescription
public static final java.lang.String SANITY_CHECK_ERROR_MESSAGE_PREFIX
protected edu.isi.pegasus.common.logging.LogManager mLogger
protected edu.isi.pegasus.planner.common.PegasusProperties mProps
public Local(edu.isi.pegasus.planner.common.PegasusProperties properties)
properties
- the PegasusProperties
object containing all
the properties required by Pegasus.public edu.isi.pegasus.planner.catalog.replica.ReplicaCatalogEntry selectReplica(edu.isi.pegasus.planner.classes.ReplicaLocation rl, java.lang.String preferredSite, boolean allowLocalFileURLs)
selectReplica
in interface ReplicaSelector
rl
- the ReplicaLocation
object containing all
the pfn's associated with that LFN.preferredSite
- 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
public edu.isi.pegasus.planner.classes.ReplicaLocation selectAndOrderReplicas(edu.isi.pegasus.planner.classes.ReplicaLocation rl, java.lang.String preferredSite, boolean allowLocalFileURLs)
selectAndOrderReplicas
in interface ReplicaSelector
rl
- the ReplicaLocation
object containing all
the pfn's associated with that LFN.preferredSite
- 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.ReplicaLocation
public java.lang.String description()
description
in interface ReplicaSelector