QJCC homepage

biz.chitec.qdemo.gjsa
Class TransactionLoggerDemo

java.lang.Object
  extended bybiz.chitec.qdemo.gjsa.TransactionLoggerDemo

public class TransactionLoggerDemo
extends java.lang.Object

Demonstration program for transaction loggers.

Version:
$Id: 88c5299583692a68493074a7813b6f3b3add9229 $
Author:
chitec/Dirk Hillbrecht 2002. Distributed under the terms of the GNU LGPL.

Nested Class Summary
private static class TransactionLoggerDemo.DataProducer
          Log data creator.
private  class TransactionLoggerDemo.OutputThread
          Description of the Class
private  class TransactionLoggerDemo.SimpleReceiver
          Example receiver.
 
Field Summary
static int CONSUMERMEANWAIT
          Mean waiting of consumers
 ConsoleWrapper cw
          The output facility
static int PRODUCERMEANWAIT
          Mean waiting of producer
static int RECEIVERCOUNT
          The number of receivers.
static java.util.Random rndgen
          A random number generator
static java.lang.String TABLENAME
          The table name for the TransactionLogger.
 TransactionLogger tl
          The logger whose capabilities are demonstrated.
 
Constructor Summary
TransactionLoggerDemo()
           
 
Method Summary
static int getRandomNumber(int min, int max)
          Returns a random number within the given range, both included.
static void main(java.lang.String[] args)
          The main program for the TransactionLoggerDemo class
 void runDemonstration(java.lang.String[] args)
          Do the demo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLENAME

public static final java.lang.String TABLENAME
The table name for the TransactionLogger.

See Also:
Constant Field Values

RECEIVERCOUNT

public static final int RECEIVERCOUNT
The number of receivers.

See Also:
Constant Field Values

PRODUCERMEANWAIT

public static final int PRODUCERMEANWAIT
Mean waiting of producer

See Also:
Constant Field Values

CONSUMERMEANWAIT

public static final int CONSUMERMEANWAIT
Mean waiting of consumers

See Also:
Constant Field Values

cw

public ConsoleWrapper cw
The output facility


tl

public TransactionLogger tl
The logger whose capabilities are demonstrated.


rndgen

public static final java.util.Random rndgen
A random number generator

Constructor Detail

TransactionLoggerDemo

public TransactionLoggerDemo()
Method Detail

getRandomNumber

public static final int getRandomNumber(int min,
                                        int max)
Returns a random number within the given range, both included.

Parameters:
min - Description of the Parameter
max - Description of the Parameter
Returns:
The randomNumber value

runDemonstration

public void runDemonstration(java.lang.String[] args)
Do the demo

Parameters:
args - Description of the Parameter

main

public static void main(java.lang.String[] args)
The main program for the TransactionLoggerDemo class

Parameters:
args - The command line arguments

QJCC homepage