Class QueryService
- java.lang.Object
-
- com.couchbase.client.core.state.AbstractStateMachine<LifecycleState>
-
- com.couchbase.client.core.service.PooledService
-
- com.couchbase.client.core.service.QueryService
-
- All Implemented Interfaces:
Service
,Stateful<LifecycleState>
public class QueryService extends PooledService
TheQueryService
is composed of and managesQueryEndpoint
s.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.couchbase.client.core.service.Service
Service.EndpointFactory
-
-
Constructor Summary
Constructors Constructor Description QueryService(String hostname, String bucket, String password, int port, CoreContext ctx)
Deprecated.QueryService(String hostname, String bucket, String username, String password, int port, CoreContext ctx)
Creates a newQueryService
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceType
type()
Returns the type for the givenService
.-
Methods inherited from class com.couchbase.client.core.service.PooledService
connect, diagnostics, disconnect, endpoints, mapping, send
-
Methods inherited from class com.couchbase.client.core.state.AbstractStateMachine
hasSubscribers, isState, state, states, transitionState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.core.state.Stateful
hasSubscribers, isState, state, states
-
-
-
-
Constructor Detail
-
QueryService
@Deprecated public QueryService(String hostname, String bucket, String password, int port, CoreContext ctx)
Deprecated.Creates a newQueryService
.- Parameters:
hostname
- the hostname of the service.bucket
- the name of the bucket.password
- the password of the bucket.port
- the port of the service.ctx
- the shared context.
-
QueryService
public QueryService(String hostname, String bucket, String username, String password, int port, CoreContext ctx)
Creates a newQueryService
.- Parameters:
hostname
- the hostname of the service.bucket
- the name of the bucket.username
- the user authorized for bucket access.password
- the password of the user.port
- the port of the service.ctx
- the shared context.
-
-
Method Detail
-
type
public ServiceType type()
Description copied from interface:Service
Returns the type for the givenService
.- Returns:
- the type.
-
-