Package com.clickhouse.client.grpc
Class ClickHouseGrpcClient
- java.lang.Object
-
- com.clickhouse.client.AbstractClient<io.grpc.ManagedChannel>
-
- com.clickhouse.client.grpc.ClickHouseGrpcClient
-
- All Implemented Interfaces:
ClickHouseClient,AutoCloseable
public class ClickHouseGrpcClient extends AbstractClient<io.grpc.ManagedChannel>
-
-
Field Summary
-
Fields inherited from class com.clickhouse.client.AbstractClient
lock
-
-
Constructor Summary
Constructors Constructor Description ClickHouseGrpcClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(ClickHouseProtocol protocol)protected booleancheckHealth(ClickHouseNode server, int timeout)protected voidcloseConnection(io.grpc.ManagedChannel connection, boolean force)protected static QueryInfoconvert(ClickHouseRequest<?> request)protected voidfill(ClickHouseRequest<?> request, io.grpc.stub.StreamObserver<QueryInfo> observer)protected Object[]getAsyncExecArguments(ClickHouseRequest<?> sealedRequest)Class<? extends ClickHouseOption>getOptionClass()protected Collection<ClickHouseProtocol>getSupportedProtocols()protected io.grpc.ManagedChannelnewConnection(io.grpc.ManagedChannel connection, ClickHouseNode server, ClickHouseRequest<?> request)protected ClickHouseResponsesend(ClickHouseRequest<?> sealedRequest)protected ClickHouseResponsesendAsync(ClickHouseRequest<?> sealedRequest, Object... args)-
Methods inherited from class com.clickhouse.client.AbstractClient
checkConnection, close, connect, connect, connect, execute, failedResponse, getConfig, getConnection, getExecutor, getServer, init, ping
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.clickhouse.client.ClickHouseClient
connect, executeAndWait
-
-
-
-
Method Detail
-
convert
protected static QueryInfo convert(ClickHouseRequest<?> request)
-
checkHealth
protected boolean checkHealth(ClickHouseNode server, int timeout)
- Specified by:
checkHealthin classAbstractClient<io.grpc.ManagedChannel>
-
closeConnection
protected void closeConnection(io.grpc.ManagedChannel connection, boolean force)- Specified by:
closeConnectionin classAbstractClient<io.grpc.ManagedChannel>
-
getSupportedProtocols
protected Collection<ClickHouseProtocol> getSupportedProtocols()
- Specified by:
getSupportedProtocolsin classAbstractClient<io.grpc.ManagedChannel>
-
newConnection
protected io.grpc.ManagedChannel newConnection(io.grpc.ManagedChannel connection, ClickHouseNode server, ClickHouseRequest<?> request)- Specified by:
newConnectionin classAbstractClient<io.grpc.ManagedChannel>
-
fill
protected void fill(ClickHouseRequest<?> request, io.grpc.stub.StreamObserver<QueryInfo> observer)
-
getAsyncExecArguments
protected Object[] getAsyncExecArguments(ClickHouseRequest<?> sealedRequest)
- Overrides:
getAsyncExecArgumentsin classAbstractClient<io.grpc.ManagedChannel>
-
sendAsync
protected ClickHouseResponse sendAsync(ClickHouseRequest<?> sealedRequest, Object... args) throws ClickHouseException, IOException
- Overrides:
sendAsyncin classAbstractClient<io.grpc.ManagedChannel>- Throws:
ClickHouseExceptionIOException
-
send
protected ClickHouseResponse send(ClickHouseRequest<?> sealedRequest) throws ClickHouseException, IOException
- Specified by:
sendin classAbstractClient<io.grpc.ManagedChannel>- Throws:
ClickHouseExceptionIOException
-
accept
public boolean accept(ClickHouseProtocol protocol)
- Specified by:
acceptin interfaceClickHouseClient- Overrides:
acceptin classAbstractClient<io.grpc.ManagedChannel>
-
getOptionClass
public Class<? extends ClickHouseOption> getOptionClass()
-
-