Modifier and Type | Class and Description |
---|---|
static class |
ProtocolImpl.ExecutionTimerTask |
Modifier and Type | Method and Description |
---|---|
void |
abort(Executor executor) |
protected void |
beginMessage(io.netty.buffer.ByteBuf msg,
byte msgId) |
protected void |
beginMessage(io.netty.buffer.ByteBuf msg,
byte msgId,
int length) |
void |
cancelExecutionTimer() |
BindExecCommand |
createBindExec(String portalName,
String statementName,
List<Type> parameterTypes,
List<Object> parameterValues,
List<ResultField> resultFields) |
CloseCommand |
createClose(ServerObjectType objectType,
String objectName) |
FunctionCallCommand |
createFunctionCall(String functionName,
List<Type> parameterTypes,
List<Object> parameterValues) |
PrepareCommand |
createPrepare(String statementName,
String sqlText,
List<Type> parameterTypes) |
QueryCommand |
createQuery(String sqlText) |
SSLRequestCommand |
createSSLRequest() |
StartupCommand |
createStartup(Map<String,Object> settings) |
void |
dispatch(ResponseMessage msg) |
void |
dispatchException(Throwable cause) |
void |
enableExecutionTimer(ProtocolImpl.ExecutionTimerTask task,
long timeout) |
protected void |
endMessage(io.netty.buffer.ByteBuf msg) |
void |
execute(Command cmd) |
BasicContext |
getContext() |
Throwable |
getLastException() |
TransactionStatus |
getTransactionStatus() |
boolean |
isConnected() |
protected void |
loadParams(io.netty.buffer.ByteBuf buffer,
List<Type> paramTypes,
List<Object> paramValues,
Context context) |
protected void |
receiveNotification(io.netty.buffer.ByteBuf buffer) |
void |
send(io.netty.buffer.ByteBuf msg) |
void |
shutdown() |
void |
writeBind(io.netty.buffer.ByteBuf msg,
String portalName,
String stmtName,
List<Type> parameterTypes,
List<Object> parameterValues,
List<ResultField.Format> resultFieldFormats) |
void |
writeClose(io.netty.buffer.ByteBuf msg,
ServerObjectType target,
String targetName) |
void |
writeDescribe(io.netty.buffer.ByteBuf msg,
ServerObjectType target,
String targetName) |
void |
writeExecute(io.netty.buffer.ByteBuf msg,
String portalName,
int maxRows) |
void |
writeFlush(io.netty.buffer.ByteBuf msg) |
void |
writeFunctionCall(io.netty.buffer.ByteBuf msg,
int functionId,
List<Type> paramTypes,
List<Object> paramValues) |
protected void |
writeMessage(io.netty.buffer.ByteBuf msg,
byte msgId) |
void |
writeParse(io.netty.buffer.ByteBuf msg,
String stmtName,
String query,
List<Type> paramTypes) |
void |
writePassword(io.netty.buffer.ByteBuf msg,
String password) |
void |
writeQuery(io.netty.buffer.ByteBuf msg,
String query) |
void |
writeSSLRequest(io.netty.buffer.ByteBuf msg) |
void |
writeStartup(io.netty.buffer.ByteBuf msg,
Map<String,Object> params) |
void |
writeSync(io.netty.buffer.ByteBuf msg) |
void |
writeTerminate(io.netty.buffer.ByteBuf msg) |
public BasicContext getContext()
public Throwable getLastException()
public boolean isConnected()
isConnected
in interface Protocol
public SSLRequestCommand createSSLRequest()
createSSLRequest
in interface Protocol
public StartupCommand createStartup(Map<String,Object> settings)
createStartup
in interface Protocol
public PrepareCommand createPrepare(String statementName, String sqlText, List<Type> parameterTypes)
createPrepare
in interface Protocol
public BindExecCommand createBindExec(String portalName, String statementName, List<Type> parameterTypes, List<Object> parameterValues, List<ResultField> resultFields)
createBindExec
in interface Protocol
public QueryCommand createQuery(String sqlText)
createQuery
in interface Protocol
public FunctionCallCommand createFunctionCall(String functionName, List<Type> parameterTypes, List<Object> parameterValues)
createFunctionCall
in interface Protocol
public CloseCommand createClose(ServerObjectType objectType, String objectName)
createClose
in interface Protocol
public void enableExecutionTimer(ProtocolImpl.ExecutionTimerTask task, long timeout)
public void cancelExecutionTimer()
public void execute(Command cmd) throws IOException
execute
in interface Protocol
IOException
public TransactionStatus getTransactionStatus()
getTransactionStatus
in interface Protocol
public void writeSSLRequest(io.netty.buffer.ByteBuf msg) throws IOException
IOException
public void writeStartup(io.netty.buffer.ByteBuf msg, Map<String,Object> params) throws IOException
IOException
public void writePassword(io.netty.buffer.ByteBuf msg, String password) throws IOException
IOException
public void writeQuery(io.netty.buffer.ByteBuf msg, String query) throws IOException
IOException
public void writeParse(io.netty.buffer.ByteBuf msg, String stmtName, String query, List<Type> paramTypes) throws IOException
IOException
public void writeBind(io.netty.buffer.ByteBuf msg, String portalName, String stmtName, List<Type> parameterTypes, List<Object> parameterValues, List<ResultField.Format> resultFieldFormats) throws IOException
IOException
public void writeDescribe(io.netty.buffer.ByteBuf msg, ServerObjectType target, String targetName) throws IOException
IOException
public void writeExecute(io.netty.buffer.ByteBuf msg, String portalName, int maxRows) throws IOException
IOException
public void writeFunctionCall(io.netty.buffer.ByteBuf msg, int functionId, List<Type> paramTypes, List<Object> paramValues) throws IOException
IOException
public void writeClose(io.netty.buffer.ByteBuf msg, ServerObjectType target, String targetName) throws IOException
IOException
public void writeFlush(io.netty.buffer.ByteBuf msg) throws IOException
IOException
public void writeSync(io.netty.buffer.ByteBuf msg) throws IOException
IOException
public void writeTerminate(io.netty.buffer.ByteBuf msg) throws IOException
IOException
public void send(io.netty.buffer.ByteBuf msg) throws IOException
IOException
protected void loadParams(io.netty.buffer.ByteBuf buffer, List<Type> paramTypes, List<Object> paramValues, Context context) throws IOException
IOException
protected void writeMessage(io.netty.buffer.ByteBuf msg, byte msgId) throws IOException
IOException
protected void beginMessage(io.netty.buffer.ByteBuf msg, byte msgId)
protected void beginMessage(io.netty.buffer.ByteBuf msg, byte msgId, int length)
protected void endMessage(io.netty.buffer.ByteBuf msg) throws IOException
IOException
public void dispatch(ResponseMessage msg) throws IOException
IOException
public void dispatchException(Throwable cause) throws IOException
IOException
protected void receiveNotification(io.netty.buffer.ByteBuf buffer) throws IOException
IOException
Copyright © 2013–2017 impossibl.com. All rights reserved.