Package offlineProcessing
Class TaskGroupParams
java.lang.Object
offlineProcessing.TaskGroupParams
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
Parameter control for offline task groups.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionint
The data to process flag e.g.boolean
Delete old database entries.long
used in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in futurelong
Time of the last section of data to be processed.boolean
Each time processData is called we can either load ALL of the secondary data block data for that block or can only call loading secondary data for the times we're interested in.static final int
Process all data in the datastore (binary, database, or wherever).static final int
process only the data currently loaded in memory.static final int
Process new data only - i.e.static final int
Process a specific period of datastatic final int
Process imported time chunks.static final long
long
used in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in futureNote which will get written to the database of completed tasks.ArrayList<long[]>
An array of time chunks in millis. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a set of data that describes all of the parameters in a classboolean
getTaskSelection
(int iTask) Get the selection state of a taskvoid
setTaskSelection
(int iTask, boolean selState) Set the selection state of a particular task.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
PROCESS_LOADED
public static final int PROCESS_LOADEDprocess only the data currently loaded in memory.- See Also:
-
PROCESS_ALL
public static final int PROCESS_ALLProcess all data in the datastore (binary, database, or wherever).- See Also:
-
PROCESS_NEW
public static final int PROCESS_NEWProcess new data only - i.e. data which arrived after the lastDataTime field.- See Also:
-
lastDataTime
public long lastDataTimeTime of the last section of data to be processed. -
PROCESS_SPECIFICPERIOD
public static final int PROCESS_SPECIFICPERIODProcess a specific period of data- See Also:
-
PROCESS_TME_CHUNKS
public static final int PROCESS_TME_CHUNKSProcess imported time chunks.- See Also:
-
startRedoDataTime
public long startRedoDataTimeused in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in futureStart time used for one off re-processing jobs
-
endRedoDataTime
public long endRedoDataTimeused in PROCESS_SPECIFICPERIOD mode-will not affect PROCESS_NEW and lastDataTime boolean could be used to govern this in futureEnd time used for one off re-processing jobs
-
dataChoice
public int dataChoiceThe data to process flag e.g. only data loaded in memory or the entire dataset. -
deleteOld
public boolean deleteOldDelete old database entries. -
loadBlockedSecondaryData
public boolean loadBlockedSecondaryDataEach time processData is called we can either load ALL of the secondary data block data for that block or can only call loading secondary data for the times we're interested in. IF this is true, we'll load everything. -
timeChunks
An array of time chunks in millis. -
taskNote
Note which will get written to the database of completed tasks.
-
-
Constructor Details
-
TaskGroupParams
public TaskGroupParams()
-
-
Method Details
-
setTaskSelection
public void setTaskSelection(int iTask, boolean selState) Set the selection state of a particular task.- Parameters:
iTask
- task number (counting from 0)selState
- selection state
-
getTaskSelection
public boolean getTaskSelection(int iTask) Get the selection state of a task- Parameters:
iTask
- task number (counting from 0)- Returns:
- state (default is false).
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-