Class StatisticRegistry<Solution_>
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.simple.SimpleMeterRegistry
org.optaplanner.benchmark.impl.statistic.StatisticRegistry<Solution_>
- All Implemented Interfaces:
 EventListener,PhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>
public class StatisticRegistry<Solution_>
extends io.micrometer.core.instrument.simple.SimpleMeterRegistry
implements PhaseLifecycleListener<Solution_>
- 
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.MeterRegistry.Config, io.micrometer.core.instrument.MeterRegistry.More - 
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(SolverMetric metric, BiConsumer<Long, AbstractStepScope<Solution_>> listener) voidaddListener(SolverMetric metric, Consumer<Long> listener) voidextractConstraintSummariesFromMeters(SolverMetric metric, io.micrometer.core.instrument.Tags runId, Consumer<ConstraintSummary<?>> constraintMatchTotalConsumer) voidextractScoreFromMeters(SolverMetric metric, io.micrometer.core.instrument.Tags runId, Consumer<Score<?>> scoreConsumer) protected TimeUnitvoidgetGaugeValue(String meterId, io.micrometer.core.instrument.Tags runId, Consumer<Number> gaugeConsumer) voidgetGaugeValue(SolverMetric metric, io.micrometer.core.instrument.Tags runId, Consumer<Number> gaugeConsumer) Set<io.micrometer.core.instrument.Meter.Id>getMeterIds(SolverMetric metric, io.micrometer.core.instrument.Tags runId) voidphaseEnded(AbstractPhaseScope<Solution_> phaseScope) voidphaseStarted(AbstractPhaseScope<Solution_> phaseScope) voidsolvingEnded(SolverScope<Solution_> solverScope) voidsolvingStarted(SolverScope<Solution_> solverScope) voidstepEnded(AbstractStepScope<Solution_> stepScope) voidstepStarted(AbstractStepScope<Solution_> stepScope) Methods inherited from class io.micrometer.core.instrument.simple.SimpleMeterRegistry
defaultHistogramConfig, getMetersAsString, newCounter, newDistributionSummary, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeter, newTimerMethods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, close, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newLongTaskTimer, newTimeGauge, remove, remove, removeByPreFilterId, summary, summary, timer, timerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingError 
- 
Constructor Details
- 
StatisticRegistry
 
 - 
 - 
Method Details
- 
addListener
 - 
addListener
public void addListener(SolverMetric metric, BiConsumer<Long, AbstractStepScope<Solution_>> listener)  - 
getMeterIds
public Set<io.micrometer.core.instrument.Meter.Id> getMeterIds(SolverMetric metric, io.micrometer.core.instrument.Tags runId)  - 
extractScoreFromMeters
public void extractScoreFromMeters(SolverMetric metric, io.micrometer.core.instrument.Tags runId, Consumer<Score<?>> scoreConsumer)  - 
extractConstraintSummariesFromMeters
public void extractConstraintSummariesFromMeters(SolverMetric metric, io.micrometer.core.instrument.Tags runId, Consumer<ConstraintSummary<?>> constraintMatchTotalConsumer)  - 
getGaugeValue
public void getGaugeValue(SolverMetric metric, io.micrometer.core.instrument.Tags runId, Consumer<Number> gaugeConsumer)  - 
getGaugeValue
 - 
getBaseTimeUnit
- Overrides:
 getBaseTimeUnitin classio.micrometer.core.instrument.simple.SimpleMeterRegistry
 - 
stepEnded
- Specified by:
 stepEndedin interfacePhaseLifecycleListener<Solution_>
 - 
phaseStarted
- Specified by:
 phaseStartedin interfacePhaseLifecycleListener<Solution_>
 - 
stepStarted
- Specified by:
 stepStartedin interfacePhaseLifecycleListener<Solution_>
 - 
phaseEnded
- Specified by:
 phaseEndedin interfacePhaseLifecycleListener<Solution_>
 - 
solvingStarted
- Specified by:
 solvingStartedin interfaceSolverLifecycleListener<Solution_>
 - 
solvingEnded
- Specified by:
 solvingEndedin interfaceSolverLifecycleListener<Solution_>
 
 -