public abstract class Exposure
extends java.util.Properties
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXPOSURE_TYPE_DELAY
A delay Exposure type - 'delay'
|
static java.lang.String |
EXPOSURE_TYPE_RATE
A rate exposure type - 'rate'
|
static java.lang.String |
PROPERTY_RANDOM
Whether or not tags should be selected from the tag set at random -
'random'
|
static java.lang.String |
PROPERTY_STOPCOUNT
A trigger to stop the runner based on the number of tags sent to esper
'stop.count'
|
static java.lang.String |
PROPERTY_STOPTIMER
A trigger to stop the runner based on a timer - 'stop.timer'
|
static java.lang.String |
PROPERTY_TYPE
The type of exposure
|
Constructor and Description |
---|
Exposure(java.util.Properties defaults) |
Modifier and Type | Method and Description |
---|---|
abstract ExposureRunner<?> |
createRunner(java.util.List<AbstractReadData<?>> tags,
EPRuntime runtime)
Create a concrete runner for this Exposure
|
java.lang.String |
getExposureType()
Get the type of this exposure
|
boolean |
getRandom()
Whether or not this exposure selects from the tag list at random
|
int |
getTagCountStopTrigger()
Get the number of tags we should send to esper before stopping.
|
long |
getTimerStopTrigger()
Get the length of time this runner should run until it stops
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public static final java.lang.String PROPERTY_TYPE
public static final java.lang.String EXPOSURE_TYPE_DELAY
public static final java.lang.String EXPOSURE_TYPE_RATE
public static final java.lang.String PROPERTY_STOPCOUNT
public static final java.lang.String PROPERTY_STOPTIMER
public static final java.lang.String PROPERTY_RANDOM
public java.lang.String getExposureType()
public int getTagCountStopTrigger()
public long getTimerStopTrigger()
public boolean getRandom()
public abstract ExposureRunner<?> createRunner(java.util.List<AbstractReadData<?>> tags, EPRuntime runtime)
tags
- runtime
-