|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceDiscovery
Interface to the service discovery subsystem.
Method Summary | |
---|---|
Service |
getService(java.lang.String serviceName)
Gets the service with the given name. |
ServiceData[] |
getServiceData(java.lang.String serviceName)
Gets the list of attributes (name/value pairs) associated with the given service. |
java.lang.String |
getServiceDataItem(java.lang.String serviceName,
java.lang.String key)
Gets a parameter value for the service. |
ServiceDetails |
getServiceDetails(java.lang.String serviceName)
Gets all the available data on the given service. |
java.lang.String |
getServiceSite(java.lang.String serviceName)
Returns the name of the site where the service runs. |
java.lang.String |
getServiceWSDL(java.lang.String serviceName)
Returns a URL to the service WSDL. |
Service[] |
listAssociatedServices(java.lang.String serviceName,
java.lang.String type,
java.lang.String site,
java.lang.String[] vos)
Lists the available services that are associated with the specified service and that match the specified type, site and VOs. |
Service[] |
listAssociatedServices(java.lang.String serviceName,
java.lang.String type,
java.lang.String site,
java.lang.String[] vos,
boolean onlyListAvailable)
Deprecated. The onlyListAvailable parameter is deprecated, @see listAssociatedServices(String,String,String,String[]) |
Service[] |
listServices(java.lang.String type,
java.lang.String site,
java.lang.String[] vos)
Lists all the available services matching the specified type, site and VOs. |
Service[] |
listServices(java.lang.String type,
java.lang.String site,
java.lang.String[] vos,
boolean onlyListAvailable)
Deprecated. The onlyListAvailable parameter is deprecated, @see listServices(String,String,String[]) |
Service[] |
listServicesByData(ServiceData[] data,
java.lang.String type,
java.lang.String site,
java.lang.String[] vos)
Lists the available services matching the given service data (key/value pairs) and the specified type, site and VOs. |
Service[] |
listServicesByData(ServiceData[] data,
java.lang.String type,
java.lang.String site,
java.lang.String[] vos,
boolean onlyListAvailable)
Deprecated. The onlyListAvailable parameter is deprecated, @see listServicesByData(ServiceData[],String,String,String[]) |
Method Detail |
---|
java.lang.String getServiceDataItem(java.lang.String serviceName, java.lang.String key) throws ServiceDiscoveryException
serviceName
- The name of the service.key
- The name of the parameter.
null
if the service/key combination can not be found.
ServiceDiscoveryException
- If the information system could not be accessed.Service getService(java.lang.String serviceName) throws ServiceDiscoveryException
serviceName
- The name of the service.
null
if the service can not be found.
ServiceDiscoveryException
- If the information system could not be accessed.ServiceDetails getServiceDetails(java.lang.String serviceName) throws ServiceDiscoveryException
serviceName
- The name of the service.
null
if the service can not be found.
ServiceDiscoveryException
- If the information system could not be accessed.java.lang.String getServiceSite(java.lang.String serviceName) throws ServiceDiscoveryException
serviceName
- The name of the service.
null
if the service can not be found.
ServiceDiscoveryException
- If the information system could not be accessed.java.lang.String getServiceWSDL(java.lang.String serviceName) throws ServiceDiscoveryException
null
if not a web service.
serviceName
- The name of the service.
null
if the service can not be found.
ServiceDiscoveryException
- If the information system could not be accessed.ServiceData[] getServiceData(java.lang.String serviceName) throws ServiceDiscoveryException
serviceName
- The name of the service.
ServiceDiscoveryException
- If the information system could not be accessed.Service[] listServices(java.lang.String type, java.lang.String site, java.lang.String[] vos) throws ServiceDiscoveryException
type
- The type of the requested services. To get services of all types, set as null
.site
- The site of the requested services. To get services from all sites, set as null
.vos
- The list of VOs the service is member of. To get services from all VOs, set as null
.
ServiceDiscoveryException
- If the information system could not be accessed.Service[] listAssociatedServices(java.lang.String serviceName, java.lang.String type, java.lang.String site, java.lang.String[] vos) throws ServiceDiscoveryException
serviceName
- The name of the service to which the others are associated.type
- The type of the requested services. To get services of all types, set as null
.site
- The site of the requested services. To get services from all sites, set as null
.vos
- The list of VOs the service is member of. To get services from all VOs, set as null
.
ServiceDiscoveryException
- If the information system could not be accessed.Service[] listServicesByData(ServiceData[] data, java.lang.String type, java.lang.String site, java.lang.String[] vos) throws ServiceDiscoveryException
data
- Array of ServiceData objects (key/value pairs) to match.type
- The type of the requested services. To get services of all types, set as null
.site
- The site of the requested services. To get services from all sites, set as null
.vos
- The list of VOs the service is member of. To get services from all VOs, set as null
.
ServiceDiscoveryException
- If the information system could not be accessed.Service[] listServices(java.lang.String type, java.lang.String site, java.lang.String[] vos, boolean onlyListAvailable) throws ServiceDiscoveryException
onlyListAvailable
is
true
, only services that have an "available" status are returned.
type
- The type of the requested services. To get services of all types, set as null
.site
- The site of the requested services. To get services from all sites, set as null
.vos
- The list of VOs the service is member of. To get services from all VOs, set as null
.onlyListAvailable
- Only list available services.
ServiceDiscoveryException
- If the information system could not be accessed.Service[] listAssociatedServices(java.lang.String serviceName, java.lang.String type, java.lang.String site, java.lang.String[] vos, boolean onlyListAvailable) throws ServiceDiscoveryException
onlyListAvailable
is true
, only services that have an "available" status are
returned.
serviceName
- The name of the service to which the others are associated.type
- The type of the requested services. To get services of all types, set as null
.site
- The site of the requested services. To get services from all sites, set as null
.vos
- The list of VOs the service is member of. To get services from all VOs, set as null
.onlyListAvailable
- Only list available services.
ServiceDiscoveryException
- If the information system could not be accessed.Service[] listServicesByData(ServiceData[] data, java.lang.String type, java.lang.String site, java.lang.String[] vos, boolean onlyListAvailable) throws ServiceDiscoveryException
onlyListAvailable
is true
, only services that have an "available" status are returned.
data
- Array of ServiceData objects (key/value pairs) to match.type
- The type of the requested services. To get services of all types, set as null
.site
- The site of the requested services. To get services from all sites, set as null
.vos
- The list of VOs the service is member of. To get services from all VOs, set as null
.onlyListAvailable
- Only list available services.
ServiceDiscoveryException
- If the information system could not be accessed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |