| java.lang.Object org.griphyn.cPlanner.selector.replica.Windward
Windward | public class Windward implements ReplicaSelector(Code) | | This replica selector that takes into account availability times returned by
the DC. It selects the replica with the lowest availability time.
In order to use the replica selector implemented by this class,
- the property pegasus.selector.replica must be set to value Windward
- the property pegasus.catalog.replica must be set to value Windward
See Also: org.griphyn.cPlanner.transfer.implementation.Condor author: Karan Vahi version: $Revision: 440 $ |
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.
|
Windward | public Windward(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 replica that has the lowest availability time, else selects
a random replica.
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 |
|
|