public abstract class VstCommunication<R,C extends VstConnection> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
chunksize |
protected ConnectionPool<C> |
connectionPool |
protected static AtomicLong |
mId |
protected String |
password |
protected String |
user |
protected ArangoSerialization |
util |
| Modifier | Constructor and Description |
|---|---|
protected |
VstCommunication(Integer timeout,
String user,
String password,
Boolean useSsl,
SSLContext sslContext,
ArangoSerialization util,
Integer chunksize,
ConnectionPool<C> connectionPool) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
authenticate(C connection) |
protected Collection<Chunk> |
buildChunks(Message message) |
protected void |
checkError(Response response) |
protected void |
connect(C connection) |
protected Message |
createMessage(Request request) |
protected Response |
createResponse(Message message) |
void |
disconnect() |
protected abstract R |
execute(Request request,
C connection) |
R |
execute(Request request,
HostHandle hostHandle) |
protected static final AtomicLong mId
protected final ArangoSerialization util
protected final ConnectionPool<C extends VstConnection> connectionPool
protected final String user
protected final String password
protected final Integer chunksize
protected VstCommunication(Integer timeout, String user, String password, Boolean useSsl, SSLContext sslContext, ArangoSerialization util, Integer chunksize, ConnectionPool<C> connectionPool)
protected void connect(C connection)
protected abstract void authenticate(C connection)
public void disconnect()
throws IOException
IOExceptionpublic R execute(Request request, HostHandle hostHandle) throws ArangoDBException
ArangoDBExceptionprotected abstract R execute(Request request, C connection) throws ArangoDBException
ArangoDBExceptionprotected void checkError(Response response) throws ArangoDBException
ArangoDBExceptionprotected Response createResponse(Message message) throws com.arangodb.velocypack.exception.VPackParserException
com.arangodb.velocypack.exception.VPackParserExceptionprotected Message createMessage(Request request) throws com.arangodb.velocypack.exception.VPackParserException
com.arangodb.velocypack.exception.VPackParserExceptionprotected Collection<Chunk> buildChunks(Message message)
Copyright © 2016–2018 ArangoDB GmbH. All rights reserved.