org.edg.data.reptor.info
Interface InfoService

All Known Implementing Classes:
org.edg.data.reptor.info.InfoServiceBase

public interface InfoService


Method Summary
 java.util.List getCEList()
          return all CE names
 java.lang.String getCloseCE(java.lang.String seHost)
          Return the close CE information based on an SE host
 java.lang.String getCloseSE(java.lang.String ce)
          Return list the close SE hosts based on a CE string
 ComputingElementInfo getComputingElementInfoById(java.lang.String ce)
          Return the CE-Info object based on a host name.
 java.net.URI getLocalReplicaCatalogLocation()
          return the local LRC instance for the system
 java.net.URI getMetadataCatalogLocation()
          return the single RMC instance for the system
 java.util.Iterator getProtocols(java.lang.String name, java.lang.String seID)
          get all protocols for a given SE
 java.net.URI getRemoteReplicaCatalogLocation(java.lang.String seHost)
          return the (remote) LRC endpoint for this SE identifyer (host).
 java.net.URI getReplicaLocationIndexLocation()
          return the local RLI instance
 java.net.URI getReplicaOptimizationLocation()
          return the local ROS instance for the system
 java.util.List getSEList()
          return all SE names
 StorageElementInfo getStorageElementInfoByHost(java.lang.String host)
          Return the SE-Info object based on a host name.
 StorageResource getStorageResourceByHost(java.lang.String seHost)
          Return the storage resource associated with a given host.
 boolean haveCE(java.lang.String host)
          Check whether a given host is a valid CE
 boolean haveSE(java.lang.String seHost)
          Check whether a given host is in our list of SEs
 void printInfo(InfoPrinter p)
          Print the information used by the replica manager, as obtained from the info service specified by the configuration file, to the given InfoPrinter.
 

Method Detail

haveSE

public boolean haveSE(java.lang.String seHost)
               throws InfoServiceException
Check whether a given host is in our list of SEs

Returns:
true if it is in the list false if not found
Throws:
InfoServiceException

haveCE

public boolean haveCE(java.lang.String host)
               throws InfoServiceException
Check whether a given host is a valid CE

Parameters:
host -
Returns:
true or false
Throws:
InfoServiceException

getCloseCE

public java.lang.String getCloseCE(java.lang.String seHost)
                            throws ConfigurationException,
                                   InfoServiceException
Return the close CE information based on an SE host

Parameters:
seHost -
Returns:
computing element string
Throws:
ConfigurationException
InfoServiceException

getCloseSE

public java.lang.String getCloseSE(java.lang.String ce)
                            throws ConfigurationException,
                                   InfoServiceException
Return list the close SE hosts based on a CE string

Parameters:
ce -
Returns:
array of Strings, containing SE hosts
Throws:
ConfigurationException
InfoServiceException

getLocalReplicaCatalogLocation

public java.net.URI getLocalReplicaCatalogLocation()
                                            throws InfoServiceException
return the local LRC instance for the system

Throws:
InfoServiceException

getRemoteReplicaCatalogLocation

public java.net.URI getRemoteReplicaCatalogLocation(java.lang.String seHost)
                                             throws InfoServiceException
return the (remote) LRC endpoint for this SE identifyer (host).

Throws:
InfoServiceException

getMetadataCatalogLocation

public java.net.URI getMetadataCatalogLocation()
                                        throws InfoServiceException
return the single RMC instance for the system

Throws:
InfoServiceException

getReplicaLocationIndexLocation

public java.net.URI getReplicaLocationIndexLocation()
                                             throws InfoServiceException
return the local RLI instance

Throws:
InfoServiceException

getReplicaOptimizationLocation

public java.net.URI getReplicaOptimizationLocation()
                                            throws InfoServiceException
return the local ROS instance for the system

Throws:
InfoServiceException

getStorageResourceByHost

public StorageResource getStorageResourceByHost(java.lang.String seHost)
                                         throws InfoServiceException,
                                                StorageResourceException
Return the storage resource associated with a given host.

Parameters:
seHost -
Returns:
storage resource.
Throws:
InfoServiceException
StorageResourceException

getComputingElementInfoById

public ComputingElementInfo getComputingElementInfoById(java.lang.String ce)
                                                 throws InfoServiceException
Return the CE-Info object based on a host name.

Parameters:
ce - the ce id
Returns:
the ComputingElementInfo object if found or null if the id is not found to be an CE.
Throws:
InfoServiceException
See Also:
ComputingElementInfo

getStorageElementInfoByHost

public StorageElementInfo getStorageElementInfoByHost(java.lang.String host)
                                               throws InfoServiceException
Return the SE-Info object based on a host name.

Parameters:
host - the host
Returns:
the StorageElementInfo object if found or null if not found.
Throws:
InfoServiceException
See Also:
StorageElementInfo

printInfo

public void printInfo(InfoPrinter p)
               throws InfoServiceException,
                      ConfigurationException
Print the information used by the replica manager, as obtained from the info service specified by the configuration file, to the given InfoPrinter.

Parameters:
p - The InfoPrinter object to print to.
Throws:
InfoServiceException
ConfigurationException

getProtocols

public java.util.Iterator getProtocols(java.lang.String name,
                                       java.lang.String seID)
                                throws InfoServiceException
get all protocols for a given SE

Throws:
InfoServiceException

getSEList

public java.util.List getSEList()
                         throws InfoServiceException
return all SE names

Returns:
list of all SEs (Strings)
Throws:
InfoServiceException

getCEList

public java.util.List getCEList()
                         throws InfoServiceException
return all CE names

Returns:
list of all SEs (Strings)
Throws:
InfoServiceException