Class TimedShutoffFirehoseFactory

  • All Implemented Interfaces:
    org.apache.druid.data.input.FirehoseFactory<org.apache.druid.data.input.impl.InputRowParser>

    @Deprecated
    public class TimedShutoffFirehoseFactory
    extends Object
    implements org.apache.druid.data.input.FirehoseFactory<org.apache.druid.data.input.impl.InputRowParser>
    Deprecated.
    Creates firehoses that shut off at a particular time. Useful for limiting the lifespan of a realtime job. Each Firehose created by this factory spins up and manages one thread for calling Firehose.close() asynchronously at the specified shutoffTime.
    • Constructor Detail

      • TimedShutoffFirehoseFactory

        public TimedShutoffFirehoseFactory​(org.apache.druid.data.input.FirehoseFactory delegateFactory,
                                           org.joda.time.DateTime shutoffTime)
        Deprecated.
    • Method Detail

      • connect

        public org.apache.druid.data.input.Firehose connect​(org.apache.druid.data.input.impl.InputRowParser parser,
                                                            File temporaryDirectory)
                                                     throws IOException
        Deprecated.
        Specified by:
        connect in interface org.apache.druid.data.input.FirehoseFactory<org.apache.druid.data.input.impl.InputRowParser>
        Throws:
        IOException
      • getDelegateFactory

        public org.apache.druid.data.input.FirehoseFactory getDelegateFactory()
        Deprecated.
      • getShutoffTime

        public org.joda.time.DateTime getShutoffTime()
        Deprecated.