Package com.cedarsoft.couchdb

Examples of com.cedarsoft.couchdb.CouchServer


      System.out.println( "Skipping deletion of " + getCurrentDb().getDbName() );
      System.out.println( "----------------------------" );
      return;
    }

    CouchServer currentServer = server;
    if ( currentServer != null ) {
      for ( Iterator<CouchDatabase> iterator = dbs.iterator(); iterator.hasNext(); ) {
        CouchDatabase couchDatabase = iterator.next();
        currentServer.deleteDatabase( couchDatabase.getDbName() );
        iterator.remove();
      }
    }
    db = null;
  }
View Full Code Here


    this.dbs.add( couchDatabase );
    return couchDatabase;
  }

  public void deleteDb( @Nonnull String dbName ) throws ActionFailedException {
    CouchServer currentServer = server;
    if ( currentServer == null ) {
      throw new IllegalArgumentException( "Invalid state - server is null" );
    }
    currentServer.deleteDatabase( dbName );
  }
View Full Code Here

  public void createServer() throws URISyntaxException {
    URI currentUri = getServerUri();
    serverURI = currentUri;

    @Nullable HTTPBasicAuthFilter authFilter = getAuthFilter( );
    this.server = new CouchServer( currentUri, authFilter );
  }
View Full Code Here

      System.out.println( "Skipping deletion of " + getCurrentDb().getDbName() );
      System.out.println( "----------------------------" );
      return;
    }

    CouchServer currentServer = server;
    if ( currentServer != null ) {
      for ( Iterator<CouchDatabase> iterator = dbs.iterator(); iterator.hasNext(); ) {
        CouchDatabase couchDatabase = iterator.next();
        currentServer.deleteDatabase( couchDatabase.getDbName() );
        iterator.remove();
      }
    }
    db = null;
  }
View Full Code Here

    this.dbs.add( couchDatabase );
    return couchDatabase;
  }

  public void deleteDb( @Nonnull String dbName ) throws ActionFailedException {
    CouchServer currentServer = server;
    if ( currentServer == null ) {
      throw new IllegalArgumentException( "Invalid state - server is null" );
    }
    currentServer.deleteDatabase( dbName );
  }
View Full Code Here

TOP

Related Classes of com.cedarsoft.couchdb.CouchServer

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.