public class SyncConnection extends Connection
| Modifier and Type | Field and Description |
|---|---|
protected com.facebook.thrift.protocol.TProtocol |
protocol |
protected com.facebook.thrift.transport.TTransport |
transport |
serverAddr| Constructor and Description |
|---|
SyncConnection() |
| Modifier and Type | Method and Description |
|---|---|
AuthResult |
authenticate(String user,
String password) |
void |
close() |
ExecutionResponse |
execute(long sessionID,
String stmt) |
String |
executeJson(long sessionID,
String stmt) |
String |
executeJsonWithParameter(long sessionID,
String stmt,
Map<byte[],Value> parameterMap) |
ExecutionResponse |
executeWithParameter(long sessionID,
String stmt,
Map<byte[],Value> parameterMap) |
void |
open(HostAddress address,
int timeout) |
void |
open(HostAddress address,
int timeout,
SSLParam sslParam) |
boolean |
ping() |
void |
reopen() |
void |
signout(long sessionId) |
getServerAddressprotected com.facebook.thrift.transport.TTransport transport
protected com.facebook.thrift.protocol.TProtocol protocol
public void open(HostAddress address, int timeout, SSLParam sslParam) throws IOErrorException, ClientServerIncompatibleException
open in class ConnectionIOErrorExceptionClientServerIncompatibleExceptionpublic void open(HostAddress address, int timeout) throws IOErrorException, ClientServerIncompatibleException
open in class ConnectionIOErrorExceptionClientServerIncompatibleExceptionpublic void reopen()
throws IOErrorException,
ClientServerIncompatibleException
reopen in class ConnectionIOErrorExceptionClientServerIncompatibleExceptionpublic AuthResult authenticate(String user, String password) throws AuthFailedException, IOErrorException, ClientServerIncompatibleException
public ExecutionResponse execute(long sessionID, String stmt) throws IOErrorException
IOErrorExceptionpublic ExecutionResponse executeWithParameter(long sessionID, String stmt, Map<byte[],Value> parameterMap) throws IOErrorException
IOErrorExceptionpublic String executeJson(long sessionID, String stmt) throws IOErrorException
IOErrorExceptionpublic String executeJsonWithParameter(long sessionID, String stmt, Map<byte[],Value> parameterMap) throws IOErrorException
IOErrorExceptionpublic void signout(long sessionId)
public boolean ping()
ping in class Connectionpublic void close()
close in class ConnectionCopyright © 2022. All rights reserved.