org.apache.logging.log4j.flume.appender

Class FlumeEmbeddedManager

    • Constructor Detail

      • FlumeEmbeddedManager

        protected FlumeEmbeddedManager(String name,
                            String shortName,
                            org.apache.flume.agent.embedded.EmbeddedAgent agent)
        Constructor
        Parameters:
        name - The unique name of this manager.
        shortName - The short version of the agent name.
        agent - The embedded agent.
    • Method Detail

      • getManager

        public static FlumeEmbeddedManager getManager(String name,
                                      Agent[] agents,
                                      Property[] properties,
                                      int batchSize,
                                      String dataDir)
        Returns a FlumeEmbeddedManager.
        Parameters:
        name - The name of the manager.
        agents - The agents to use.
        properties - Properties for the embedded manager.
        batchSize - The number of events to include in a batch.
        dataDir - The directory where the Flume FileChannel should write to.
        Returns:
        A FlumeAvroManager.

Copyright © 1999-2015 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.