public class Log4jAppender
extends org.apache.flume.clients.log4jappender.Log4jAppender
Constructor and Description |
---|
Log4jAppender() |
Log4jAppender(String hostname,
int port)
Sets the hostname and port.
|
Modifier and Type | Method and Description |
---|---|
protected void |
populateAvroHeaders(Map<String,String> hdrs,
Schema schema,
Object message) |
boolean |
requiresLayout() |
void |
setDatasetName(String datasetName) |
void |
setDatasetNamespace(String datasetNamespace) |
void |
setDatasetRepositoryClass(String datasetRepositoryClass)
Deprecated.
Use datasetRepositoryUri with a 'repo:' URI.
|
void |
setDatasetRepositoryUri(String datasetRepositoryUri) |
activateOptions, append, close, getTimeout, setAvroReflectionEnabled, setAvroSchemaUrl, setHostname, setPort, setTimeout
public Log4jAppender()
public Log4jAppender(String hostname, int port)
hostname
- The first hop where the client should connect to.port
- The port to connect on the host.public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
requiresLayout
in class org.apache.flume.clients.log4jappender.Log4jAppender
@Deprecated public void setDatasetRepositoryClass(String datasetRepositoryClass)
public void setDatasetRepositoryUri(String datasetRepositoryUri)
public void setDatasetNamespace(String datasetNamespace)
public void setDatasetName(String datasetName)
Copyright © 2013–2014. All rights reserved.