|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceLocator
The service locator is responsible for finding providers and services in the registry. Usernames and passwords are not required to search the registry.
Method Summary | |
---|---|
java.util.List |
findService(Category category)
Finds the services that have the supplied category attached |
java.util.List |
findService(Protocol protocol)
Finds the services that support the supplied protocol |
java.util.List |
findService(ServiceProviderInfo serviceProviderInfo)
Finds the services that match the supplied service provider info. |
java.util.List |
findService(ServiceProviderInfo serviceProviderInfo,
java.lang.String name,
java.util.List categories,
java.util.List protocols,
boolean useLogicalOR)
This method allows services to be located by using all the possible search combinations. |
java.util.List |
findService(java.lang.String name)
Finds the service that match the supplied name. |
java.util.List |
findServiceProvider(Category category)
Finds the service providers that have the supplied category attached |
java.util.List |
findServiceProvider(Protocol protocol)
Finds the service providers that have services supporting the supplied protocol |
java.util.List |
findServiceProvider(java.lang.String name)
Finds the service providers that match the supplied name. |
java.util.List |
findServiceProvider(java.lang.String name,
java.util.List categories,
java.util.List protocols,
boolean useLogicalOR)
This method allows service providers to be located by using all the possible search combinations. |
Service |
getService(ServiceInfo serviceInfo)
Retrieves the full service object for the supplied service info. |
Service |
getService(java.lang.String id)
Gets the service from its unique ID |
ServiceProvider |
getServiceProvider(Service service)
Gets the service provider that owns the service |
ServiceProvider |
getServiceProvider(ServiceProviderInfo providerInfo)
Retrieves the full service provider object for the supplied service provider info. |
ServiceProvider |
getServiceProvider(java.lang.String id)
Gets the service provider from its unique ID |
Service |
refreshService(Service service)
Returns the latest version of the service found. |
ServiceProvider |
refreshServiceProvider(ServiceProvider provider)
Returns the latest version of the service provider found. |
void |
setMaxReturned(int maxReturned)
Allows the caller to overload the default number of instances returned from a find call. |
Method Detail |
---|
void setMaxReturned(int maxReturned)
maxReturned
- The maximum number of instances to returnjava.util.List findServiceProvider(java.lang.String name) throws RegistryException
name
- The name of the provider to search for.
RegistryException
java.util.List findServiceProvider(Category category) throws RegistryException
category
- The category and value to search by
RegistryException
java.util.List findServiceProvider(Protocol protocol) throws RegistryException
protocol
- The protocol to search by
RegistryException
java.util.List findServiceProvider(java.lang.String name, java.util.List categories, java.util.List protocols, boolean useLogicalOR) throws RegistryException
name
- The name of the provider to search for.categories
- A list of categories and values to search byprotocols
- A list of protocols s to search byuseLogicalOR
- true to use OR operator, false to use AND operator
RegistryException
ServiceProvider getServiceProvider(Service service) throws RegistryException
service
- The service to search by
RegistryException
ServiceProvider getServiceProvider(java.lang.String id) throws RegistryException
id
- The ID of the service provider
RegistryException
ServiceProvider getServiceProvider(ServiceProviderInfo providerInfo) throws RegistryException
providerInfo
- The service provider info identifying the service
provider to retrieve
RegistryException
ServiceProvider refreshServiceProvider(ServiceProvider provider) throws RegistryException
provider
- The provider to refresh
RegistryException
java.util.List findService(ServiceProviderInfo serviceProviderInfo) throws RegistryException
serviceProviderInfo
- perform the search over the services on this
service provider
RegistryException
java.util.List findService(java.lang.String name) throws RegistryException
name
- The name of the service to search for.
RegistryException
java.util.List findService(Category category) throws RegistryException
category
- The category and value to search by
RegistryException
java.util.List findService(Protocol protocol) throws RegistryException
protocol
- The protocol to search by
RegistryException
java.util.List findService(ServiceProviderInfo serviceProviderInfo, java.lang.String name, java.util.List categories, java.util.List protocols, boolean useLogicalOR) throws RegistryException
serviceProviderInfo
- perform the search over the services on this
providername
- The name of the service to search for.categories
- A list of categories and values to search byprotocols
- A list of protocols s to search byuseLogicalOR
- true to use OR operator, false to use AND operator
RegistryException
Service getService(ServiceInfo serviceInfo) throws RegistryException
serviceInfo
- The service info identifying the service to retrieve
RegistryException
Service getService(java.lang.String id) throws RegistryException
id
- The ID of the service
RegistryException
Service refreshService(Service service) throws RegistryException
service
- The service to refresh
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |