| org.griphyn.cPlanner.selector.ReplicaSelector
All known Subclasses: org.griphyn.cPlanner.selector.replica.Windward, org.griphyn.cPlanner.selector.replica.Default, org.griphyn.cPlanner.selector.replica.Local,
ReplicaSelector | public interface ReplicaSelector (Code) | | A prototypical interface for a replica selector. It would be changed when
Pegasus interfaces with the new RC API.
author: Karan Vahi author: Gaurang Mehta version: $Revision: 50 $ |
Field Summary | |
final public static String | VERSION The version of this API. |
VERSION | final public static String VERSION(Code) | | The version of this API.
|
description | abstract public String description()(Code) | | Returns a short description of the replica selector, that is being
implemented by the implementing class.
string corresponding to the description. |
selectReplica | abstract public ReplicaCatalogEntry selectReplica(ReplicaLocation rl, String prefferedSite)(Code) | | Selects a single replica amongst all the replicas returned by the implementing
Replica Mechanism. If more than one replica is found to be matching the
preffered site, a random replica is picked up from the matching replicas.
Else, in case of no match any replica maybe returned.
Parameters: rl - the ReplicaLocation object containing allthe pfn's associated with that LFN. Parameters: prefferedSite - the preffered site for picking up the replicas. ReplicaCatalogEntry corresponding to the location selected. See Also: org.griphyn.cPlanner.classes.ReplicaLocation |
selectReplicas | abstract public ReplicaLocation selectReplicas(ReplicaLocation rl, String prefferedSite)(Code) | | Selects a replica amongst all the replicas returned by the implementing
Replica Mechanism. It should select all the locations for which the site
attribute matches to the preffered site passed. If no match on the
preffered site is found, it is upto the implementation to select a replica
and return it.
This function is called to determine if a file does exist on the output
pool or not beforehand. We need all the locations to ensure that we are
able to make a match if it so exists.
Parameters: rl - the ReplicaLocation object containing allthe pfn's associated with that LFN. Parameters: prefferedSite - the preffered site for picking up the replicas. ReplicaLocation corresponding to the replicas selected. See Also: org.griphyn.cPlanner.classes.ReplicaLocation |
|
|