|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.xmlBlaster.protocol.jdbc.XmlDBAdapterWorker
public class XmlDBAdapterWorker
For every database access, an instance of this class does the work in a dedicated thread.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private I_Publish |
callback
|
private byte[] |
content
|
private java.lang.String |
cust
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private NamedConnectionPool |
namedPool
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
XmlDBAdapterWorker(Global glob,
java.lang.String cust,
byte[] content,
I_Publish callback,
NamedConnectionPool namedPool)
Create the worker instance to handle a single RDBMS request. |
|
| Method Summary | |
|---|---|
void |
run()
Query the database. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
|---|
private static final java.lang.String ME
private final Global glob
private static java.util.logging.Logger log
private java.lang.String cust
private byte[] content
private I_Publish callback
private NamedConnectionPool namedPool
| Constructor Detail |
|---|
public XmlDBAdapterWorker(Global glob,
java.lang.String cust,
byte[] content,
I_Publish callback,
NamedConnectionPool namedPool)
cust - The sender of the SQL messagecontent - The SQL statementcallback - Interface to publish the XML based result setnamedPool - A pool of JDBC connections for the RDBMS users| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||