public class EventGenerator extends InternalTask
| Constructor and Description |
|---|
EventGenerator()
To run on active layers
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishUp(boolean forceStop)
Wait for processes to finish
|
DBTask |
getDBTask()
Retrieves the EVENT_GEN task so that this task will be notified that we are still running.
|
protected boolean |
isRunning(DBEventCondition ec,
VirtualDB vDB)
Determines if the Event is currently being processed
|
void |
process()
Scans each database layer searching for Periodic events that are now valid
|
protected void |
processEvents(VirtualDB layer)
Retrieves the list of periodic events and calls the scan method for each.
|
void |
scanDB(int layerID)
Determines if this layer requires scanning and if it does calls processEvents
|
protected boolean |
shouldRunCondition(DBEventCondition ec,
VirtualDB vDB)
Determines if this event should be tested based on the scan interval
If the event is currently running then we do not run again
|
creatSchedule, disableHA, doError, enableHA, execute, getDBTask, getDisplayName, getInitialScanTime, getOccurences, getParameterFile, getParameterValues, getRepeatEvery, getTaskBeatLayer, getTimeZone, heartBeat, isBatchMode, isTerminated, join, join, makeIdle, makeThreadName, parseTime, pause, paused, resumed, run, setBatchMode, setDelayStart, setDisplayName, setOccurences, setParameterFile, setParameterValue, setRepeat, setRepeatEvery, setRepeatEvery, setStartTime, setTaskBeatLayer, setTimeZoneId, terminate, terminated, waitOrRepeatpublic void process()
throws java.lang.Exception
process in class InternalTaskjava.lang.Exception - - a serious errorpublic void scanDB(int layerID)
layerID - - layer idprotected void processEvents(@Nonnull
VirtualDB layer)
throws NotFoundException
layer - - layer being processedNotFoundException@CheckReturnValue
protected boolean shouldRunCondition(@Nonnull
DBEventCondition ec,
@Nonnull
VirtualDB vDB)
throws NotFoundException
ec - - eventvDB - - current layerNotFoundException@CheckReturnValue
protected final boolean isRunning(@Nonnull
DBEventCondition ec,
@Nonnull
VirtualDB vDB)
ec - - eventvDB - - current layerprotected void finishUp(boolean forceStop)
finishUp in class InternalTaskforceStop - - true if process was manually canceled rather then finishing naturally@Nullable public DBTask getDBTask()
getDBTask in class InternalTaskstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.