com.deltax.util.listener
Class TSignalSource

java.lang.Object
  extended bycom.deltax.util.listener.BaseSignalSource
      extended bycom.deltax.util.listener.TSignalSource
All Implemented Interfaces:
java.lang.Runnable, SignalSource

public class TSignalSource
extends BaseSignalSource
implements java.lang.Runnable

A test nonthread signal source.

Version:
1.0
Author:
Cristiano Sadun

Nested Class Summary
static class TSignalSource.SignalType1
           
static class TSignalSource.SignalType2
           
 
Field Summary
 
Fields inherited from class com.deltax.util.listener.BaseSignalSource
ls
 
Constructor Summary
TSignalSource()
           
 
Method Summary
 int count(java.lang.Class signalType)
          Count the number of signals
 void run()
          Generate a burst of random signals.
 
Methods inherited from class com.deltax.util.listener.BaseSignalSource
addListener, countListeners, isRegistered, notify, notifyException, removeAllListeners, removeListener, supportsExceptionSignals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSignalSource

public TSignalSource()
Method Detail

run

public void run()
Generate a burst of random signals. Both signal class and size of the burst are random (between TSignalSource.SignalType1/2 and within 10 to 30 signals per burst).

Specified by:
run in interface java.lang.Runnable

count

public int count(java.lang.Class signalType)
Count the number of signals

Parameters:
signalType -
Returns: