Package org.ektorp

Examples of org.ektorp.DbInfo


                .build();
   
    CouchDbInstance dbInstance = new StdCouchDbInstance(couchClient);
    CouchDbConnector db = dbInstance.createConnector("testdb", true);
   
    DbInfo info = db.getDbInfo();
    DecimalFormat df = new DecimalFormat("#.##");

    logger.info("DB info : dbName=" + info.getDbName() + ", docCount="
        + info.getDocCount() + ", diskSize=" + df.format(info.getDiskSize()
        / 1024.0 / 1024.0) + " MB");

    Client john = new Client("John Smith", "USA");
   
    john.setId("john");
View Full Code Here


            showSplashDialog();

           
            couchDbInstance = localCouchManager.getCouchInstance();
            CouchDbConnector db = localCouchManager.getCouchConnector(localDbName, couchDbInstance);
            DbInfo info = db.getDbInfo();
           
            ready(db);
        } catch(CouchDBNotFoundException nfe) {
            ready(loadNeeded(true));
        } catch (Exception noInfo) {
View Full Code Here

TOP

Related Classes of org.ektorp.DbInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.