public class MemoryOptimizer extends Object implements SensorExecutionHandler, DecoratorExecutionHandler, DecoratorsPhaseHandler
SensorExecutionHandler.SensorExecutionEventDecoratorExecutionHandler.DecoratorExecutionEventDecoratorsPhaseHandler.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
Decorators. |
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)
SensorExecutionHandlerSensor.onSensorExecution in interface SensorExecutionHandlerpublic void onDecoratorExecution(DecoratorExecutionHandler.DecoratorExecutionEvent event)
DecoratorExecutionHandlerDecorator.onDecoratorExecution in interface DecoratorExecutionHandlerpublic void onDecoratorsPhase(DecoratorsPhaseHandler.DecoratorsPhaseEvent event)
DecoratorsPhaseHandlerDecorators.onDecoratorsPhase in interface DecoratorsPhaseHandlerCopyright © 2009-2012 SonarSource. All Rights Reserved.