org.edg.data.reptor.optimization
Class Optor

java.lang.Object
  |
  +--org.edg.data.reptor.optimization.Optor

public class Optor
extends java.lang.Object

This optimiser finds the 'best' replica of the required file based on transfer latencies.

Version:
$Id: Optor.java,v 1.25 2003/07/21 10:38:20 pkunszt Exp $
Author:
Kurt Stockinger, Heinz Stockinger, Peter Kunszt
See Also:
Design of a Replica Optimisation Framework

Constructor Summary
Optor(Configuration config)
          Constructor.
 
Method Summary
 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

Optor

public Optor(Configuration config)
      throws CatalogCommunicationException,
             InfoServiceException
Constructor. Connects to the service and sets the verbosity flag.

Method Detail

getAccessCost

public org.edg.data.ros.AccessCost[] getAccessCost(org.edg.data.ros.ROSFile[] fileList,
                                                   ComputingElementInfo[] ce,
                                                   java.lang.String[] protocol)
                                            throws OptorException
Calculates the expected cost of accessing all the files specified by logicalName from each Computing Element host specified by ceHosts.

Parameters:
fileList - the array of ROSFile objects, each a logical identifier with the full set of replicas and its size
ce - the array of ComputingElementInfo objects.
protocol - the array of transport protocols to be used.
Returns:
The AccessCost array in same order as ce array
OptorException
See Also:
Design of a Replica Optimisation Framework

listBestFile

public java.net.URI listBestFile(org.edg.data.ros.ROSFile replicaList,
                                 java.lang.String seHost)
                          throws OptorException
List best replica out of a set of files for a given SE host.

Parameters:
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
Returns:
the URI of the best replica out of the list.
OptorException
See Also:
Design of a Replica Optimisation Framework

ping

public java.lang.String ping()
                      throws OptorException
Send a contact message to the Optor server

OptorException