org.apache.logging.log4j.flume.appender
Class FlumePersistentManager

java.lang.Object
  extended by org.apache.logging.log4j.core.appender.AbstractManager
      extended by org.apache.logging.log4j.flume.appender.AbstractFlumeManager
          extended by org.apache.logging.log4j.flume.appender.FlumeAvroManager
              extended by org.apache.logging.log4j.flume.appender.FlumePersistentManager

public class FlumePersistentManager
extends FlumeAvroManager


Field Summary
static String KEY_PROVIDER
           
 
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager
count, LOGGER
 
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, com.sleepycat.je.Environment environment, SecretKey secretKey)
          Constructor
 
Method Summary
static FlumePersistentManager getManager(String name, Agent[] agents, Property[] properties, int batchSize, int retries, int connectionTimeout, int requestTimeout, int delay, String dataDir)
          Returns a FlumeAvroManager.
protected  void releaseSub()
           
 void send(org.apache.flume.Event event)
           
 
Methods inherited from class org.apache.logging.log4j.flume.appender.FlumeAvroManager
getAgents, getConnectTimeout, getCurrent, getManager, getRequestTimeout, getRetries, send
 
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager
getContentFormat, getCount, getManager, getName, hasManager, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_PROVIDER

public static final String KEY_PROVIDER
See Also:
Constant Field Values
Constructor Detail

FlumePersistentManager

protected FlumePersistentManager(String name,
                                 String shortName,
                                 Agent[] agents,
                                 int batchSize,
                                 int retries,
                                 int connectionTimeout,
                                 int requestTimeout,
                                 int delay,
                                 com.sleepycat.je.Database database,
                                 com.sleepycat.je.Environment environment,
                                 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.
Method Detail

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.