class Session
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AppRequester |
appRequester |
protected static int |
ATTEXC |
protected static int |
CHKSEC |
protected java.net.Socket |
clientSocket |
protected static int |
CLOSED |
protected static int |
CMD_SESSION |
protected int |
connNum |
protected Database |
database |
private java.util.Hashtable<java.lang.String,Database> |
dbtable
Table of databases accessed in this session.
|
protected static int |
DRDA_SESSION |
protected java.lang.String |
drdaID |
protected DssTrace |
dssTrace |
protected static int |
INIT |
protected LocalizedResource |
langUtil |
private NetworkServerControlImpl |
nsctrl |
protected int |
qryinsid |
protected static int |
SECACC |
protected java.io.InputStream |
sessionInput |
protected java.io.OutputStream |
sessionOutput |
protected int |
sessionType |
protected int |
state |
protected java.lang.String |
traceFileName |
private static java.lang.String |
TRACENAME_PREFIX |
private static java.lang.String |
TRACENAME_SUFFIX |
protected boolean |
traceOn |
Constructor and Description |
---|
Session(NetworkServerControlImpl nsctrl,
int connNum,
java.net.Socket clientSocket,
java.lang.String traceDirectory,
boolean traceOn)
Session constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDatabase(Database d)
Add database to session table
|
protected java.lang.String |
buildRuntimeInfo(java.lang.String indent,
LocalizedResource localLangUtil) |
protected void |
close()
Close session - close connection sockets and set state to closed
|
protected int |
getConnNum()
Get connection number
|
protected Database |
getDatabase(java.lang.String dbName)
Get database
|
protected int |
getRequiredSecurityCodepoint()
Get requried security checkpoint.
|
private void |
initialize(java.lang.String traceDirectory)
Get session into initial state
|
protected void |
initTrace(java.lang.String traceDirectory,
boolean throwException)
initialize a server trace for the DRDA protocol
|
protected boolean |
isTraceOn()
Get whether tracing is on
|
protected boolean |
requiresSecurityCodepoint()
Check if a security codepoint is required
|
protected void |
setState(int s)
Set Session state
|
protected void |
setTraceOff()
Set tracing off
|
protected void |
setTraceOn(java.lang.String traceDirectory,
boolean throwException)
Set tracing on
|
protected static final int INIT
protected static final int ATTEXC
protected static final int SECACC
protected static final int CHKSEC
protected static final int CLOSED
protected static final int DRDA_SESSION
protected static final int CMD_SESSION
private static final java.lang.String TRACENAME_PREFIX
private static final java.lang.String TRACENAME_SUFFIX
protected java.net.Socket clientSocket
protected int connNum
protected java.io.InputStream sessionInput
protected java.io.OutputStream sessionOutput
protected java.lang.String traceFileName
protected boolean traceOn
protected int state
protected int sessionType
protected java.lang.String drdaID
protected DssTrace dssTrace
protected AppRequester appRequester
protected Database database
protected int qryinsid
protected LocalizedResource langUtil
private java.util.Hashtable<java.lang.String,Database> dbtable
private NetworkServerControlImpl nsctrl
Session(NetworkServerControlImpl nsctrl, int connNum, java.net.Socket clientSocket, java.lang.String traceDirectory, boolean traceOn) throws java.lang.Exception
connNum
- connection numberclientSocket
- communications socket for this sessiontraceDirectory
- location for trace filestraceOn
- whether to start tracing this connectionthrows
- IOExceptionjava.lang.Exception
protected void close() throws java.sql.SQLException
java.sql.SQLException
protected void initTrace(java.lang.String traceDirectory, boolean throwException) throws java.lang.Exception
traceDirectory
- - directory for trace filethrowException
- - true if we should throw an exception if
turning on tracing fails. We do this
for NetworkServerControl API commands.java.io.IOException
java.lang.Exception
protected void setTraceOn(java.lang.String traceDirectory, boolean throwException) throws java.lang.Exception
traceDirectory
- directory for trace filesjava.lang.Exception
protected boolean isTraceOn()
protected int getConnNum()
protected void setTraceOff()
protected void addDatabase(Database d)
protected Database getDatabase(java.lang.String dbName)
protected int getRequiredSecurityCodepoint()
protected boolean requiresSecurityCodepoint()
protected void setState(int s)
private void initialize(java.lang.String traceDirectory) throws java.lang.Exception
traceDirectory
- - directory for trace filesjava.lang.Exception
protected java.lang.String buildRuntimeInfo(java.lang.String indent, LocalizedResource localLangUtil)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.