org.edg.data.ros
Interface EdgReplicaOptimization


public interface EdgReplicaOptimization

A SOAP API for the Replica Optimization part of the Replica Manager. This is only used internally. Note: For TB 2.0 'best' files are replicated to the "close SE". All the parameter arrays should not contain null entries and should all be the same length.

Version:
$Id: EdgReplicaOptimization.java,v 1.8 2003/10/31 10:32:34 pkunszt Exp $
Author:
Kurt Stockinger, Heinz Stockinger, Peter Kunszt
See Also:
Design of a Replica Optimisation Framework

Method Summary
 AccessCost[] getAccessCost(ROSFile[] file, ROSComputingElement[] ce, java.lang.String[] transport)
          Calculate the expected file access cost per-Logical-File-Name.
 BestNetworkCost getBestNetworkCost(ROSFile file, java.lang.String destinationSE)
          Return the expected network costs (in seconds) and the file name for accessing the best replica.
 java.lang.String getInterfaceVersion()
           
 SECost[] getSECost(java.lang.String seId, java.lang.String[] pfns)
          Calculate the access cost in terms of seconds for file on an StorageElement (SE).
 java.lang.String getVersion()
           
 java.lang.String ping()
          Send a contact message to the Optor server
 

Method Detail

getAccessCost

public AccessCost[] getAccessCost(ROSFile[] file,
                                  ROSComputingElement[] ce,
                                  java.lang.String[] transport)
Calculate the expected file access cost per-Logical-File-Name. It makes the assumptions that no replication occurs. If no cost information can be retrieved, the costs are set to Float.MAX_VALUE.

Parameters:
ce - the array of ROSComputingElement.
transport - FileHandler to be used.
Returns:
The AccessCost array in same order as ce array
See Also:
Design of a Replica Optimisation Framework

getBestNetworkCost

public BestNetworkCost getBestNetworkCost(ROSFile file,
                                          java.lang.String destinationSE)
Return the expected network costs (in seconds) and the file name for accessing the best replica. If no cost information can be retrieved, the costs are set to Float.MAX_VALUE.

Parameters:
file - ROS File.
destinationSE - destination StorageElement.
Returns:
FileName
See Also:
Design of a Replica Optimisation Framework

getSECost

public SECost[] getSECost(java.lang.String seId,
                          java.lang.String[] pfns)
Calculate the access cost in terms of seconds for file on an StorageElement (SE).

Parameters:
seId - ID of the SE.
pfns - list of PFNs (SFNs) on the respective SE.
Returns:
SECost list access costs for files on the SE.

ping

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

Returns:
success if Optor is listening

getVersion

public java.lang.String getVersion()

getInterfaceVersion

public java.lang.String getInterfaceVersion()