|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.data.reptor.info.InfoServiceBase
org.edg.data.reptor.info.InfoServiceRGMA
Interface to get information about the Storage Elements and Computing Elements and other Services (like RLS, RMC, ROS) from R-GMA.
Field Summary | |
protected static int |
FILE
|
protected static java.lang.String |
LRC_SERVICE
|
protected java.util.List |
m_CE
|
protected Configuration |
m_config
|
protected int |
m_printinfo
|
protected java.util.List |
m_SE
the list of storage elements and computing elements known to the VO |
protected static java.lang.String |
RLI_SERVICE
|
protected static java.lang.String |
RMC_SERVICE
|
protected static java.lang.String |
ROS_SERVICE
|
protected static int |
SCREEN
|
Constructor Summary | |
InfoServiceRGMA(Configuration config)
|
Method Summary | |
protected java.net.URI |
chooseLocalService(java.util.List urilist)
|
protected java.lang.String |
closeCEForSEHost(java.lang.String SEHost)
|
protected java.lang.String |
getAccessPoint(java.lang.String seID)
Get the AccessPoint (i.e. |
java.util.List |
getCEList()
return all CE names |
protected java.util.Iterator |
getCEVOs(java.lang.String ceID)
|
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 ceID)
Return the close SE information based on an CE |
protected java.util.Iterator |
getCloseSEs(java.lang.String ceID)
|
ComputingElementInfo |
getComputingElementInfoById(java.lang.String ceID)
Return the CE-Info object based on a host name. |
java.net.URI |
getLocalReplicaCatalogLocation()
return the single LRC instance for the system |
protected java.lang.String |
getLRCBySEId(java.lang.String id)
|
java.net.URI |
getMetadataCatalogLocation()
return the single RMC instance for the system |
protected java.lang.String |
getNameForComputingElement(java.lang.String id)
|
java.util.Iterator |
getProtocols(java.lang.String name,
java.lang.String seID)
Get the list of 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 single RLI instance for the system |
java.net.URI |
getReplicaOptimizationLocation()
return the single ROS instance for the system |
java.util.List |
getSEList()
return all SE names |
protected java.net.URI |
getServiceURI(java.lang.String service,
java.lang.String vo)
|
protected java.util.Iterator |
getServiceVOs()
|
protected java.net.URL |
getSRMEndpointByHost(boolean secure,
java.lang.String host,
java.lang.String type)
|
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. |
protected java.util.List |
getVOS(java.lang.String seID)
|
boolean |
haveCE(java.lang.String ceID)
Check whether a given CE is in the information System |
boolean |
haveSE(java.lang.String seHost)
Check whether a given host is in our list of SEs |
protected org.edg.data.reptor.info.InfoServiceBase.SEInfo |
infoForSeHost(java.lang.String seHost)
given an SE hostname, return the information on it |
protected java.net.URL |
initEndpointURL(java.util.List endpoints,
java.lang.String host,
boolean secure)
The endpoint is initialized for the SRM. |
protected org.edg.data.reptor.info.InfoServiceBase.SEInfo |
makeSeInfo(java.lang.String name)
|
void |
printInfo(InfoPrinter p)
Just like printInfo, but print it in a format that can be reused by the InfoServiceStub object as input file. |
protected java.lang.String[] |
toStringArray(java.util.List l)
convert List to String[] |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Configuration m_config
protected java.util.List m_SE
protected java.util.List m_CE
protected static java.lang.String LRC_SERVICE
protected static java.lang.String RMC_SERVICE
protected static java.lang.String ROS_SERVICE
protected static java.lang.String RLI_SERVICE
protected int m_printinfo
protected static int SCREEN
protected static int FILE
Constructor Detail |
public InfoServiceRGMA(Configuration config)
Method Detail |
public java.net.URI getRemoteReplicaCatalogLocation(java.lang.String seHost) throws InfoServiceException
InfoService
InfoServiceException
protected java.lang.String closeCEForSEHost(java.lang.String SEHost) throws InfoServiceException
InfoServiceException
protected java.lang.String getAccessPoint(java.lang.String seID)
org.edg.data.reptor.info.InfoServiceBase
seID
- the Se ID
""
if none is found in the
information systempublic java.util.List getSEList() throws InfoServiceException
InfoService
InfoServiceException
public java.util.List getCEList() throws InfoServiceException
InfoService
InfoServiceException
protected java.net.URI getServiceURI(java.lang.String service, java.lang.String vo) throws InfoServiceException
InfoServiceException
protected java.net.URL getSRMEndpointByHost(boolean secure, java.lang.String host, java.lang.String type) throws InfoServiceException
InfoServiceException
public java.util.Iterator getProtocols(java.lang.String name, java.lang.String seID) throws InfoServiceException
seID
- usually the SE hostname
InfoServiceException
protected java.util.List getVOS(java.lang.String seID) throws InfoServiceException
InfoServiceException
protected org.edg.data.reptor.info.InfoServiceBase.SEInfo infoForSeHost(java.lang.String seHost) throws InfoServiceException
org.edg.data.reptor.info.InfoServiceBase
seHost
- the hostname
null
if there is no information for
the host in hte info system
InfoServiceException
- if a problem occurs getting the informationprotected java.lang.String getNameForComputingElement(java.lang.String id) throws InfoServiceException
InfoServiceException
protected java.lang.String getLRCBySEId(java.lang.String id) throws InfoServiceException
InfoServiceException
protected java.util.Iterator getCloseSEs(java.lang.String ceID) throws InfoServiceException
InfoServiceException
protected java.util.Iterator getCEVOs(java.lang.String ceID) throws InfoServiceException
InfoServiceException
protected java.util.Iterator getServiceVOs() throws InfoServiceException
InfoServiceException
public boolean haveSE(java.lang.String seHost) throws InfoServiceException
haveSE
in interface InfoService
InfoServiceException
public boolean haveCE(java.lang.String ceID) throws InfoServiceException
haveCE
in interface InfoService
ceID
- the ID of the CE to check for
true
if the CE exists
InfoServiceException
- if a problem occurs contacing the
information systempublic java.lang.String getCloseCE(java.lang.String SEHost) throws ConfigurationException, InfoServiceException
getCloseCE
in interface InfoService
SEHost
-
ConfigurationException
InfoServiceException
public java.lang.String getCloseSE(java.lang.String ceID) throws ConfigurationException, InfoServiceException
getCloseSE
in interface InfoService
ceID
-
ConfigurationException
InfoServiceException
public java.net.URI getLocalReplicaCatalogLocation() throws InfoServiceException
getLocalReplicaCatalogLocation
in interface InfoService
InfoServiceException
public java.net.URI getMetadataCatalogLocation() throws InfoServiceException
getMetadataCatalogLocation
in interface InfoService
InfoServiceException
public java.net.URI getReplicaOptimizationLocation() throws InfoServiceException
getReplicaOptimizationLocation
in interface InfoService
InfoServiceException
public java.net.URI getReplicaLocationIndexLocation() throws InfoServiceException
getReplicaLocationIndexLocation
in interface InfoService
InfoServiceException
public StorageElementInfo getStorageElementInfoByHost(java.lang.String host) throws InfoServiceException
getStorageElementInfoByHost
in interface InfoService
host
- the host
InfoServiceException
StorageElementInfo
public ComputingElementInfo getComputingElementInfoById(java.lang.String ceID) throws InfoServiceException
getComputingElementInfoById
in interface InfoService
ceID
- the ce id
InfoServiceException
ComputingElementInfo
public StorageResource getStorageResourceByHost(java.lang.String seHost) throws InfoServiceException, StorageResourceException
InfoService
getStorageResourceByHost
in interface InfoService
seHost
-
InfoServiceException
StorageResourceException
public void printInfo(InfoPrinter p) throws InfoServiceException, ConfigurationException
printInfo
in interface InfoService
p
- the PrintStream to print to
InfoServiceException
ConfigurationException
protected org.edg.data.reptor.info.InfoServiceBase.SEInfo makeSeInfo(java.lang.String name)
protected java.lang.String[] toStringArray(java.util.List l)
l
-
protected java.net.URI chooseLocalService(java.util.List urilist) throws InfoServiceException, ConfigurationException
InfoServiceException
ConfigurationException
protected java.net.URL initEndpointURL(java.util.List endpoints, java.lang.String host, boolean secure) throws InfoServiceException
endpoints
-
InfoServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |