| 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,
Class<?> rowType) |
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 int |
lengthOfParams(List<Type> paramTypes,
List<Object> paramValues,
Context context) |
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,
boolean computeLength) |
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 Protocolpublic SSLRequestCommand createSSLRequest()
createSSLRequest in interface Protocolpublic StartupCommand createStartup(Map<String,Object> settings)
createStartup in interface Protocolpublic PrepareCommand createPrepare(String statementName, String sqlText, List<Type> parameterTypes)
createPrepare in interface Protocolpublic BindExecCommand createBindExec(String portalName, String statementName, List<Type> parameterTypes, List<Object> parameterValues, List<ResultField> resultFields, Class<?> rowType)
createBindExec in interface Protocolpublic QueryCommand createQuery(String sqlText)
createQuery in interface Protocolpublic FunctionCallCommand createFunctionCall(String functionName, List<Type> parameterTypes, List<Object> parameterValues)
createFunctionCall in interface Protocolpublic CloseCommand createClose(ServerObjectType objectType, String objectName)
createClose in interface Protocolpublic void enableExecutionTimer(ProtocolImpl.ExecutionTimerTask task, long timeout)
public void cancelExecutionTimer()
public void execute(Command cmd) throws IOException
execute in interface ProtocolIOExceptionpublic TransactionStatus getTransactionStatus()
getTransactionStatus in interface Protocolpublic void writeSSLRequest(io.netty.buffer.ByteBuf msg)
throws IOException
IOExceptionpublic void writeStartup(io.netty.buffer.ByteBuf msg,
Map<String,Object> params)
throws IOException
IOExceptionpublic void writePassword(io.netty.buffer.ByteBuf msg,
String password)
throws IOException
IOExceptionpublic void writeQuery(io.netty.buffer.ByteBuf msg,
String query)
throws IOException
IOExceptionpublic void writeParse(io.netty.buffer.ByteBuf msg,
String stmtName,
String query,
List<Type> paramTypes)
throws IOException
IOExceptionpublic void writeBind(io.netty.buffer.ByteBuf msg,
String portalName,
String stmtName,
List<Type> parameterTypes,
List<Object> parameterValues,
List<ResultField.Format> resultFieldFormats,
boolean computeLength)
throws IOException
IOExceptionpublic void writeDescribe(io.netty.buffer.ByteBuf msg,
ServerObjectType target,
String targetName)
throws IOException
IOExceptionpublic void writeExecute(io.netty.buffer.ByteBuf msg,
String portalName,
int maxRows)
throws IOException
IOExceptionpublic void writeFunctionCall(io.netty.buffer.ByteBuf msg,
int functionId,
List<Type> paramTypes,
List<Object> paramValues)
throws IOException
IOExceptionpublic void writeClose(io.netty.buffer.ByteBuf msg,
ServerObjectType target,
String targetName)
throws IOException
IOExceptionpublic void writeFlush(io.netty.buffer.ByteBuf msg)
throws IOException
IOExceptionpublic void writeSync(io.netty.buffer.ByteBuf msg)
throws IOException
IOExceptionpublic void writeTerminate(io.netty.buffer.ByteBuf msg)
throws IOException
IOExceptionpublic void send(io.netty.buffer.ByteBuf msg)
throws IOException
IOExceptionprotected void loadParams(io.netty.buffer.ByteBuf buffer,
List<Type> paramTypes,
List<Object> paramValues,
Context context)
throws IOException
IOExceptionprotected int lengthOfParams(List<Type> paramTypes, List<Object> paramValues, Context context) throws IOException
IOExceptionprotected void writeMessage(io.netty.buffer.ByteBuf msg,
byte msgId)
throws IOException
IOExceptionprotected 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
IOExceptionpublic void dispatch(ResponseMessage msg) throws IOException
IOExceptionpublic void dispatchException(Throwable cause) throws IOException
IOExceptionprotected void receiveNotification(io.netty.buffer.ByteBuf buffer)
throws IOException
IOExceptionCopyright © 2013-2015 impossibl.com. All Rights Reserved.