|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.qdemo.gjsa.TransactionLoggerDemo
Demonstration program for transaction loggers.
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 |
public static final java.lang.String TABLENAME
public static final int RECEIVERCOUNT
public static final int PRODUCERMEANWAIT
public static final int CONSUMERMEANWAIT
public ConsoleWrapper cw
public TransactionLogger tl
public static final java.util.Random rndgen
Constructor Detail |
public TransactionLoggerDemo()
Method Detail |
public static final int getRandomNumber(int min, int max)
min
- Description of the Parametermax
- Description of the Parameter
public void runDemonstration(java.lang.String[] args)
args
- Description of the Parameterpublic static void main(java.lang.String[] args)
args
- The command line arguments
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |