Package binaryFileStorage
Class BinaryMapMakeProgress
java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
binaryFileStorage.BinaryMapMakeProgress
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class pamViewFX.pamTask.PamTaskUpdate
STATUS_DONE, STATUS_DONE_ERROR
-
Constructor Summary
ConstructorDescriptionBinaryMapMakeProgress
(int status, String streamName, int totalStreams, int currentStream) -
Method Summary
Modifier and TypeMethodDescriptionint
getName()
Get the name of the load thread.double
Get the progress of the load thread.Returns a message indicating progress.int
int
void
setCurrentStream
(int currentStream) void
setStatus
(int status) Set the status of the thread.void
setStreamName
(String streamName) void
setTotalStreams
(int totalStreams) Methods inherited from class pamViewFX.pamTask.PamTaskUpdate
getProgress2, getProgressString2, isDualProgressUpdate, setDualProgressUpdate
-
Field Details
-
STATUS_IDLE
public static final int STATUS_IDLE- See Also:
-
STATUS_COUNTING_FILES
public static final int STATUS_COUNTING_FILES- See Also:
-
STATUS_ANALYSING_FILES
public static final int STATUS_ANALYSING_FILES- See Also:
-
STATUS_SORTING
public static final int STATUS_SORTING- See Also:
-
STATUS_SERIALIZING
public static final int STATUS_SERIALIZING- See Also:
-
STATUS_DESERIALIZING
public static final int STATUS_DESERIALIZING- See Also:
-
-
Constructor Details
-
BinaryMapMakeProgress
-
-
Method Details
-
getStatus
public int getStatus()- Overrides:
getStatus
in classPamTaskUpdate
- Returns:
- the status
-
setStatus
public void setStatus(int status) Description copied from class:PamTaskUpdate
Set the status of the thread. This can either a generic status from the abstract class or a custom status.- Overrides:
setStatus
in classPamTaskUpdate
- Parameters:
status
- the status to set
-
getStreamName
- Returns:
- the streamName
-
setStreamName
- Parameters:
streamName
- the streamName to set
-
getTotalStreams
public int getTotalStreams()- Returns:
- the totalStreams
-
setTotalStreams
public void setTotalStreams(int totalStreams) - Parameters:
totalStreams
- the totalStreams to set
-
getCurrentStream
public int getCurrentStream()- Returns:
- the currentStream
-
setCurrentStream
public void setCurrentStream(int currentStream) - Parameters:
currentStream
- the currentStream to set
-
getProgress
public double getProgress()Description copied from class:PamTaskUpdate
Get 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:
getProgress
in classPamTaskUpdate
- Returns:
- the progress of the thread, between 0 and 1.
-
getName
Description copied from class:PamTaskUpdate
Get 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:
getName
in classPamTaskUpdate
- Returns:
- the name of the thread.
-
getProgressString
Description copied from class:PamTaskUpdate
Returns a message indicating progress. Can be overriden to supply other messages.- Overrides:
getProgressString
in classPamTaskUpdate
- Returns:
-