org.ektorp.impl
Class StdCouchDbInstance
java.lang.Object
org.ektorp.impl.StdCouchDbInstance
- All Implemented Interfaces:
- CouchDbInstance
public class StdCouchDbInstance
- extends java.lang.Object
- implements CouchDbInstance
- Author:
- henrik lundgren
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StdCouchDbInstance
public StdCouchDbInstance(HttpClient client)
StdCouchDbInstance
public StdCouchDbInstance(HttpClient client,
ObjectMapperFactory of)
createDatabase
public void createDatabase(java.lang.String path)
- Specified by:
createDatabase in interface CouchDbInstance
createDatabase
public void createDatabase(DbPath db)
- Specified by:
createDatabase in interface CouchDbInstance
deleteDatabase
public void deleteDatabase(java.lang.String path)
- Specified by:
deleteDatabase in interface CouchDbInstance
getAllDatabases
public java.util.List<java.lang.String> getAllDatabases()
- Specified by:
getAllDatabases in interface CouchDbInstance
- Returns:
- the names of all databases residing in this instance.
replicate
public ReplicationStatus replicate(ReplicationCommand cmd)
- Specified by:
replicate in interface CouchDbInstance
getConnection
public HttpClient getConnection()
- Description copied from interface:
CouchDbInstance
- Convenience method for accessing the underlying HttpClient.
Preferably used wrapped in a org.ektorp.http.RestTemplate.
- Specified by:
getConnection in interface CouchDbInstance
- Returns:
createConnector
public CouchDbConnector createConnector(java.lang.String path,
boolean createIfNotExists)
- Specified by:
createConnector in interface CouchDbInstance
- Returns:
Copyright © 2011. All Rights Reserved.