Package com.atlassian.crowd.util
Class TimedProgressOperation
java.lang.Object
com.atlassian.crowd.util.TimedOperation
com.atlassian.crowd.util.TimedProgressOperation
A class used for timing log messages. Construct an instance and provide the total number of
units of work. Then, call
incrementProgress() or incrementedProgress()
each time around the loop. If more than gapTime (by default one minute) has passed since
the start (or last logging) then progress will be logged at INFO. Otherwise, progress will be logged as TRACE.-
Field Summary
Fields inherited from class com.atlassian.crowd.util.TimedOperation
start -
Constructor Summary
ConstructorsConstructorDescriptionTimedProgressOperation(String action, int total, org.slf4j.Logger log) TimedProgressOperation(String action, int total, org.slf4j.Logger log, long gapTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicate that a unit of work has been done, and log if necessary.voidIndicate that a unit of work is about to be done, and log if necessary.Methods inherited from class com.atlassian.crowd.util.TimedOperation
complete
-
Constructor Details
-
TimedProgressOperation
-
TimedProgressOperation
-
-
Method Details
-
incrementProgress
public void incrementProgress()Indicate that a unit of work is about to be done, and log if necessary. -
incrementedProgress
public void incrementedProgress()Indicate that a unit of work has been done, and log if necessary.
-