Class SegmentBootstrapper
java.lang.Object
org.apache.druid.server.coordination.SegmentBootstrapper
Responsible for bootstrapping segments already cached on disk and bootstrap segments fetched from the coordinator.
Also responsible for announcing the node as a data server if applicable, once the bootstrapping operations
are complete.
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentBootstrapper(SegmentLoadDropHandler loadDropHandler, SegmentLoaderConfig config, DataSegmentAnnouncer segmentAnnouncer, DataSegmentServerAnnouncer serverAnnouncer, SegmentManager segmentManager, ServerTypeConfig serverTypeConfig, CoordinatorClient coordinatorClient, ServiceEmitter emitter, DataSourceTaskIdHolder datasourceHolder) -
Method Summary
-
Constructor Details
-
SegmentBootstrapper
@Inject public SegmentBootstrapper(SegmentLoadDropHandler loadDropHandler, SegmentLoaderConfig config, DataSegmentAnnouncer segmentAnnouncer, DataSegmentServerAnnouncer serverAnnouncer, SegmentManager segmentManager, ServerTypeConfig serverTypeConfig, CoordinatorClient coordinatorClient, ServiceEmitter emitter, DataSourceTaskIdHolder datasourceHolder)
-
-
Method Details
-
start
- Throws:
IOException
-
stop
public void stop() -
isBootstrappingComplete
public boolean isBootstrappingComplete()
-