| Package | Description |
|---|---|
| org.apache.flume | |
| org.apache.flume.agent.embedded |
This package provides Flume users the ability to embed simple agents
in applications.
|
| org.apache.flume.api | |
| org.apache.flume.channel | |
| org.apache.flume.client.avro | |
| org.apache.flume.event | |
| org.apache.flume.formatter.output | |
| org.apache.flume.interceptor | |
| org.apache.flume.serialization | |
| org.apache.flume.source | |
| org.apache.flume.source.http |
| Modifier and Type | Method and Description |
|---|---|
Event |
Channel.take()
Returns the next event from the channel if available.
|
| Modifier and Type | Method and Description |
|---|---|
List<Channel> |
ChannelSelector.getOptionalChannels(Event event)
Returns a list of optional channels.
|
List<Channel> |
ChannelSelector.getRequiredChannels(Event event)
Returns a list of required channels.
|
void |
Channel.put(Event event)
Puts the given event into the channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EmbeddedSource.put(Event event) |
void |
EmbeddedAgent.put(Event event)
Adds event to the channel owned by the agent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EmbeddedSource.putAll(List<Event> events) |
void |
EmbeddedAgent.putAll(List<Event> events)
Adds events to the channel owned by the agent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ThriftRpcClient.append(Event event) |
void |
RpcClient.append(Event event)
Send a single
Event to the associated Flume source. |
void |
NettyAvroRpcClient.append(Event event) |
void |
LoadBalancingRpcClient.append(Event event) |
void |
FailoverRpcClient.append(Event event)
Tries to append an event to the currently connected client.
|
abstract void |
AbstractRpcClient.append(Event event) |
| Modifier and Type | Method and Description |
|---|---|
void |
ThriftRpcClient.appendBatch(List<Event> events) |
void |
RpcClient.appendBatch(List<Event> events)
Send a list of events to the associated Flume source.
|
void |
NettyAvroRpcClient.appendBatch(List<Event> events) |
void |
LoadBalancingRpcClient.appendBatch(List<Event> events) |
void |
FailoverRpcClient.appendBatch(List<Event> events)
Tries to append a list of events to the currently connected client.
|
abstract void |
AbstractRpcClient.appendBatch(List<Event> events) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Event |
BasicTransactionSemantics.doTake() |
Event |
PseudoTxnMemoryChannel.take() |
protected Event |
BasicTransactionSemantics.take()
The method to which
BasicChannelSemantics delegates calls
to take. |
Event |
BasicChannelSemantics.take()
Ensures that a transaction exists for this thread and then
delegates the
take to the thread's BasicTransactionSemantics instance. |
static Event |
ChannelUtils.take(Channel channel)
A convenience method for single-event
take transactions. |
| Modifier and Type | Method and Description |
|---|---|
static List<Event> |
ChannelUtils.take(Channel channel,
int max)
A convenience method for multiple-event
take transactions. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
BasicTransactionSemantics.doPut(Event event) |
List<Channel> |
ReplicatingChannelSelector.getOptionalChannels(Event event) |
List<Channel> |
MultiplexingChannelSelector.getOptionalChannels(Event event) |
List<Channel> |
ReplicatingChannelSelector.getRequiredChannels(Event event) |
List<Channel> |
MultiplexingChannelSelector.getRequiredChannels(Event event) |
void |
ChannelProcessor.processEvent(Event event)
Attempts to put the given event into each
configured channel.
|
static void |
ChannelUtils.put(Channel channel,
Event event)
A convenience method for single-event
put transactions. |
void |
PseudoTxnMemoryChannel.put(Event event) |
protected void |
BasicTransactionSemantics.put(Event event)
The method to which
BasicChannelSemantics delegates calls
to put. |
void |
BasicChannelSemantics.put(Event event)
Ensures that a transaction exists for this thread and then
delegates the
put to the thread's BasicTransactionSemantics instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
ChannelProcessor.processEventBatch(List<Event> events)
Attempts to put the given events into each
configured channel.
|
static void |
ChannelUtils.put(Channel channel,
Collection<Event> events)
A convenience method for multiple-event
put transactions. |
| Modifier and Type | Method and Description |
|---|---|
Event |
SimpleTextLineEventReader.readEvent() |
Event |
ReliableSpoolingFileEventReader.readEvent() |
Event |
EventReader.readEvent()
Get the next line associated with the input stream.
|
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
SimpleTextLineEventReader.readEvents(int n) |
List<Event> |
ReliableSpoolingFileEventReader.readEvents(int numEvents) |
List<Event> |
EventReader.readEvents(int n)
Get up to
n lines associated with the input stream. |
| Modifier and Type | Class and Description |
|---|---|
class |
JSONEvent |
class |
SimpleEvent |
| Modifier and Type | Method and Description |
|---|---|
static Event |
EventBuilder.withBody(byte[] body) |
static Event |
EventBuilder.withBody(byte[] body,
Map<String,String> headers)
Instantiate an Event instance based on the provided body and headers.
|
static Event |
EventBuilder.withBody(String body,
Charset charset) |
static Event |
EventBuilder.withBody(String body,
Charset charset,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
static String |
EventHelper.dumpEvent(Event event) |
static String |
EventHelper.dumpEvent(Event event,
int maxBytes) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
TextDelimitedOutputFormatter.format(Event event)
Deprecated.
|
byte[] |
EventFormatter.format(Event event)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
TimestampInterceptor.intercept(Event event)
Modifies events in-place.
|
Event |
StaticInterceptor.intercept(Event event)
Modifies events in-place.
|
Event |
SearchAndReplaceInterceptor.intercept(Event event) |
Event |
RegexFilteringInterceptor.intercept(Event event) |
Event |
RegexExtractorInterceptor.intercept(Event event) |
Event |
InterceptorChain.intercept(Event event) |
Event |
Interceptor.intercept(Event event)
Interception of a single
Event. |
Event |
HostInterceptor.intercept(Event event)
Modifies events in-place.
|
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
TimestampInterceptor.intercept(List<Event> events)
Delegates to
TimestampInterceptor.intercept(Event) in a loop. |
List<Event> |
StaticInterceptor.intercept(List<Event> events)
Delegates to
StaticInterceptor.intercept(Event) in a loop. |
List<Event> |
SearchAndReplaceInterceptor.intercept(List<Event> events) |
List<Event> |
RegexFilteringInterceptor.intercept(List<Event> events)
Returns the set of events which pass filters, according to
RegexFilteringInterceptor.intercept(Event). |
List<Event> |
RegexExtractorInterceptor.intercept(List<Event> events) |
List<Event> |
InterceptorChain.intercept(List<Event> events) |
List<Event> |
Interceptor.intercept(List<Event> events)
Interception of a batch of events.
|
List<Event> |
HostInterceptor.intercept(List<Event> events)
Delegates to
HostInterceptor.intercept(Event) in a loop. |
| Modifier and Type | Method and Description |
|---|---|
Event |
TimestampInterceptor.intercept(Event event)
Modifies events in-place.
|
Event |
StaticInterceptor.intercept(Event event)
Modifies events in-place.
|
Event |
SearchAndReplaceInterceptor.intercept(Event event) |
Event |
RegexFilteringInterceptor.intercept(Event event) |
Event |
RegexExtractorInterceptor.intercept(Event event) |
Event |
InterceptorChain.intercept(Event event) |
Event |
Interceptor.intercept(Event event)
Interception of a single
Event. |
Event |
HostInterceptor.intercept(Event event)
Modifies events in-place.
|
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
TimestampInterceptor.intercept(List<Event> events)
Delegates to
TimestampInterceptor.intercept(Event) in a loop. |
List<Event> |
StaticInterceptor.intercept(List<Event> events)
Delegates to
StaticInterceptor.intercept(Event) in a loop. |
List<Event> |
SearchAndReplaceInterceptor.intercept(List<Event> events) |
List<Event> |
RegexFilteringInterceptor.intercept(List<Event> events)
Returns the set of events which pass filters, according to
RegexFilteringInterceptor.intercept(Event). |
List<Event> |
RegexExtractorInterceptor.intercept(List<Event> events) |
List<Event> |
InterceptorChain.intercept(List<Event> events) |
List<Event> |
Interceptor.intercept(List<Event> events)
Interception of a batch of events.
|
List<Event> |
HostInterceptor.intercept(List<Event> events)
Delegates to
HostInterceptor.intercept(Event) in a loop. |
| Modifier and Type | Method and Description |
|---|---|
protected Event |
FlumeEventAvroEventSerializer.convert(Event event)
A no-op for this simple, special-case implementation
|
Event |
LineDeserializer.readEvent()
Reads a line from a file and returns an event
|
Event |
EventDeserializer.readEvent()
Read a single event from the underlying stream.
|
Event |
AvroEventDeserializer.readEvent() |
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
LineDeserializer.readEvents(int numEvents)
Batch line read
|
List<Event> |
EventDeserializer.readEvents(int numEvents)
Read a batch of events from the underlying stream.
|
List<Event> |
AvroEventDeserializer.readEvents(int numEvents) |
| Modifier and Type | Method and Description |
|---|---|
protected Event |
FlumeEventAvroEventSerializer.convert(Event event)
A no-op for this simple, special-case implementation
|
protected abstract T |
AbstractAvroEventSerializer.convert(Event event)
Simple conversion routine used to convert an Event to a type of your
choosing.
|
void |
HeaderAndBodyTextEventSerializer.write(Event e) |
void |
EventSerializer.write(Event event)
Serialize and write the given event.
|
void |
BodyTextEventSerializer.write(Event e) |
void |
AbstractAvroEventSerializer.write(Event event) |
| Modifier and Type | Method and Description |
|---|---|
Event |
SyslogUtils.extractEvent(org.jboss.netty.buffer.ChannelBuffer in) |
Event |
SyslogParser.parseMessage(String msg,
Charset charset,
Set<String> keepFields)
Parses a Flume Event out of a syslog message string.
|
| Modifier and Type | Method and Description |
|---|---|
List<Event> |
JSONHandler.getEvents(javax.servlet.http.HttpServletRequest request)
Takes an HttpServletRequest and returns a list of Flume
Events.
|
List<Event> |
HTTPSourceHandler.getEvents(javax.servlet.http.HttpServletRequest request)
Takes an HttpServletRequest and returns a list of Flume
Events.
|
Copyright © 2009-2015 Apache Software Foundation. All Rights Reserved.