|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.appender.db.nosql.couch.CouchDBProvider
public final class CouchDBProvider
The Apache CouchDB implementation of NoSQLProvider
.
Method Summary | |
---|---|
static CouchDBProvider |
createNoSQLProvider(String databaseName,
String protocol,
String server,
String port,
String username,
String password,
String factoryClassName,
String factoryMethodName)
Factory method for creating an Apache CouchDB provider within the plugin manager. |
CouchDBConnection |
getConnection()
Obtains a connection from this provider. |
String |
toString()
All implementations must override Object.toString() to provide information about the provider
configuration (obscuring passwords with one-way hashes). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public CouchDBConnection getConnection()
NoSQLProvider
getConnection
in interface NoSQLProvider<CouchDBConnection>
NoSQLConnection
public String toString()
NoSQLProvider
Object.toString()
to provide information about the provider
configuration (obscuring passwords with one-way hashes).
toString
in interface NoSQLProvider<CouchDBConnection>
toString
in class Object
public static CouchDBProvider createNoSQLProvider(String databaseName, String protocol, String server, String port, String username, String password, String factoryClassName, String factoryMethodName)
databaseName
- The name of the database to which log event documents will be written.protocol
- Either "http" or "https," defaults to "http" and mutually exclusive with
factoryClassName&factoryMethodName!=null
.server
- The host name of the CouchDB server, defaults to localhost and mutually exclusive with
factoryClassName&factoryMethodName!=null
.port
- The port that CouchDB is listening on, defaults to 80 if protocol
is "http" and 443 if
protocol
is "https," and mutually exclusive with
factoryClassName&factoryMethodName!=null
.username
- The username to authenticate against the MongoDB server with, mutually exclusive with
factoryClassName&factoryMethodName!=null
.password
- The password to authenticate against the MongoDB server with, mutually exclusive with
factoryClassName&factoryMethodName!=null
.factoryClassName
- A fully qualified class name containing a static factory method capable of returning a
CouchDbClient
or CouchDbProperties
.factoryMethodName
- The name of the public static factory method belonging to the aforementioned factory
class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 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.