xmlBlaster 2.2.0 API

org.xmlBlaster.protocol.jdbc
Class XmlDBAdapterWorker

java.lang.Object
  extended by java.lang.Thread
      extended by org.xmlBlaster.protocol.jdbc.XmlDBAdapterWorker
All Implemented Interfaces:
java.lang.Runnable

public class XmlDBAdapterWorker
extends java.lang.Thread

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

ME

private static final java.lang.String ME
See Also:
Constant Field Values

glob

private final Global glob

log

private static java.util.logging.Logger log

cust

private java.lang.String cust

content

private byte[] content

callback

private I_Publish callback

namedPool

private NamedConnectionPool namedPool
Constructor Detail

XmlDBAdapterWorker

public XmlDBAdapterWorker(Global glob,
                          java.lang.String cust,
                          byte[] content,
                          I_Publish callback,
                          NamedConnectionPool namedPool)
Create the worker instance to handle a single RDBMS request.

Parameters:
cust - The sender of the SQL message
content - The SQL statement
callback - Interface to publish the XML based result set
namedPool - A pool of JDBC connections for the RDBMS users
Method Detail

run

public void run()
Query the database.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.