Class TimedShutoffFirehoseFactory
- java.lang.Object
-
- org.apache.druid.segment.realtime.firehose.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. EachFirehosecreated by this factory spins up and manages one thread for callingFirehose.close()asynchronously at the specifiedshutoffTime.
-
-
Constructor Summary
Constructors Constructor Description TimedShutoffFirehoseFactory(org.apache.druid.data.input.FirehoseFactory delegateFactory, org.joda.time.DateTime shutoffTime)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.druid.data.input.Firehoseconnect(org.apache.druid.data.input.impl.InputRowParser parser, File temporaryDirectory)Deprecated.org.apache.druid.data.input.FirehoseFactorygetDelegateFactory()Deprecated.org.joda.time.DateTimegetShutoffTime()Deprecated.
-
-
-
Method Detail
-
connect
public org.apache.druid.data.input.Firehose connect(org.apache.druid.data.input.impl.InputRowParser parser, File temporaryDirectory) throws IOExceptionDeprecated.- Specified by:
connectin interfaceorg.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.
-
-