public class FlushingPlumber extends RealtimePlumber
DUPLICATE, NOT_WRITABLE, THROWAWAY| Constructor and Description |
|---|
FlushingPlumber(org.joda.time.Duration flushDuration,
DataSchema schema,
RealtimeTuningConfig config,
FireDepartmentMetrics metrics,
ServiceEmitter emitter,
QueryRunnerFactoryConglomerate conglomerate,
DataSegmentAnnouncer segmentAnnouncer,
ExecutorService queryExecutorService,
JoinableFactory joinableFactory,
IndexMerger indexMerger,
IndexIO indexIO,
Cache cache,
CacheConfig cacheConfig,
CachePopulatorStats cachePopulatorStats,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
finishJob()
Perform any final processing and clean up after ourselves.
|
protected void |
flushAfterDuration(long truncatedTime,
Sink sink) |
Object |
startJob()
Perform any initial setup.
|
abandonSegment, add, bootstrapSinksFromDisk, computeBaseDir, computeCorruptedFileDumpDir, computePersistDir, getConfig, getQueryRunner, getRejectionPolicy, getSchema, getSinks, initializeExecutors, persist, persistHydrant, shutdownExecutors, startPersistThreadpublic FlushingPlumber(org.joda.time.Duration flushDuration,
DataSchema schema,
RealtimeTuningConfig config,
FireDepartmentMetrics metrics,
ServiceEmitter emitter,
QueryRunnerFactoryConglomerate conglomerate,
DataSegmentAnnouncer segmentAnnouncer,
ExecutorService queryExecutorService,
JoinableFactory joinableFactory,
IndexMerger indexMerger,
IndexIO indexIO,
Cache cache,
CacheConfig cacheConfig,
CachePopulatorStats cachePopulatorStats,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public Object startJob()
PlumberPlumber.finishJob().startJob in interface PlumberstartJob in class RealtimePlumberprotected void flushAfterDuration(long truncatedTime,
Sink sink)
public void finishJob()
PlumberfinishJob in interface PlumberfinishJob in class RealtimePlumberCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.