T - Type of the output payload.public abstract class AbstractFlumeInputOperator<T> extends Object implements com.datatorrent.api.InputOperator, com.datatorrent.api.Operator.ActivationListener<com.datatorrent.api.Context.OperatorContext>, com.datatorrent.api.Operator.IdleTimeHandler, com.datatorrent.api.Operator.CheckpointListener, com.datatorrent.api.Partitioner<AbstractFlumeInputOperator<T>>
Abstract AbstractFlumeInputOperator class.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractFlumeInputOperator.ConnectionStatus |
static class |
AbstractFlumeInputOperator.ZKStatsListner |
com.datatorrent.api.Operator.ActivationListener<CONTEXT extends com.datatorrent.api.Context>, com.datatorrent.api.Operator.CheckpointListener, com.datatorrent.api.Operator.CheckpointNotificationListener, com.datatorrent.api.Operator.DelayOperator, com.datatorrent.api.Operator.IdleTimeHandler, com.datatorrent.api.Operator.InputPort<T>, com.datatorrent.api.Operator.OutputPort<T>, com.datatorrent.api.Operator.Port, com.datatorrent.api.Operator.ProcessingMode, com.datatorrent.api.Operator.ShutdownException, com.datatorrent.api.Operator.Unifier<T>| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<Collection<Discovery.Service<byte[]>>> |
discoveredFlumeSinks |
com.datatorrent.api.DefaultOutputPort<com.datatorrent.netlet.util.Slice> |
drop |
com.datatorrent.api.DefaultOutputPort<T> |
output |
| Constructor and Description |
|---|
AbstractFlumeInputOperator() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(com.datatorrent.api.Context.OperatorContext ctx) |
void |
beginWindow(long windowId) |
void |
checkpointed(long windowId) |
void |
committed(long windowId) |
abstract T |
convert(org.apache.flume.Event event) |
void |
deactivate() |
Collection<com.datatorrent.api.Partitioner.Partition<AbstractFlumeInputOperator<T>>> |
definePartitions(Collection<com.datatorrent.api.Partitioner.Partition<AbstractFlumeInputOperator<T>>> partitions,
com.datatorrent.api.Partitioner.PartitioningContext context) |
void |
emitTuples() |
void |
endWindow() |
boolean |
equals(Object o) |
com.datatorrent.api.StreamCodec<org.apache.flume.Event> |
getCodec() |
String[] |
getConnectAddresses() |
long |
getMaxEventsPerSecond() |
void |
handleIdleTime() |
int |
hashCode() |
void |
partitioned(Map<Integer,com.datatorrent.api.Partitioner.Partition<AbstractFlumeInputOperator<T>>> partitions) |
void |
setCodec(com.datatorrent.api.StreamCodec<org.apache.flume.Event> codec) |
void |
setConnectAddresses(String[] specs) |
void |
setMaxEventsPerSecond(long maxEventsPerSecond) |
void |
setup(com.datatorrent.api.Context.OperatorContext context) |
void |
teardown() |
String |
toString() |
public final transient com.datatorrent.api.DefaultOutputPort<T> output
public final transient com.datatorrent.api.DefaultOutputPort<com.datatorrent.netlet.util.Slice> drop
protected static final transient ThreadLocal<Collection<Discovery.Service<byte[]>>> discoveredFlumeSinks
public void setup(com.datatorrent.api.Context.OperatorContext context)
setup in interface com.datatorrent.api.Component<com.datatorrent.api.Context.OperatorContext>public void activate(com.datatorrent.api.Context.OperatorContext ctx)
activate in interface com.datatorrent.api.Operator.ActivationListener<com.datatorrent.api.Context.OperatorContext>public void beginWindow(long windowId)
beginWindow in interface com.datatorrent.api.Operatorpublic void emitTuples()
emitTuples in interface com.datatorrent.api.InputOperatorpublic void endWindow()
endWindow in interface com.datatorrent.api.Operatorpublic void deactivate()
deactivate in interface com.datatorrent.api.Operator.ActivationListener<com.datatorrent.api.Context.OperatorContext>public void teardown()
teardown in interface com.datatorrent.api.Component<com.datatorrent.api.Context.OperatorContext>public void handleIdleTime()
handleIdleTime in interface com.datatorrent.api.Operator.IdleTimeHandlerpublic abstract T convert(org.apache.flume.Event event)
public String[] getConnectAddresses()
public void setConnectAddresses(String[] specs)
specs - - sinkid:host:port specification of all the sinks.public com.datatorrent.api.StreamCodec<org.apache.flume.Event> getCodec()
public void setCodec(com.datatorrent.api.StreamCodec<org.apache.flume.Event> codec)
codec - the codec to setpublic void checkpointed(long windowId)
checkpointed in interface com.datatorrent.api.Operator.CheckpointListenerpublic void committed(long windowId)
committed in interface com.datatorrent.api.Operator.CheckpointListenerpublic Collection<com.datatorrent.api.Partitioner.Partition<AbstractFlumeInputOperator<T>>> definePartitions(Collection<com.datatorrent.api.Partitioner.Partition<AbstractFlumeInputOperator<T>>> partitions, com.datatorrent.api.Partitioner.PartitioningContext context)
definePartitions in interface com.datatorrent.api.Partitioner<AbstractFlumeInputOperator<T>>public void partitioned(Map<Integer,com.datatorrent.api.Partitioner.Partition<AbstractFlumeInputOperator<T>>> partitions)
partitioned in interface com.datatorrent.api.Partitioner<AbstractFlumeInputOperator<T>>public void setMaxEventsPerSecond(long maxEventsPerSecond)
public long getMaxEventsPerSecond()
Copyright © 2015-2017 Apache Software Foundation. All Rights Reserved.