|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinput.EventQueueHandler
public class EventQueueHandler
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 |
---|
public static final java.lang.String SETTINGS_NAMESPACE
public static final java.lang.String NROF_SETTING
public static final java.lang.String CLASS_SETTING
public static final java.lang.String CLASS_PACKAGE
public static final java.lang.String PRELOAD_SETTING
public static final java.lang.String PATH_SETTING
Constructor Detail |
---|
public EventQueueHandler()
Method Detail |
---|
public java.util.List<EventQueue> getEventQueues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |