public class CmChannel extends CmBufferWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAR_VARCHAR_COLUMN_SIZE |
static int |
CM_BLOCK_SIZE |
static int |
CM_DEFAULT_RCVBUF_SIZE |
static int |
CM_DEFAULT_SNDBUF_SIZE |
static int |
CM_PACKET_HEADER_SIZE |
mBuffer, mCharVarcharColumnBuffer, mDBEncoder, mNCharEncoder, mNLiteralEncoder| Constructor and Description |
|---|
CmChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDecodingBuffer(int aLobDataLength)
CLOBÀÇ °æ¿ì LOB_CACHE_THRESHOLD°¡ CM_BLOCK_SIZE¸¦ ÃʰúÇÑ °æ¿ì
µðÄÚµùÀ» À§ÇØ mCharBuf¸¦ ÀçÇÒ´çÇÑ´Ù.
|
void |
checkWritable(int aNeedToWrite)
Buffer ¿¡ ¾µ µ¥ÀÌÅÍ °ø°£ÀÌ ÃæºÐÇÑÁö ¿©ºÎ¸¦ È®ÀÎÇÏ¿©, ÃæºÐÇÏÁö ¾ÊÀ¸¸é ÇÊ¿äÇÑ °ø°£À» ¸¸µå´Â ÇÔ¼ö
CmChannel °ú ListBufferHandle ¿¡¼ °¢ÀÚ¿¡ ¸Â°Ô ±¸ÇöÇÑ´Ù.
|
void |
close() |
CmProtocolContext |
getAsyncContext()
ºñµ¿±âÀûÀ¸·Î fetch ÇÁ·ÎÅäÄÝÀ» ¼Û½ÅÇÑ protocol context ¸¦ ¾ò´Â´Ù.
|
int |
getByteLengthPerChar() |
java.nio.charset.Charset |
getCharset() |
java.lang.String[] |
getCipherSuitList()
ÇöÀç SSLSocket¿¡¼ °¡´ÉÇÑ CipherSuites ¸®½ºÆ®¸¦ µ¹·ÁÁØ´Ù.
|
ColumnFactory |
getColumnFactory() |
CmConnType |
getConnType() |
int |
getLobCacheThreshold() |
AltibaseMessageCallback |
getMessageCallback()
Message Callback °´Ã¼¸¦ ¹ÝȯÇÑ´Ù.
|
java.nio.charset.Charset |
getNCharset() |
int |
getResponseTimeout() |
int |
getSocketFD()
Socket ÀÇ file descriptor ¸¦ ¹ÝȯÇÑ´Ù.
|
int |
getSockRcvBufSize()
Socket receive buffer Å©±â¸¦ ¹ÝȯÇÑ´Ù.
|
ListBufferHandle |
getTempListBufferHandle() |
boolean |
isAsyncSent()
ºñµ¿±âÀûÀ¸·Î fetch ÇÁ·ÎÅäÄÝÀ» ¼Û½ÅÇÑ protocol context ¸¦ ¾ò´Â´Ù.
|
boolean |
isClosed() |
void |
open(java.lang.String aAddr,
int aPort)
¹°¸® ¿¬°áÀ» ¸Î°í, CmChannelÀ» »ç¿ëÇϱâ À§ÇØ Áغñ¸¦ ÇÑ´Ù.
|
void |
quietClose()
ä³ÎÀ» ´Ý´Â´Ù.
|
byte |
readByte() |
void |
readBytes(byte[] aDest) |
void |
readBytes(byte[] aDest,
int aLength) |
void |
readBytes(byte[] aDest,
int aOffset,
int aLength) |
void |
readBytes(java.nio.ByteBuffer aBuf) |
java.lang.String |
readCharVarcharColumnString(int aColumnSize,
int aSkipSize,
boolean aIsNationalCharset)
Char, Varchar Ä÷³ µ¥ÀÌÅ͸¦ ÀÐÀº ÈÄ Charset¿¡ ¸Â°Ô decodeÇÑ ¹®ÀÚ¿À» ¸®ÅÏÇÑ´Ù.
|
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
byte |
readOp() |
short |
readShort() |
java.lang.String |
readString(byte[] aBytesValue) |
java.lang.String |
readString(int aLength) |
short |
readUnsignedByte() |
java.math.BigInteger |
readUnsignedLong() |
int |
readUnsignedShort() |
void |
receive() |
void |
send() |
void |
sendAndReceive() |
void |
setAsyncContext(CmProtocolContext aContext)
ºñµ¿±âÀûÀ¸·Î fetch ÇÁ·ÎÅäÄÝÀ» ¼Û½ÅÇÑ protocol context ¸¦ ÀúÀåÇÑ´Ù.
|
void |
setCharset(java.nio.charset.Charset aCharset,
java.nio.charset.Charset aNCharset) |
void |
setConnType(java.lang.String aConnType) |
void |
setLobCacheThreshold(int aLobCacheThreshold) |
void |
setMessageCallback(AltibaseMessageCallback aCallback)
AltibaseConnectionÀ¸·Î ºÎÅÍ Message Callback °´Ã¼¸¦ ÁÖÀԹ޴´Ù.
|
void |
setPreferredIPv6() |
void |
setProps(AltibaseProperties aProps)
PROJ-2681 Á¢¼Ó ŸÀÔ¿¡ µû¸¥ ÇÁ·ÎÆÛƼ °ªÀ» Àбâ À§ÇØ ¼³Á¤ÇÑ´Ù.
|
void |
setRemoveRedundantMode(boolean aMode,
AltibaseProperties aProps) |
void |
setResponseTimeout(int aResponseTimeout) |
void |
setSocket(CmSocket aSocket) |
void |
setSockRcvBufBlockRatio(int aSockRcvBufBlockRatio)
Socket receive buffer Å©±â¸¦ CM block ´ÜÀ§·Î ¼³Á¤ÇÑ´Ù.
|
void |
setSockRcvBufSize(int aSockRcvBufSize)
Socket receive buffer Å©±â¸¦ ¼³Á¤ÇÑ´Ù.
|
void |
skip(int aSkipLen)
µ¥ÀÌŸ¸¦ aSkipLen ¸¸Å °Ç³Ê ¶Ú´Ù.
|
void |
writeBytes(byte[] aValue,
int aOffset,
int aLength) |
void |
writeBytes(java.nio.ByteBuffer aValue)
ByteBuffer °´Ã¼¸¦ Buffer ¿¡ »ðÀÔÇÏ´Â ÇÔ¼ö
CmChannel °ú ListBufferHandle ¿¡¼ °¢ÀÚ¿¡ ¸Â°Ô ±¸ÇöÇÑ´Ù.
|
void |
writeOp(byte aOpCode) |
encodeString, prepareToWriteString, writeByte, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writePreparedString, writeShort, writeUnsignedIntpublic static final int CM_BLOCK_SIZE
public static final int CM_PACKET_HEADER_SIZE
public static final int CM_DEFAULT_SNDBUF_SIZE
public static final int CM_DEFAULT_RCVBUF_SIZE
public static final int CHAR_VARCHAR_COLUMN_SIZE
public void setPreferredIPv6()
public void open(java.lang.String aAddr,
int aPort)
throws java.sql.SQLException
aAddr - Á¢¼ÓÇÒ ¼¹öÀÇ IP ÁÖ¼Ò ¶Ç´Â HostnameaPort - Á¢¼ÓÇÒ ¼¹öÀÇ Portjava.sql.SQLException - ÀÌ¹Ì ¿¬°áµÇ¾îÀְųª ¼ÒÄÏ »ý¼º, ÃʱâÈ ¶Ç´Â ¿¬°á¿¡ ½ÇÆÐÇÑ °æ¿ìpublic boolean isClosed()
public void close()
throws java.io.IOException
java.io.IOExceptionpublic void quietClose()
public void setCharset(java.nio.charset.Charset aCharset,
java.nio.charset.Charset aNCharset)
setCharset in class CmBufferWriterpublic java.nio.charset.Charset getCharset()
public java.nio.charset.Charset getNCharset()
public int getByteLengthPerChar()
public void writeOp(byte aOpCode)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeBytes(byte[] aValue,
int aOffset,
int aLength)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeBytes(java.nio.ByteBuffer aValue)
throws java.sql.SQLException
CmBufferWriterwriteBytes in class CmBufferWriteraValue - Buffer ¿¡ ÀúÀåÇÒ ByteBuffer °´Ã¼java.sql.SQLException - µ¥ÀÌŸ Àü¼Û¿¡ ½ÇÆÐÇßÀ» °æ¿ìpublic void sendAndReceive()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void send()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void receive()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void checkWritable(int aNeedToWrite)
throws java.sql.SQLException
CmBufferWritercheckWritable in class CmBufferWriteraNeedToWrite - µ¥ÀÌŸ¸¦ ¾²±â À§ÇØ ÇÊ¿äÇÑ bytes ¼ýÀÚjava.sql.SQLException - µ¥ÀÌŸ Àü¼Û¿¡ ½ÇÆÐÇßÀ» °æ¿ìpublic void skip(int aSkipLen)
¸¸¾à, aSkipLenÀÌ 0À̸é Á¶¿ëÈ÷ ¹«½ÃÇÑ´Ù.
aSkipLen - °Ç³Ê ¶Û byte ¼öjava.lang.InternalError - aSkipLenÀÌ 0º¸´Ù ÀÛÀ» °æ¿ìpublic byte readOp()
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte readByte()
throws java.sql.SQLException
java.sql.SQLExceptionpublic short readUnsignedByte()
throws java.sql.SQLException
java.sql.SQLExceptionpublic short readShort()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int readUnsignedShort()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int readInt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.math.BigInteger readUnsignedLong()
throws java.sql.SQLException
java.sql.SQLExceptionpublic long readLong()
throws java.sql.SQLException
java.sql.SQLExceptionpublic float readFloat()
throws java.sql.SQLException
java.sql.SQLExceptionpublic double readDouble()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void readBytes(byte[] aDest)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void readBytes(byte[] aDest,
int aOffset,
int aLength)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void readBytes(byte[] aDest,
int aLength)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void readBytes(java.nio.ByteBuffer aBuf)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String readString(int aLength)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String readString(byte[] aBytesValue)
public java.lang.String readCharVarcharColumnString(int aColumnSize,
int aSkipSize,
boolean aIsNationalCharset)
throws java.sql.SQLException
aColumnSize - Ä÷³µ¥ÀÌÅÍ »çÀÌÁîaSkipSize - ½ºÅµ»çÀÌÁîaIsNationalCharset - ´Ù±¹¾îij¸¯ÅͼÂÀÎÁö ¿©ºÎjava.sql.SQLException - Á¤»óÀûÀ¸·Î Ä÷³µ¥ÀÌÅ͸¦ ¹Þ¾Æ¿ÀÁö ¸øÇÑ °æ¿ìpublic int getLobCacheThreshold()
public void setLobCacheThreshold(int aLobCacheThreshold)
public void setRemoveRedundantMode(boolean aMode,
AltibaseProperties aProps)
public ColumnFactory getColumnFactory()
public CmConnType getConnType()
public void setConnType(java.lang.String aConnType)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setProps(AltibaseProperties aProps)
aProps - AltibaseProperties °´Ã¼public java.lang.String[] getCipherSuitList()
public int getSockRcvBufSize()
public void setSockRcvBufSize(int aSockRcvBufSize)
throws java.io.IOException
java.io.IOExceptionpublic void setSockRcvBufBlockRatio(int aSockRcvBufBlockRatio)
throws java.io.IOException
java.io.IOExceptionpublic void setAsyncContext(CmProtocolContext aContext)
public boolean isAsyncSent()
public CmProtocolContext getAsyncContext()
public int getSocketFD()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setMessageCallback(AltibaseMessageCallback aCallback)
aCallback - Äݹ鰴üpublic AltibaseMessageCallback getMessageCallback()
public ListBufferHandle getTempListBufferHandle()
public void checkDecodingBuffer(int aLobDataLength)
throws java.sql.SQLException
aLobDataLength - LOBµ¥ÀÌÅͱæÀÌjava.sql.SQLExceptionpublic void setResponseTimeout(int aResponseTimeout)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setSocket(CmSocket aSocket)
public int getResponseTimeout()