QJCC homepage

biz.chitec.qdemo.gjsa
Class TransactionLoggerDemo.DataProducer

java.lang.Object
  extended byjava.lang.Thread
      extended bybiz.chitec.qdemo.gjsa.TransactionLoggerDemo.DataProducer
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TransactionLoggerDemo

private static class TransactionLoggerDemo.DataProducer
extends java.lang.Thread

Log data creator. Creates a more or less steady stream of background data and writes them into the logger.

Author:
dh

Field Summary
private  long currentmsgnum
           
private  java.sql.Statement dbstmt
           
private  TransactionLogger tl
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TransactionLoggerDemo.DataProducer(TransactionLogger tlx, java.sql.Connection conn)
          Constructor for the DataProducer object
 
Method Summary
 long getLastProduced()
          Gets the lastProduced attribute of the DataProducer object
 void run()
          Main processing method for the DataProducer object
 
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

dbstmt

private java.sql.Statement dbstmt

currentmsgnum

private long currentmsgnum

tl

private TransactionLogger tl
Constructor Detail

TransactionLoggerDemo.DataProducer

public TransactionLoggerDemo.DataProducer(TransactionLogger tlx,
                                          java.sql.Connection conn)
Constructor for the DataProducer object

Parameters:
tlx - Description of the Parameter
conn - Description of the Parameter
Method Detail

getLastProduced

public long getLastProduced()
Gets the lastProduced attribute of the DataProducer object

Returns:
The lastProduced value

run

public void run()
Main processing method for the DataProducer object


QJCC homepage