|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jtds.jdbc.SharedSocket
net.sourceforge.jtds.jdbc.SharedNamedPipe
public class SharedNamedPipe
This class implements inter-process communication (IPC) to the database server using named pipes.
SharedSocket
and this class., Implement connection timeouts for named pipes.Field Summary | |
---|---|
private jcifs.smb.SmbNamedPipe |
pipe
The shared named pipe. |
Fields inherited from class net.sourceforge.jtds.jdbc.SharedSocket |
---|
serverType |
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, disableEncryption, enableEncryption, finalize, getCharset, getCharsetInfo, getHost, getIn, getMemoryBudget, getMinMemPkts, getNetPacket, getOut, getPktLen, getPort, getRequestStream, getResponseStream, getTdsVersion, sendNetPacket, setCharsetInfo, setIn, setKeepAlive, setMemoryBudget, setMinMemPkts, setOut, setTdsVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 open
java.net.UnknownHostException
- if host cannot be found for the named pipeMethod Detail |
---|
boolean isConnected()
isConnected
in class SharedSocket
void close() throws java.io.IOException
close
in class SharedSocket
java.io.IOException
- if the socket close failsvoid forceClose()
forceClose
in class SharedSocket
private 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 SharedSocket
timeout
- timeout value in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |