Package com.couchbase.client.core.node
Class DefaultServiceRegistry
- java.lang.Object
-
- com.couchbase.client.core.node.DefaultServiceRegistry
-
- All Implemented Interfaces:
ServiceRegistry
public class DefaultServiceRegistry extends Object implements ServiceRegistry
The default implementation of aServiceRegistry
.
-
-
Constructor Summary
Constructors Constructor Description DefaultServiceRegistry()
Create a newDefaultServiceRegistry
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Service
addService(Service service, String bucket)
Service
locate(CouchbaseRequest request)
Service
removeService(Service service, String bucket)
Service
serviceBy(ServiceType type, String bucket)
Service[]
services()
Returns all currently stored services, across buckets and globally.String
toString()
-
-
-
Constructor Detail
-
DefaultServiceRegistry
public DefaultServiceRegistry()
Create a newDefaultServiceRegistry
.
-
-
Method Detail
-
addService
public Service addService(Service service, String bucket)
- Specified by:
addService
in interfaceServiceRegistry
-
removeService
public Service removeService(Service service, String bucket)
- Specified by:
removeService
in interfaceServiceRegistry
-
locate
public Service locate(CouchbaseRequest request)
- Specified by:
locate
in interfaceServiceRegistry
-
services
public Service[] services()
Description copied from interface:ServiceRegistry
Returns all currently stored services, across buckets and globally.- Specified by:
services
in interfaceServiceRegistry
- Returns:
- all stored services.
-
serviceBy
public Service serviceBy(ServiceType type, String bucket)
- Specified by:
serviceBy
in interfaceServiceRegistry
-
-