W
- A type parameter for reassuring the compiler that all operations are using the same NoSQLObject
.public final class NoSQLDatabaseManager<W> extends AbstractDatabaseManager
AbstractDatabaseManager
implementation for all NoSQL databases.AbstractDatabaseManager.AbstractFactoryData
count, LOGGER
Modifier and Type | Method and Description |
---|---|
protected void |
connectInternal()
Implementations should implement this method to perform any proprietary connection operations.
|
protected void |
disconnectInternal()
Implementations should implement this method to perform any proprietary disconnection / shutdown operations.
|
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 |
writeInternal(LogEvent event)
Performs the actual writing of the event in an implementation-specific way.
|
connect, disconnect, flush, getManager, isConnected, releaseSub, toString, write
getContentFormat, getCount, getName, hasManager, release
protected void connectInternal()
AbstractDatabaseManager
connectInternal
in class AbstractDatabaseManager
protected void disconnectInternal()
AbstractDatabaseManager
AbstractDatabaseManager.connectInternal()
. It is safe to throw any exceptions from this method.disconnectInternal
in class AbstractDatabaseManager
protected void writeInternal(LogEvent event)
AbstractDatabaseManager
AbstractDatabaseManager.write(LogEvent)
if buffering is off, or from AbstractDatabaseManager.flush()
if the buffer has reached its limit.writeInternal
in class AbstractDatabaseManager
event
- The event to write to the database.public 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-2014 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.