| |
|
| java.lang.Object org.apache.derby.impl.drda.Session
Session | class Session (Code) | | Session stores information about the current session
It is used so that a DRDAConnThread can work on any session.
|
Constructor Summary | |
| Session(int connNum, Socket clientSocket, String traceDirectory, boolean traceOn) |
ATTEXC | final protected static int ATTEXC(Code) | | |
CHKSEC | final protected static int CHKSEC(Code) | | |
CLOSED | final protected static int CLOSED(Code) | | |
CMD_SESSION | final protected static int CMD_SESSION(Code) | | |
DRDA_SESSION | final protected static int DRDA_SESSION(Code) | | |
INIT | final protected static int INIT(Code) | | |
SECACC | final protected static int SECACC(Code) | | |
connNum | protected int connNum(Code) | | |
qryinsid | protected int qryinsid(Code) | | |
sessionType | protected int sessionType(Code) | | |
state | protected int state(Code) | | |
traceOn | protected boolean traceOn(Code) | | |
Session | Session(int connNum, Socket clientSocket, String traceDirectory, boolean traceOn) throws IOException(Code) | | Session constructor
Parameters: connNum - connection number Parameters: clientSocket - communications socket for this session Parameters: traceDirectory - location for trace files Parameters: traceOn - whether to start tracing this connection throws IOException |
addDatabase | protected void addDatabase(Database d)(Code) | | Add database to session table
|
close | protected void close() throws SQLException(Code) | | Close session - close connection sockets and set state to closed
|
getConnNum | protected int getConnNum()(Code) | | Get connection number
connection number |
getRequiredSecurityCodepoint | protected int getRequiredSecurityCodepoint()(Code) | | Get requried security checkpoint.
Used to verify EXCSAT/ACCSEC/SECCHK order.
next required Security checkpoint or -1 if neither ACCSEC or SECCHK are required at this time. |
initTrace | protected void initTrace(String traceDirectory)(Code) | | initialize a server trace for the DRDA protocol
Parameters: traceDirectory - - directory for trace file |
isTraceOn | protected boolean isTraceOn()(Code) | | Get whether tracing is on
true if tracing is on false otherwise |
requiresSecurityCodepoint | protected boolean requiresSecurityCodepoint()(Code) | | Check if a security codepoint is required
true if ACCSEC or SECCHK are required at this time. |
setState | protected void setState(int s)(Code) | | Set Session state
|
setTraceOff | protected void setTraceOff()(Code) | | Set tracing off
|
setTraceOn | protected void setTraceOn(String traceDirectory)(Code) | | Set tracing on
Parameters: traceDirectory - directory for trace files |
|
|
|