| java.lang.Object org.griphyn.cPlanner.selector.replica.Local
Local | public class Local implements ReplicaSelector(Code) | | 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
See Also: org.griphyn.cPlanner.transfer.implementation.Condor author: Karan Vahi version: $Revision: 408 $ |
Constructor Summary | |
public | Local(PegasusProperties properties) The overloaded constructor, that is called by load method. |
Method Summary | |
public String | description() Returns a short description of the replica selector. | public ReplicaCatalogEntry | selectReplica(ReplicaLocation rl, String preferredSite) 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.
Parameters: rl - the ReplicaLocation object containing allthe pfn's associated with that LFN. Parameters: preferredSite - the preffered site for picking up the replicas. | public ReplicaLocation | selectReplicas(ReplicaLocation rl, String preferredSite) This chooses a location amongst all the locations returned by the
Replica Mechanism. |
FILE_URL_SCHEME | final protected static String FILE_URL_SCHEME(Code) | | The scheme name for file url.
|
mLogger | protected LogManager mLogger(Code) | | The handle to the logging object that is used to log the various debug
messages.
|
mProps | protected PegasusProperties mProps(Code) | | The properties object containing the properties passed to the planner.
|
Local | public Local(PegasusProperties properties)(Code) | | The overloaded constructor, that is called by load method.
Parameters: properties - the PegasusProperties object containing allthe properties required by Pegasus. |
description | public String description()(Code) | | Returns a short description of the replica selector.
string corresponding to the description. |
selectReplica | public ReplicaCatalogEntry selectReplica(ReplicaLocation rl, String preferredSite)(Code) | | 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.
Parameters: rl - the ReplicaLocation object containing allthe pfn's associated with that LFN. Parameters: preferredSite - the preffered site for picking up the replicas. ReplicaCatalogEntry corresponding to the location selected. See Also: org.griphyn.cPlanner.classes.ReplicaLocation |
selectReplicas | public ReplicaLocation selectReplicas(ReplicaLocation rl, String preferredSite)(Code) | | This chooses a location amongst all the locations returned by the
Replica Mechanism. If a location is found with re/pool attribute same
as the preference pool, it is taken. This returns all the locations which
match to the preference pool. This function is called to determine if a
file does exist on the output pool or not beforehand. We need all the
location to ensure that we are able to make a match if it so exists.
Else a random location is selected and returned
Parameters: rl - the ReplicaLocation object containing allthe pfn's associated with that LFN. Parameters: preferredSite - the preffered site for picking up the replicas. ReplicaLocation corresponding to the replicas selected. See Also: org.griphyn.cPlanner.classes.ReplicaLocation |
|
|