Class SinkOfFlume

java.lang.Object
org.apache.flume.sink.AbstractSink
org.apache.pulsar.io.flume.source.AbstractSinkOfFlume
org.apache.pulsar.io.flume.source.SinkOfFlume
All Implemented Interfaces:
org.apache.flume.conf.BatchSizeSupported, org.apache.flume.conf.Configurable, org.apache.flume.lifecycle.LifecycleAware, org.apache.flume.NamedComponent, org.apache.flume.Sink

public class SinkOfFlume extends AbstractSinkOfFlume implements org.apache.flume.conf.Configurable, org.apache.flume.conf.BatchSizeSupported
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.flume.Sink

    org.apache.flume.Sink.Status
  • Field Summary

    Fields inherited from class org.apache.pulsar.io.flume.source.AbstractSinkOfFlume

    records
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(org.apache.flume.Context context)
     
    long
     
    org.apache.flume.Sink.Status
     
    void
     
    void
     

    Methods inherited from class org.apache.pulsar.io.flume.source.AbstractSinkOfFlume

    getQueue

    Methods inherited from class org.apache.flume.sink.AbstractSink

    getChannel, getLifecycleState, getName, setChannel, setName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SinkOfFlume

      public SinkOfFlume()
  • Method Details

    • configure

      public void configure(org.apache.flume.Context context)
      Specified by:
      configure in interface org.apache.flume.conf.Configurable
    • getBatchSize

      public long getBatchSize()
      Specified by:
      getBatchSize in interface org.apache.flume.conf.BatchSizeSupported
    • process

      public org.apache.flume.Sink.Status process() throws org.apache.flume.EventDeliveryException
      Specified by:
      process in interface org.apache.flume.Sink
      Throws:
      org.apache.flume.EventDeliveryException
    • start

      public void start()
      Specified by:
      start in interface org.apache.flume.lifecycle.LifecycleAware
      Overrides:
      start in class org.apache.flume.sink.AbstractSink
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.flume.lifecycle.LifecycleAware
      Overrides:
      stop in class org.apache.flume.sink.AbstractSink