|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
netscape.ldap.LDAPConnThread
Multiple LDAPConnection clones can share a single physical connection, which is maintained by a thread. +----------------+ | LDAPConnection | --------+ +----------------+ | | +----------------+ | +----------------+ | LDAPConnection | --------+------- | LDAPConnThread | +----------------+ | +----------------+ | +----------------+ | | LDAPConnection | --------+ +----------------+ All LDAPConnections send requests and get responses from LDAPConnThread (a thread).
Field Summary | |
(package private) LDAPConnSetupMgr |
m_connMgr
|
(package private) java.lang.Object |
m_sendRequestLock
|
(package private) java.lang.Object |
m_traceOutput
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
LDAPConnThread(LDAPConnSetupMgr connMgr,
LDAPCache cache,
java.lang.Object traceOutput)
Constructs a connection thread that maintains connection to the LDAP server. |
Method Summary | |
(package private) void |
abandon(int id)
Stop dispatching responses for a particular message ID. |
void |
deregister(LDAPConnection conn)
De-Register with this connection thread. |
(package private) int |
getClientCount()
|
(package private) java.io.InputStream |
getInputStream()
|
(package private) java.io.OutputStream |
getOutputStream()
|
(package private) void |
logLDAPMessage(LDAPMessage msg)
|
void |
register(LDAPConnection conn)
Register with this connection thread. |
(package private) void |
resultRetrieved()
This is called when a search result has been retrieved from the incoming queue. |
void |
run()
Reads from the LDAP server input stream for incoming LDAP messages. |
(package private) void |
sendRequest(LDAPConnection conn,
JDAPProtocolOp request,
LDAPMessageQueue toNotify,
LDAPConstraints cons)
Sends LDAP request via this connection thread. |
(package private) void |
setCache(LDAPCache cache)
Set the cache to use for searches. |
(package private) void |
setInputStream(java.io.InputStream is)
|
(package private) void |
setOutputStream(java.io.OutputStream os)
|
(package private) void |
setTraceOutput(java.lang.Object traceOutput)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
transient java.lang.Object m_sendRequestLock
transient LDAPConnSetupMgr m_connMgr
transient java.lang.Object m_traceOutput
Constructor Detail |
public LDAPConnThread(LDAPConnSetupMgr connMgr, LDAPCache cache, java.lang.Object traceOutput) throws LDAPException
Method Detail |
java.io.InputStream getInputStream()
void setInputStream(java.io.InputStream is)
java.io.OutputStream getOutputStream()
void setOutputStream(java.io.OutputStream os)
void setTraceOutput(java.lang.Object traceOutput)
void logLDAPMessage(LDAPMessage msg)
void setCache(LDAPCache cache)
cache
- The cache to use for searches; null
for no cachevoid sendRequest(LDAPConnection conn, JDAPProtocolOp request, LDAPMessageQueue toNotify, LDAPConstraints cons) throws LDAPException
request
- request to sendtoNotify
- response listener to invoke when the response
is ready
LDAPException
public void register(LDAPConnection conn)
conn
- LDAP connectionint getClientCount()
public void deregister(LDAPConnection conn)
conn
- LDAP connectionvoid resultRetrieved()
public void run()
void abandon(int id)
id
- Message ID for which to discard responses.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |