public class MemoryOptimizer extends Object implements SensorExecutionHandler, DecoratorExecutionHandler, DecoratorsPhaseHandler
SensorExecutionHandler.SensorExecutionEvent
DecoratorExecutionHandler.DecoratorExecutionEvent
DecoratorsPhaseHandler.DecoratorsPhaseEvent
Constructor and Description |
---|
MemoryOptimizer(DatabaseSession session) |
Modifier and Type | Method and Description |
---|---|
void |
evictDataMeasure(Measure measure,
MeasureModel model)
Remove data of a database measure from memory.
|
void |
flushMemory() |
void |
onDecoratorExecution(DecoratorExecutionHandler.DecoratorExecutionEvent event)
Called before and after execution of
Decorator . |
void |
onDecoratorsPhase(DecoratorsPhaseHandler.DecoratorsPhaseEvent event)
Called before and after execution of all
Decorator s. |
void |
onSensorExecution(SensorExecutionHandler.SensorExecutionEvent event)
Called before and after execution of
Sensor . |
Measure |
reloadMeasure(Measure measure) |
public MemoryOptimizer(DatabaseSession session)
public void evictDataMeasure(Measure measure, MeasureModel model)
public Measure reloadMeasure(Measure measure)
public void flushMemory()
public void onSensorExecution(SensorExecutionHandler.SensorExecutionEvent event)
SensorExecutionHandler
Sensor
.onSensorExecution
in interface SensorExecutionHandler
public void onDecoratorExecution(DecoratorExecutionHandler.DecoratorExecutionEvent event)
DecoratorExecutionHandler
Decorator
.onDecoratorExecution
in interface DecoratorExecutionHandler
public void onDecoratorsPhase(DecoratorsPhaseHandler.DecoratorsPhaseEvent event)
DecoratorsPhaseHandler
Decorator
s.onDecoratorsPhase
in interface DecoratorsPhaseHandler
Copyright © 2009-2012 SonarSource. All Rights Reserved.