input
Class EventQueueHandler

java.lang.Object
  extended by input.EventQueueHandler

public class EventQueueHandler
extends java.lang.Object

Handler for managing event queues. Supports two different type of event queues: external event queues and event generator classes. For external event queues, the events are defined in external data file(s) (see e.g. input.StandarEventsReader). Event generator classes define events dynamically. Both type of event queues must implement the input.EventQueue interface.

The total number of event queues to load is defined with variable NROF_SETTING, e.g.
Events.nrof = 3
Separate event queues are configured with syntax EventsN.variable = value e.g.:
Events1.filePath = ee/messages.txt
or
Events2.class = RandomMessageGenerator

External event files are used when the variable PATH_SETTING is used to define the path to the event file and event generator class is loaded when the name of the class is defined with CLASS_SETTING.


Field Summary
static java.lang.String CLASS_PACKAGE
          name of the package where event generator classes are looked from
static java.lang.String CLASS_SETTING
          name of the events class (for class based events) -setting id ("class")
static java.lang.String NROF_SETTING
          number of event queues -setting id ("nrof")
static java.lang.String PATH_SETTING
          path of external events file -setting id ("filePath")
static java.lang.String PRELOAD_SETTING
          number of events to preload from file -setting id ("nrofPreload")
static java.lang.String SETTINGS_NAMESPACE
          Event queue settings main namespace ("Events")
 
Constructor Summary
EventQueueHandler()
          Creates a new EventQueueHandler which can be queried for event queues.
 
Method Summary
 java.util.List<EventQueue> getEventQueues()
          Returns all the loaded event queues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETTINGS_NAMESPACE

public static final java.lang.String SETTINGS_NAMESPACE
Event queue settings main namespace ("Events")

See Also:
Constant Field Values

NROF_SETTING

public static final java.lang.String NROF_SETTING
number of event queues -setting id ("nrof")

See Also:
Constant Field Values

CLASS_SETTING

public static final java.lang.String CLASS_SETTING
name of the events class (for class based events) -setting id ("class")

See Also:
Constant Field Values

CLASS_PACKAGE

public static final java.lang.String CLASS_PACKAGE
name of the package where event generator classes are looked from

See Also:
Constant Field Values

PRELOAD_SETTING

public static final java.lang.String PRELOAD_SETTING
number of events to preload from file -setting id ("nrofPreload")

See Also:
Constant Field Values

PATH_SETTING

public static final java.lang.String PATH_SETTING
path of external events file -setting id ("filePath")

See Also:
Constant Field Values
Constructor Detail

EventQueueHandler

public EventQueueHandler()
Creates a new EventQueueHandler which can be queried for event queues.

Method Detail

getEventQueues

public java.util.List<EventQueue> getEventQueues()
Returns all the loaded event queues

Returns:
all the loaded event queues