Package pamScrollSystem
Class LoadQueueProgressData
java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
pamScrollSystem.LoadQueueProgressData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class pamViewFX.pamTask.PamTaskUpdate
STATUS_ANALYSING_FILES, STATUS_COUNTING_FILES, STATUS_DESERIALIZING, STATUS_DONE, STATUS_DONE_ERROR, STATUS_IDLE, STATUS_SERIALIZING, STATUS_SORTING -
Constructor Summary
ConstructorsConstructorDescriptionLoadQueueProgressData(int status) LoadQueueProgressData(String storeType, String streamName, int totalStreams, int stream, int state, long loadStart, long loadEnd, long loadCurrent, int nLoaded) -
Method Summary
Modifier and TypeMethodDescriptionintintlonglonglonggetName()Get the name of the load thread.intdoubleGet the progress of the load thread.doubleThere may be a need for two progress bars for long task- one showing overall progress and the other showing more fine scale loading tasks.Returns a message indicating progress.If two updates are available then this is used to return the fine progress update message.intgetState()intMethods inherited from class pamViewFX.pamTask.PamTaskUpdate
getStatus, isDualProgressUpdate, setDualProgressUpdate, setStatus
-
Field Details
-
STATE_LOADING
public static final int STATE_LOADING- See Also:
-
STATE_LINKINGSUBTABLE
public static final int STATE_LINKINGSUBTABLE- See Also:
-
STATE_DONE
public static final int STATE_DONE- See Also:
-
-
Constructor Details
-
LoadQueueProgressData
-
LoadQueueProgressData
public LoadQueueProgressData(int status)
-
-
Method Details
-
getTotalStreams
public int getTotalStreams()- Returns:
- the totalStreams
-
getIStream
public int getIStream()- Returns:
- the iStream
-
getStoreType
- Returns:
- the storeType
-
getStreamName
- Returns:
- the streamName
-
getiStream
public int getiStream()- Returns:
- the iStream
-
getLoadStart
public long getLoadStart()- Returns:
- the loadStart
-
getLoadEnd
public long getLoadEnd()- Returns:
- the loadEnd
-
getLoadCurrent
public long getLoadCurrent()- Returns:
- the loadCurrent
-
getnLoaded
public int getnLoaded()- Returns:
- the nLoaded
-
getState
public int getState()- Returns:
- the state
-
getName
Description copied from class:PamTaskUpdateGet the name of the load thread. Note the name is also the unique identifier for the running thread so cannot be the same between two different threads.- Specified by:
getNamein classPamTaskUpdate- Returns:
- the name of the thread.
-
getProgress
public double getProgress()Description copied from class:PamTaskUpdateGet the progress of the load thread. This is a value between 0 and 1 were 1 is equivalent to 100% or the thread having finished.Note that ProgressIndicator.INTERMEDIATE can be used as an update value to set progress to intermediate.
- Specified by:
getProgressin classPamTaskUpdate- Returns:
- the progress of the thread, between 0 and 1.
-
getProgressString
Description copied from class:PamTaskUpdateReturns a message indicating progress. Can be overriden to supply other messages.- Overrides:
getProgressStringin classPamTaskUpdate- Returns:
-
getProgress2
public double getProgress2()Description copied from class:PamTaskUpdateThere may be a need for two progress bars for long task- one showing overall progress and the other showing more fine scale loading tasks. If this is the case thenNote that ProgressIndicator.INTERMEDIATE can be used as an update value to set progress to intermediate.
- Overrides:
getProgress2in classPamTaskUpdate- Returns:
- the progress of the thread, between 0 and 1.
-
getProgressString2
If two updates are available then this is used to return the fine progress update message.- Overrides:
getProgressString2in classPamTaskUpdate- Returns:
-