Package binaryFileStorage
Class BinaryMapMakeProgress
java.lang.Object
pamViewFX.pamTask.PamTaskUpdate
binaryFileStorage.BinaryMapMakeProgress
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class pamViewFX.pamTask.PamTaskUpdate
STATUS_DONE, STATUS_DONE_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionBinaryMapMakeProgress(int status, String streamName, int totalStreams, int currentStream) -
Method Summary
Modifier and TypeMethodDescriptionintgetName()Get the name of the load thread.doubleGet the progress of the load thread.Returns a message indicating progress.intintvoidsetCurrentStream(int currentStream) voidsetStatus(int status) Set the status of the thread.voidsetStreamName(String streamName) voidsetTotalStreams(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:
getStatusin classPamTaskUpdate- Returns:
- the status
-
setStatus
public void setStatus(int status) Description copied from class:PamTaskUpdateSet the status of the thread. This can either a generic status from the abstract class or a custom status.- Overrides:
setStatusin 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: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.
-
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.
-
getProgressString
Description copied from class:PamTaskUpdateReturns a message indicating progress. Can be overriden to supply other messages.- Overrides:
getProgressStringin classPamTaskUpdate- Returns:
-