org.ektorp
Interface CouchDbInstance

All Known Implementing Classes:
StdCouchDbInstance

public interface CouchDbInstance

Author:
henrik lundgren

Method Summary
 boolean checkIfDbExists(DbPath db)
           
 CouchDbConnector createConnector(String path, boolean createIfNotExists)
           
 void createDatabase(DbPath path)
           
 void createDatabase(String path)
           
 void deleteDatabase(String path)
           
 List<String> getAllDatabases()
           
 HttpClient getConnection()
          Convenience method for accessing the underlying HttpClient.
 ReplicationStatus replicate(ReplicationCommand cmd)
           
 

Method Detail

getAllDatabases

List<String> getAllDatabases()
Returns:
the names of all databases residing in this instance.

checkIfDbExists

boolean checkIfDbExists(DbPath db)
Parameters:
db -
Returns:
true if the database exists.

createDatabase

void createDatabase(DbPath path)

createDatabase

void createDatabase(String path)

deleteDatabase

void deleteDatabase(String path)

createConnector

CouchDbConnector createConnector(String path,
                                 boolean createIfNotExists)
Parameters:
path -
createIfNotExists -
Returns:

getConnection

HttpClient getConnection()
Convenience method for accessing the underlying HttpClient. Preferably used wrapped in a org.ektorp.http.RestTemplate.

Returns:

replicate

ReplicationStatus replicate(ReplicationCommand cmd)


Copyright © 2011. All Rights Reserved.