Package com.couchace.core.api

Examples of com.couchace.core.api.CouchDatabase


    if (runningCompact.compareAndSet(false, true) == false) {
      return;
    }

    try {
      CouchDatabase couchDatabase = couchServer.database();

      CouchUtils.compactDatabase(couchDatabase);
      CouchUtils.compactDesigns(couchDatabase, designNames);
      CouchUtils.cleanupViews(couchDatabase);
View Full Code Here


    return super.database(databaseName);
  }

  @PostConstruct
  public void validateDatabases() throws IOException {
    CouchDatabase database = database();
    CouchUtils.createDatabase(database, new TimeUuidIdGenerator(), "/push-server/json/account.json");
    CouchUtils.validateDesign(database, designNames, prefix, suffix);
  }
View Full Code Here

TOP

Related Classes of com.couchace.core.api.CouchDatabase

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.