|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sourceforge.jtds.jdbc.SharedSocket
|
+--net.sourceforge.jtds.jdbc.SharedNamedPipe
This class implements inter-process communication (IPC) to the database server using named pipes.
| Inner classes inherited from class net.sourceforge.jtds.jdbc.SharedSocket |
SharedSocket.VirtualSocket |
| Field Summary | |
private jcifs.smb.SmbNamedPipe |
pipe
The shared named pipe. |
| Fields inherited from class net.sourceforge.jtds.jdbc.SharedSocket |
bufferDir, cancelMonitor, cancelPending, charsetInfo, doneBuffer, globalMemUsage, hdrBuf, host, in, maxBufSize, memoryBudget, minMemPkts, out, packetCount, peakMemUsage, port, responseOwner, securityViolation, serverType, socket, socketTable, sslSocket, TDS_DONE_LEN, TDS_DONE_TOKEN, TDS_HDR_LEN, tdsVersion |
| Constructor Summary | |
SharedNamedPipe(ConnectionJDBC2 connection)
Creates a new instance of SharedNamedPipe. |
|
| Method Summary | |
(package private) void |
close()
Close the socket (noop if in shared mode). |
(package private) void |
forceClose()
Force close the socket causing any pending reads/writes to fail. |
private jcifs.smb.SmbNamedPipe |
getPipe()
Getter for pipe field. |
(package private) boolean |
isConnected()
Get the connected status of this socket. |
private void |
setPipe(jcifs.smb.SmbNamedPipe pipe)
Setter for pipe field. |
protected void |
setTimeout(int timeout)
Set the socket timeout. |
| Methods inherited from class net.sourceforge.jtds.jdbc.SharedSocket |
cancel, closeStream, createSocketForJDBC3, dequeueInput, disableEncryption, enableEncryption, enqueueInput, getCharset, getCharsetInfo, getHost, getIn, getMemoryBudget, getMinMemPkts, getNetPacket, getOut, getPktLen, getPort, getRequestStream, getResponseStream, getTdsVersion, lookup, readPacket, sendNetPacket, setCharsetInfo, setIn, setMemoryBudget, setMinMemPkts, setOut, setTdsVersion |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private jcifs.smb.SmbNamedPipe pipe
| Constructor Detail |
public SharedNamedPipe(ConnectionJDBC2 connection)
throws java.io.IOException
SharedNamedPipe.connection - java.io.IOException - if the named pipe or its input or output streams do
not openjava.net.UnknownHostException - if host cannot be found for the named pipe| Method Detail |
boolean isConnected()
isConnected in class SharedSocket
void close()
throws java.io.IOException
close in class SharedSocketnet.sourceforge.jtds.jdbc.SharedSocketjava.io.IOException - if the socket close failsvoid forceClose()
forceClose in class SharedSocketprivate jcifs.smb.SmbNamedPipe getPipe()
pipe field.SmbNamedPipe used for communicationprivate void setPipe(jcifs.smb.SmbNamedPipe pipe)
pipe field.pipe - SmbNamedPipe to be used for communicationprotected void setTimeout(int timeout)
setTimeout in class SharedSockettimeout - timeout value in milliseconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||