public class FlumePersistentManager extends FlumeAvroManager
Modifier and Type | Field and Description |
---|---|
static String |
KEY_PROVIDER
Attribute name for the key provider.
|
Modifier | Constructor and Description |
---|---|
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,
int lockTimeoutRetryCount)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static FlumePersistentManager |
getManager(String name,
Agent[] agents,
org.apache.logging.log4j.core.config.Property[] properties,
int batchSize,
int retries,
int connectionTimeout,
int requestTimeout,
int delayMillis,
int lockTimeoutRetryCount,
String dataDir)
Returns a FlumeAvroManager.
|
protected boolean |
releaseSub(long timeout,
TimeUnit timeUnit) |
void |
send(org.apache.flume.Event event) |
getAgents, getBatchSize, getConnectTimeoutMillis, getCurrent, getDelayMillis, getManager, getRequestTimeoutMillis, getRetries, send
public static final String KEY_PROVIDER
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, int lockTimeoutRetryCount)
name
- The unique name of this manager.shortName
- Original name for the Manager.agents
- An array of Agents.batchSize
- The number of events to include in a batch.retries
- The number of times to retry connecting before giving up.connectionTimeout
- The amount of time to wait for a connection to be established.requestTimeout
- The amount of time to wair for a response to a request.delay
- The amount of time to wait between retries.database
- The database to write to.environment
- The database environment.secretKey
- The SecretKey to use for encryption.lockTimeoutRetryCount
- The number of times to retry a lock timeout.public static FlumePersistentManager getManager(String name, Agent[] agents, org.apache.logging.log4j.core.config.Property[] properties, int batchSize, int retries, int connectionTimeout, int requestTimeout, int delayMillis, int lockTimeoutRetryCount, String dataDir)
name
- The name of the manager.agents
- The agents to use.properties
- Properties to pass to the Manager.batchSize
- The number of events to include in a batch.retries
- The number of times to retry connecting before giving up.connectionTimeout
- The amount of time to wait to establish a connection.requestTimeout
- The amount of time to wait for a response to a request.delayMillis
- Amount of time to delay before delivering a batch.lockTimeoutRetryCount
- The number of times to retry after a lock timeout.dataDir
- The location of the Berkeley database.public void send(org.apache.flume.Event event)
send
in class FlumeAvroManager
protected boolean releaseSub(long timeout, TimeUnit timeUnit)
releaseSub
in class FlumeAvroManager
Copyright © 1999-1969 The 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.