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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Finish and stop timing.voidfinishMessage(String message) Output the finishing message.voidFinish a section within the overall start-finish.getLabel()longReturn the number of ticks.longReturn the elapsed section time taken.longgetTicks()Return the number of ticks.longgetTime()Return the elapsed time taken - this is only valid afterProgressMonitor.finish()has been called.voidvoidstart()Start and start timing.voidstartMessage(String message) Output the starting message.voidStart a section within the overall start-finish.voidtick()Something happened
-
Constructor Details
-
ProgressMonitorBasic
public ProgressMonitorBasic()
-
-
Method Details
-
startMessage
Description copied from interface:ProgressMonitorOutput the starting message. The format is implementation dependent.- Specified by:
startMessagein interfaceProgressMonitor
-
finishMessage
Description copied from interface:ProgressMonitorOutput the finishing message. The format is implementation dependent.- Specified by:
finishMessagein interfaceProgressMonitor
-
start
public void start()Description copied from interface:ProgressMonitorStart and start timing. This should be paired with a call toProgressMonitor.finish().- Specified by:
startin interfaceProgressMonitor
-
finish
public void finish()Description copied from interface:ProgressMonitorFinish and stop timing. The total time is available withProgressMonitor.getTime()and the number of items processes withProgressMonitor.getTicks().- Specified by:
finishin interfaceProgressMonitor
-
startSection
public void startSection()Description copied from interface:ProgressMonitorStart a section within the overall start-finish.- Specified by:
startSectionin interfaceProgressMonitor
-
finishSection
public void finishSection()Description copied from interface:ProgressMonitorFinish a section within the overall start-finish.- Specified by:
finishSectionin interfaceProgressMonitor
-
tick
public void tick()Description copied from interface:ProgressMonitorSomething happened- Specified by:
tickin interfaceProgressMonitor
-
getTicks
public long getTicks()Description copied from interface:ProgressMonitorReturn the number of ticks. Valid afterProgressMonitor.start()has been called.- Specified by:
getTicksin interfaceProgressMonitor
-
getTime
public long getTime()Description copied from interface:ProgressMonitorReturn the elapsed time taken - this is only valid afterProgressMonitor.finish()has been called.- Specified by:
getTimein interfaceProgressMonitor
-
getSectionTicks
public long getSectionTicks()Description copied from interface:ProgressMonitorReturn the number of ticks. Valid afterProgressMonitor.startSection()has been called.- Specified by:
getSectionTicksin interfaceProgressMonitor
-
getSectionTime
public long getSectionTime()Description copied from interface:ProgressMonitorReturn the elapsed section time taken.- Specified by:
getSectionTimein interfaceProgressMonitor
-
getLabel
- Specified by:
getLabelin interfaceProgressMonitor
-
setLabel
- Specified by:
setLabelin interfaceProgressMonitor
-