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 | Field and Description |
---|---|
ArrayDeque<Event> |
SpillableMemoryChannel.memQueue |
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 |
---|---|
static Event |
EventUtils.getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord)
Returns the Event encapsulated by a Put wrapper
|
Modifier and Type | Method and Description |
---|---|
Event |
JdbcChannelProvider.removeEvent(String channelName)
Removes the next event for the named channel from the underlying
persistent store.
|
Event |
JdbcChannel.take() |
Modifier and Type | Method and Description |
---|---|
void |
JdbcChannelProvider.persistEvent(String channelName,
Event event)
Writes the event to the persistent store.
|
void |
JdbcChannel.put(Event event) |
Modifier and Type | Class and Description |
---|---|
class |
PersistableEvent |
Modifier and Type | Method and Description |
---|---|
Event |
JdbcChannelProviderImpl.removeEvent(String channelName) |
Modifier and Type | Method and Description |
---|---|
void |
JdbcChannelProviderImpl.persistEvent(String channel,
Event event) |
Constructor and Description |
---|
PersistableEvent(String channel,
Event event) |
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 |
---|---|
static List<Event> |
KafkaPartitionTestUtil.generateSkewedMessageList(PartitionTestScenario scenario,
int numMsgs,
Map<Integer,List<Event>> partitionMap,
int numPtns,
int staticPtn)
This method is can be used to create a list of events for use in Kafka partition tests.
|
Modifier and Type | Method and Description |
---|---|
static void |
KafkaPartitionTestUtil.checkResultsAgainstSkew(PartitionTestScenario scenario,
Map<Integer,List<Event>> partitionMap,
Map<Integer,List<byte[]>> resultsMap,
int staticPtn,
int numMsgs)
This method checks the retrieved messages (passed as resultsMap) against the expected
results (passed as partitionMap).
|
static List<Event> |
KafkaPartitionTestUtil.generateSkewedMessageList(PartitionTestScenario scenario,
int numMsgs,
Map<Integer,List<Event>> partitionMap,
int numPtns,
int staticPtn)
This method is can be used to create a list of events for use in Kafka partition tests.
|
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.action.index.IndexRequestBuilder |
ElasticSearchIndexRequestBuilderFactory.createIndexRequest(org.elasticsearch.client.Client client,
String indexPrefix,
String indexType,
Event event) |
org.elasticsearch.action.index.IndexRequestBuilder |
AbstractElasticSearchIndexRequestBuilderFactory.createIndexRequest(org.elasticsearch.client.Client client,
String indexPrefix,
String indexType,
Event event)
Creates and prepares an
IndexRequestBuilder from the supplied
Client via delegation to the subclass-hook template methods
AbstractElasticSearchIndexRequestBuilderFactory.getIndexName(String, long) and
AbstractElasticSearchIndexRequestBuilderFactory.prepareIndexRequest(IndexRequestBuilder, String, String, Event) |
org.elasticsearch.common.xcontent.XContentBuilder |
ElasticSearchLogStashEventSerializer.getContentBuilder(Event event) |
org.elasticsearch.common.io.BytesStream |
ElasticSearchEventSerializer.getContentBuilder(Event event)
Return an
BytesStream made up of the serialized flume event |
org.elasticsearch.common.xcontent.XContentBuilder |
ElasticSearchDynamicSerializer.getContentBuilder(Event event) |
String |
TimeBasedIndexNameBuilder.getIndexName(Event event)
Gets the name of the index to use for an index request
|
String |
SimpleIndexNameBuilder.getIndexName(Event event) |
String |
IndexNameBuilder.getIndexName(Event event)
Gets the name of the index to use for an index request
|
String |
TimeBasedIndexNameBuilder.getIndexPrefix(Event event) |
String |
SimpleIndexNameBuilder.getIndexPrefix(Event event) |
String |
IndexNameBuilder.getIndexPrefix(Event event)
Gets the prefix of index to use for an index request.
|
protected void |
EventSerializerIndexRequestBuilderFactory.prepareIndexRequest(org.elasticsearch.action.index.IndexRequestBuilder indexRequest,
String indexName,
String indexType,
Event event) |
protected abstract void |
AbstractElasticSearchIndexRequestBuilderFactory.prepareIndexRequest(org.elasticsearch.action.index.IndexRequestBuilder indexRequest,
String indexName,
String indexType,
Event event)
Prepares an ElasticSearch
IndexRequestBuilder instance |
Modifier and Type | Method and Description |
---|---|
void |
ElasticSearchTransportClient.addEvent(Event event,
IndexNameBuilder indexNameBuilder,
String indexType,
long ttlMs) |
void |
ElasticSearchRestClient.addEvent(Event event,
IndexNameBuilder indexNameBuilder,
String indexType,
long ttlMs) |
void |
ElasticSearchClient.addEvent(Event event,
IndexNameBuilder indexNameBuilder,
String indexType,
long ttlMs)
Add new event to the bulk
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleHbaseEventSerializer.initialize(Event event,
byte[] cf) |
void |
RegexHbaseEventSerializer.initialize(Event event,
byte[] columnFamily) |
void |
HbaseEventSerializer.initialize(Event event,
byte[] columnFamily)
Initialize the event serializer.
|
void |
SimpleAsyncHbaseEventSerializer.setEvent(Event event) |
void |
AsyncHbaseEventSerializer.setEvent(Event event) |
Modifier and Type | Method and Description |
---|---|
void |
HDFSWriter.append(Event e) |
void |
HDFSSequenceFile.append(Event e) |
void |
HDFSDataStream.append(Event e) |
void |
HDFSCompressedDataStream.append(Event e) |
Iterable<SequenceFileSerializer.Record> |
SequenceFileSerializer.serialize(Event e)
Format the given event into zero, one or more SequenceFile records
|
Iterable<SequenceFileSerializer.Record> |
HDFSWritableSerializer.serialize(Event e) |
Iterable<SequenceFileSerializer.Record> |
HDFSTextSerializer.serialize(Event e) |
void |
AvroEventSerializer.write(Event event) |
Modifier and Type | Method and Description |
---|---|
void |
HiveJsonSerializer.write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch,
Event e) |
void |
HiveEventSerializer.write(org.apache.hive.hcatalog.streaming.TransactionBatch batch,
Event e) |
void |
HiveDelimitedTextSerializer.write(org.apache.hive.hcatalog.streaming.TransactionBatch txnBatch,
Event e) |
Modifier and Type | Method and Description |
---|---|
E |
EntityParser.parse(Event event,
E reuse)
Parse a Kite entity from a Flume event
|
org.apache.avro.generic.GenericRecord |
AvroParser.parse(Event event,
org.apache.avro.generic.GenericRecord reuse)
Parse the entity from the body of the given event.
|
Modifier and Type | Method and Description |
---|---|
void |
SavePolicy.handle(Event event,
Throwable cause) |
void |
RetryPolicy.handle(Event event,
Throwable cause) |
void |
FailurePolicy.handle(Event event,
Throwable cause)
Handle a non-recoverable event.
|
Modifier and Type | Method and Description |
---|---|
Event |
UUIDInterceptor.intercept(Event event) |
Event |
MorphlineInterceptor.intercept(Event event) |
Event |
BlobDeserializer.readEvent()
Reads a BLOB from a file and returns an event
|
Modifier and Type | Method and Description |
---|---|
List<Event> |
BlobHandler.getEvents(javax.servlet.http.HttpServletRequest request) |
List<Event> |
UUIDInterceptor.intercept(List<Event> events) |
List<Event> |
MorphlineInterceptor.intercept(List<Event> events) |
List<Event> |
BlobDeserializer.readEvents(int numEvents)
Batch BLOB read
|
Modifier and Type | Method and Description |
---|---|
Event |
UUIDInterceptor.intercept(Event event) |
Event |
MorphlineInterceptor.intercept(Event event) |
protected boolean |
UUIDInterceptor.isMatch(Event event) |
void |
MorphlineHandlerImpl.process(Event event) |
void |
MorphlineHandler.process(Event event)
Loads the given event into Solr
|
Modifier and Type | Method and Description |
---|---|
List<Event> |
UUIDInterceptor.intercept(List<Event> events) |
List<Event> |
MorphlineInterceptor.intercept(List<Event> events) |
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.
|
List<Event> |
BLOBHandler.getEvents(javax.servlet.http.HttpServletRequest request)
Takes an HttpServletRequest and returns a list of Flume
Events.
|
Modifier and Type | Method and Description |
---|---|
List<Event> |
JMSMessageConverter.convert(javax.jms.Message message) |
List<Event> |
DefaultJMSMessageConverter.convert(javax.jms.Message message) |
Modifier and Type | Method and Description |
---|---|
Event |
ReliableTaildirEventReader.readEvent() |
Modifier and Type | Method and Description |
---|---|
List<Event> |
ReliableTaildirEventReader.readEvents(int numEvents) |
List<Event> |
ReliableTaildirEventReader.readEvents(int numEvents,
boolean backoffWithoutNL) |
List<Event> |
TailFile.readEvents(int numEvents,
boolean backoffWithoutNL,
boolean addByteOffset) |
List<Event> |
ReliableTaildirEventReader.readEvents(TailFile tf,
int numEvents) |
Modifier and Type | Method and Description |
---|---|
boolean |
EventValidator.validateEvent(Event event)
Validate the Event in a application specific manner
|
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.