QJCC homepage

biz.chitec.qdemo.util
Class UpdateableLoggerDemo

java.lang.Object
  extended bybiz.chitec.qdemo.util.UpdateableLoggerDemo

public class UpdateableLoggerDemo
extends java.lang.Object

Demonstration program for updateable loggers.

Version:
$Id: b07315621e2b239ada657246d279d1e5032ad005 $
Author:
chitec/Dirk Hillbrecht 2001. Distributed under the terms of the GNU LGPL.

Nested Class Summary
private  class UpdateableLoggerDemo.BackgroundLogDataCreator
          Dummy log data creator.
private  class UpdateableLoggerDemo.ExampleUpdaterFactory
          The updater factory with integreated updater implementation.
private  class UpdateableLoggerDemo.OutputThread
          Description of the Class
private  class UpdateableLoggerDemo.SimpleReceiver
          Example receiver.
 
Field Summary
 ConsoleWrapper cw
          The output facility
static int RECEIVERCOUNT
          The number of receivers.
static java.util.Random rndgen
          A random number generator
 UpdateableLogger ul
          The logger whose capabilities are demonstrated.
 
Constructor Summary
UpdateableLoggerDemo()
           
 
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 UpdateableLoggerDemo class
 void runDemonstration()
          Do the demo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECEIVERCOUNT

public static final int RECEIVERCOUNT
The number of receivers.

See Also:
Constant Field Values

cw

public ConsoleWrapper cw
The output facility


ul

public UpdateableLogger ul
The logger whose capabilities are demonstrated.


rndgen

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

Constructor Detail

UpdateableLoggerDemo

public UpdateableLoggerDemo()
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()
Do the demo


main

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

Parameters:
args - The command line arguments

QJCC homepage