W - A type parameter for reassuring the compiler that all operations are using the same NoSqlObject.public final class NoSqlDatabaseManager<W> extends org.apache.logging.log4j.core.appender.db.AbstractDatabaseManager
AbstractDatabaseManager implementation for all NoSQL databases.| Modifier and Type | Method and Description |
|---|---|
protected void |
commitAndClose() |
protected void |
connectAndStart() |
static NoSqlDatabaseManager<?> |
getNoSqlDatabaseManager(String name,
int bufferSize,
NoSqlProvider<?> provider)
Creates a NoSQL manager for use within the
NoSqlAppender, or returns a suitable one if it already exists. |
protected void |
shutdownInternal() |
protected void |
startupInternal() |
protected void |
writeInternal(org.apache.logging.log4j.core.LogEvent event) |
flush, getManager, isRunning, releaseSub, shutdown, startup, toString, writeprotected void startupInternal()
startupInternal in class org.apache.logging.log4j.core.appender.db.AbstractDatabaseManagerprotected void shutdownInternal()
shutdownInternal in class org.apache.logging.log4j.core.appender.db.AbstractDatabaseManagerprotected 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.AbstractDatabaseManagerpublic static NoSqlDatabaseManager<?> getNoSqlDatabaseManager(String name, int bufferSize, NoSqlProvider<?> provider)
NoSqlAppender, or returns a suitable one if it already exists.name - The name of the manager, which should include connection details and hashed passwords where possible.bufferSize - The size of the log event buffer.provider - A provider instance which will be used to obtain connections to the chosen NoSQL database.Copyright © 1999-2021 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.