|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.selector.replica.Local
public class Local
This replica selector only prefers replicas from the local host and that start with a file: URL scheme. It is useful, when you want to stagin files to a remote site from your submit host using the Condor file transfer mechanism.
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| Field Summary | |
|---|---|
protected static String |
FILE_URL_SCHEME
The scheme name for file url. |
private static String |
mDescription
A short description of the replica selector. |
protected LogManager |
mLogger
The handle to the logging object that is used to log the various debug messages. |
protected PegasusProperties |
mProps
The properties object containing the properties passed to the planner. |
static String |
SANITY_CHECK_ERROR_MESSAGE_PREFIX
Sanity Check Error Message. |
| Fields inherited from interface edu.isi.pegasus.planner.selector.ReplicaSelector |
|---|
LOCAL_SITE_HANDLE, VERSION |
| Constructor Summary | |
|---|---|
Local(PegasusProperties properties)
The overloaded constructor, that is called by load method. |
|
| Method Summary | |
|---|---|
String |
description()
Returns a short description of the replica selector. |
ReplicaCatalogEntry |
selectReplica(ReplicaLocation rl,
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. |
ReplicaLocation |
selectReplicas(ReplicaLocation rl,
String preferredSite,
boolean allowLocalFileURLs)
This chooses a location amongst all the locations returned by the Replica Mechanism. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String mDescription
public static final String SANITY_CHECK_ERROR_MESSAGE_PREFIX
protected static final String FILE_URL_SCHEME
protected LogManager mLogger
protected PegasusProperties mProps
| Constructor Detail |
|---|
public Local(PegasusProperties properties)
properties - the PegasusProperties object containing all
the properties required by Pegasus.| Method Detail |
|---|
public ReplicaCatalogEntry selectReplica(ReplicaLocation rl,
String preferredSite,
boolean allowLocalFileURLs)
selectReplica in interface ReplicaSelectorrl - 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 ReplicaLocation selectReplicas(ReplicaLocation rl,
String preferredSite,
boolean allowLocalFileURLs)
selectReplicas in interface ReplicaSelectorrl - 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.ReplicaLocationpublic String description()
description in interface ReplicaSelector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||