Package org.apache.lucene.sandbox.search
Class ProfilerCollectorManager
- java.lang.Object
-
- org.apache.lucene.sandbox.search.ProfilerCollectorManager
-
- All Implemented Interfaces:
CollectorManager<ProfilerCollector,ProfilerCollectorResult>
public abstract class ProfilerCollectorManager extends Object implements CollectorManager<ProfilerCollector,ProfilerCollectorResult>
Collector manager forProfilerCollector
-
-
Constructor Summary
Constructors Constructor Description ProfilerCollectorManager(String reason)Creates a profiler collector manager provided a certain reason
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CollectorcreateCollector()Creates the collector to be wrapped with aProfilerCollectorProfilerCollectornewCollector()ProfilerCollectorResultreduce(Collection<ProfilerCollector> collectors)
-
-
-
Constructor Detail
-
ProfilerCollectorManager
public ProfilerCollectorManager(String reason)
Creates a profiler collector manager provided a certain reason- Parameters:
reason- the reason for the collection
-
-
Method Detail
-
createCollector
protected abstract Collector createCollector() throws IOException
Creates the collector to be wrapped with aProfilerCollector- Throws:
IOException
-
newCollector
public final ProfilerCollector newCollector() throws IOException
- Specified by:
newCollectorin interfaceCollectorManager<ProfilerCollector,ProfilerCollectorResult>- Throws:
IOException
-
reduce
public ProfilerCollectorResult reduce(Collection<ProfilerCollector> collectors) throws IOException
- Specified by:
reducein interfaceCollectorManager<ProfilerCollector,ProfilerCollectorResult>- Throws:
IOException
-
-