public class ElasticManager
extends org.apache.logging.log4j.core.appender.db.AbstractDatabaseManager
| Modifier | Constructor and Description |
|---|---|
protected |
ElasticManager(String name,
List<URI> uri,
String cluster,
String index,
RotateIndexType rotateIndexParam,
String type,
String node,
String service,
int bufferSize,
int flushSeconds,
org.apache.logging.log4j.Level level) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commitAndClose() |
protected void |
connectAndStart() |
String |
getCluster() |
int |
getFlush() |
String |
getIndex() |
org.apache.logging.log4j.Level |
getLevel() |
String |
getNode() |
RotateIndexType |
getRotateIndexParam() |
String |
getService() |
String |
getType() |
List<URI> |
getUri() |
void |
setFlush(int flushSeconds) |
void |
setIndex(String index) |
void |
setLevel(org.apache.logging.log4j.Level level) |
void |
setRotateIndexParam(RotateIndexType rotateIndexParam) |
void |
setType(String type) |
protected void |
shutdownInternal() |
protected void |
startupInternal() |
protected void |
writeInternal(org.apache.logging.log4j.core.LogEvent event) |
flush, getManager, isRunning, releaseSub, shutdown, startup, toString, writepublic String getIndex()
public RotateIndexType getRotateIndexParam()
public String getType()
public String getCluster()
public String getService()
public String getNode()
public void setLevel(org.apache.logging.log4j.Level level)
public org.apache.logging.log4j.Level getLevel()
public void setIndex(String index)
public void setType(String type)
public void setRotateIndexParam(RotateIndexType rotateIndexParam)
public int getFlush()
public void setFlush(int flushSeconds)
protected void startupInternal()
throws Exception
startupInternal in class org.apache.logging.log4j.core.appender.db.AbstractDatabaseManagerExceptionprotected void shutdownInternal()
throws Exception
shutdownInternal in class org.apache.logging.log4j.core.appender.db.AbstractDatabaseManagerExceptionprotected void connectAndStart()
connectAndStart in class org.apache.logging.log4j.core.appender.db.AbstractDatabaseManagerprotected void writeInternal(org.apache.logging.log4j.core.LogEvent event)
writeInternal in class org.apache.logging.log4j.core.appender.db.AbstractDatabaseManagerprotected void commitAndClose()
commitAndClose in class org.apache.logging.log4j.core.appender.db.AbstractDatabaseManagerCopyright © 2015. All rights reserved.