- java.lang.Object
-
- com.ibm.j9ddr.corereaders.tdump.zebedee.util.ProgressMeter
-
public class ProgressMeter extends Object
This class is used to provide feedback on progress for long running (eg greater than one second) tasks.
-
-
Field Summary
Fields Modifier and Type Field Description String
message
The message associated with the current phase.int
percentage
The amount of progress as a percentage.
-
Constructor Summary
Constructors Constructor Description ProgressMeter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProgressMeter
get()
static void
set(int percentage)
static void
set(String message)
static void
set(String message, int percentage)
static void
set(String message, int current, int max)
-
-
-
Field Detail
-
message
public String message
The message associated with the current phase.
-
percentage
public int percentage
The amount of progress as a percentage.
-
-
Method Detail
-
set
public static void set(String message, int current, int max)
-
set
public static void set(String message, int percentage)
-
set
public static void set(String message)
-
set
public static void set(int percentage)
-
get
public static ProgressMeter get()
-
-