java.lang.Object
org.apache.jena.system.progress.ProgressMonitorBasic
- All Implemented Interfaces:
ProgressMonitor
Simple
ProgressMonitor
that records time and ticks but does not print anything-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Finish and stop timing.void
finishMessage
(String message) Output the finishing message.void
Finish a section within the overall start-finish.getLabel()
long
Return the number of ticks.long
Return the elapsed section time taken.long
getTicks()
Return the number of ticks.long
getTime()
Return the elapsed time taken - this is only valid afterProgressMonitor.finish()
has been called.void
void
start()
Start and start timing.void
startMessage
(String message) Output the starting message.void
Start a section within the overall start-finish.void
tick()
Something happened
-
Constructor Details
-
ProgressMonitorBasic
public ProgressMonitorBasic()
-
-
Method Details
-
startMessage
Description copied from interface:ProgressMonitor
Output the starting message. The format is implementation dependent.- Specified by:
startMessage
in interfaceProgressMonitor
-
finishMessage
Description copied from interface:ProgressMonitor
Output the finishing message. The format is implementation dependent.- Specified by:
finishMessage
in interfaceProgressMonitor
-
start
public void start()Description copied from interface:ProgressMonitor
Start and start timing. This should be paired with a call toProgressMonitor.finish()
.- Specified by:
start
in interfaceProgressMonitor
-
finish
public void finish()Description copied from interface:ProgressMonitor
Finish and stop timing. The total time is available withProgressMonitor.getTime()
and the number of items processes withProgressMonitor.getTicks()
.- Specified by:
finish
in interfaceProgressMonitor
-
startSection
public void startSection()Description copied from interface:ProgressMonitor
Start a section within the overall start-finish.- Specified by:
startSection
in interfaceProgressMonitor
-
finishSection
public void finishSection()Description copied from interface:ProgressMonitor
Finish a section within the overall start-finish.- Specified by:
finishSection
in interfaceProgressMonitor
-
tick
public void tick()Description copied from interface:ProgressMonitor
Something happened- Specified by:
tick
in interfaceProgressMonitor
-
getTicks
public long getTicks()Description copied from interface:ProgressMonitor
Return the number of ticks. Valid afterProgressMonitor.start()
has been called.- Specified by:
getTicks
in interfaceProgressMonitor
-
getTime
public long getTime()Description copied from interface:ProgressMonitor
Return the elapsed time taken - this is only valid afterProgressMonitor.finish()
has been called.- Specified by:
getTime
in interfaceProgressMonitor
-
getSectionTicks
public long getSectionTicks()Description copied from interface:ProgressMonitor
Return the number of ticks. Valid afterProgressMonitor.startSection()
has been called.- Specified by:
getSectionTicks
in interfaceProgressMonitor
-
getSectionTime
public long getSectionTime()Description copied from interface:ProgressMonitor
Return the elapsed section time taken.- Specified by:
getSectionTime
in interfaceProgressMonitor
-
getLabel
- Specified by:
getLabel
in interfaceProgressMonitor
-
setLabel
- Specified by:
setLabel
in interfaceProgressMonitor
-