Class AbstractStatisticsPrinter<T>
- java.lang.Object
-
- com.evolveum.midpoint.schema.statistics.AbstractStatisticsPrinter<T>
-
- Direct Known Subclasses:
CachePerformanceInformationPrinter
,IterativeTaskInformationPrinter
,OperationsPerformanceInformationPrinter
,ProvisioningStatisticsPrinter
,RepositoryPerformanceInformationPrinter
,StructuredTaskProgressPrinter
,SynchronizationInformationPrinter
,TaskWorkBucketManagementPerformanceInformationPrinter
public abstract class AbstractStatisticsPrinter<T> extends Object
Prints statistics in selected format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractStatisticsPrinter.Format
static class
AbstractStatisticsPrinter.Options
static class
AbstractStatisticsPrinter.SortBy
-
Constructor Summary
Constructors Constructor Description AbstractStatisticsPrinter(T information, AbstractStatisticsPrinter.Options options, Integer iterations, Integer seconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
applyFormatting()
protected Number
avg(Number total, Integer countObject)
protected Number
div(Number total, Integer countObject)
protected void
initData()
protected void
initFormatting()
protected boolean
isCsv()
protected <X> X
nullIfFalse(boolean condition, X value)
protected Number
percent(Long value, Long baseObject)
-
-
-
Constructor Detail
-
AbstractStatisticsPrinter
public AbstractStatisticsPrinter(@NotNull T information, AbstractStatisticsPrinter.Options options, Integer iterations, Integer seconds)
-
-
Method Detail
-
initData
protected void initData()
-
initFormatting
protected void initFormatting()
-
isCsv
protected boolean isCsv()
-
applyFormatting
protected String applyFormatting()
-
nullIfFalse
protected <X> X nullIfFalse(boolean condition, X value)
-
-