org.sonar.batch.index
Class MemoryOptimizer
java.lang.Object
org.sonar.batch.index.MemoryOptimizer
- All Implemented Interfaces:
- DecoratorExecutionHandler, DecoratorsPhaseHandler, EventHandler, SensorExecutionHandler, BatchComponent, BatchExtension, Extension
public class MemoryOptimizer
- extends Object
- implements SensorExecutionHandler, DecoratorExecutionHandler, DecoratorsPhaseHandler
- Since:
- 2.7
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryOptimizer
public MemoryOptimizer(DatabaseSession session)
evictDataMeasure
public void evictDataMeasure(Measure measure,
MeasureModel model)
- Remove data of a database measure from memory.
reloadMeasure
public Measure reloadMeasure(Measure measure)
flushMemory
public void flushMemory()
onSensorExecution
public void onSensorExecution(SensorExecutionHandler.SensorExecutionEvent event)
- Description copied from interface:
SensorExecutionHandler
- Called before and after execution of
Sensor
.
- Specified by:
onSensorExecution
in interface SensorExecutionHandler
onDecoratorExecution
public void onDecoratorExecution(DecoratorExecutionHandler.DecoratorExecutionEvent event)
- Description copied from interface:
DecoratorExecutionHandler
- Called before and after execution of
Decorator
.
- Specified by:
onDecoratorExecution
in interface DecoratorExecutionHandler
onDecoratorsPhase
public void onDecoratorsPhase(DecoratorsPhaseHandler.DecoratorsPhaseEvent event)
- Description copied from interface:
DecoratorsPhaseHandler
- Called before and after execution of all
Decorator
s.
- Specified by:
onDecoratorsPhase
in interface DecoratorsPhaseHandler
Copyright © 2009-2012 SonarSource. All Rights Reserved.