Class PeonAppenderatorsManager

java.lang.Object
org.apache.druid.segment.realtime.appenderator.PeonAppenderatorsManager
All Implemented Interfaces:
AppenderatorsManager

public class PeonAppenderatorsManager extends Object implements AppenderatorsManager
Manages Appenderators for tasks running within a CliPeon process. It provides the ability to create a realtime appenderator or multiple batch appenderators, and serves queries on the realtime appenderator. The implementation contains sanity checks that throw errors if more than one realtime appenderator is created, or if a task tries to create both realtime and batch appenderators. These checks can be adjusted if these assumptions are no longer true. Because the peon is a separate process that will terminate after task completion, this implementation relies on process shutdown for resource cleanup.