|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.data.reptor.optimization.OptimizationService
This optimiser finds the 'best' replica of the required file based on transfer latencies.
Constructor Summary | |
OptimizationService(org.edg.data.ros.EdgReplicaOptimization ros,
boolean isVerbose)
Constructor. |
Method Summary | |
static OptimizationService |
create(Configuration config)
Create a new, correctly configured Optimization Service. |
org.edg.data.ros.AccessCost[] |
getAccessCost(org.edg.data.ros.ROSFile[] fileList,
ComputingElementInfo[] ce,
java.lang.String[] protocol)
Calculates the expected cost of accessing all the files specified by logicalName from each Computing Element host specified by ceHosts. |
java.net.URI |
listBestFile(org.edg.data.ros.ROSFile replicaList,
java.lang.String seHost)
List best replica out of a set of files for a given SE host. |
java.lang.String |
ping()
Send a contact message to the Optor server |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OptimizationService(org.edg.data.ros.EdgReplicaOptimization ros, boolean isVerbose)
Method Detail |
public static OptimizationService create(Configuration config) throws InfoServiceException, CatalogCommunicationException
Configuration
object.
config
- the Configuration
OptimizationService
InfoServiceException
- if we can't locate a remote EdgReplicaOptimization
Service in the Information System
CatalogCommunicationException
- if we can't connect to the given
EdgReplicaOptimization
servicepublic org.edg.data.ros.AccessCost[] getAccessCost(org.edg.data.ros.ROSFile[] fileList, ComputingElementInfo[] ce, java.lang.String[] protocol) throws OptorException
fileList
- the array of ROSFile objects, each a logical
identifier with the full set of replicas and its sizece
- the array of ComputingElementInfo objects.protocol
- the array of transport protocols to be used.
AccessCost
array in same order as
ce
array
OptorException
public java.net.URI listBestFile(org.edg.data.ros.ROSFile replicaList, java.lang.String seHost) throws OptorException
replicaList
- the ROSFile object that contains the list of replicas to the file.seHost
- the host of the StorageElement to consider to access any of the replicas from
OptorException
public java.lang.String ping() throws OptorException
OptorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |