org.apache.logging.log4j.flume.appender
Class FlumePersistentManager
java.lang.Object
org.apache.logging.log4j.core.appender.AbstractManager
org.apache.logging.log4j.flume.appender.AbstractFlumeManager
org.apache.logging.log4j.flume.appender.FlumeAvroManager
org.apache.logging.log4j.flume.appender.FlumePersistentManager
public class FlumePersistentManager
- extends FlumeAvroManager
Constructor Summary |
protected |
FlumePersistentManager(String name,
String shortName,
Agent[] agents,
int batchSize,
int retries,
int connectionTimeout,
int requestTimeout,
int delay,
com.sleepycat.je.Database database,
SecretKey secretKey)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_PROVIDER
public static final String KEY_PROVIDER
- See Also:
- Constant Field Values
FlumePersistentManager
protected FlumePersistentManager(String name,
String shortName,
Agent[] agents,
int batchSize,
int retries,
int connectionTimeout,
int requestTimeout,
int delay,
com.sleepycat.je.Database database,
SecretKey secretKey)
- Constructor
- Parameters:
name
- The unique name of this manager.agents
- An array of Agents.batchSize
- The number of events to include in a batch.database
- The database to write to.
getManager
public static FlumePersistentManager getManager(String name,
Agent[] agents,
Property[] properties,
int batchSize,
int retries,
int connectionTimeout,
int requestTimeout,
int delay,
String dataDir)
- Returns a FlumeAvroManager.
- Parameters:
name
- The name of the manager.agents
- The agents to use.batchSize
- The number of events to include in a batch.
- Returns:
- A FlumeAvroManager.
send
public void send(org.apache.flume.Event event)
- Overrides:
send
in class FlumeAvroManager
releaseSub
protected void releaseSub()
- Overrides:
releaseSub
in class FlumeAvroManager
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.