Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-64

add APIs for creating and deleting buckets for CBS 2.0

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1dp
    • Fix Version/s: 1.1-dp4
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      While there are other ways to create buckets (via REST endpoints / UI), customers have started asking about APIs to create and delete buckets a few times now. We should add this as a part of the SDK.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        ingenthr Matt Ingenthron added a comment -

        This one has security related issues, as currently there is never a reason for a client library to have/use the cluster admin password. It's certainly pretty straightforward to do so though.

        Show
        ingenthr Matt Ingenthron added a comment - This one has security related issues, as currently there is never a reason for a client library to have/use the cluster admin password. It's certainly pretty straightforward to do so though.
        Hide
        mikew Mike Wiederhold added a comment -

        Would it make sense here to have a separate class that just sends rest commands? I actually have a project that does this.

        https://github.com/mikewied/java-membase-rest-client

        Show
        mikew Mike Wiederhold added a comment - Would it make sense here to have a separate class that just sends rest commands? I actually have a project that does this. https://github.com/mikewied/java-membase-rest-client
        Hide
        ingenthr Matt Ingenthron added a comment -

        I do think a separate class or a set of static methods will be needed. The problem is that CouchbaseClient builds it's connections in the constructor, and creation of a bucket needs to be done separately from management.

        The only concern here is one of dependencies. We should be adding less, not more dependencies. Haven't looked at your code, but it may fit the bill if it doesn't add any deps.

        Show
        ingenthr Matt Ingenthron added a comment - I do think a separate class or a set of static methods will be needed. The problem is that CouchbaseClient builds it's connections in the constructor, and creation of a bucket needs to be done separately from management. The only concern here is one of dependencies. We should be adding less, not more dependencies. Haven't looked at your code, but it may fit the bill if it doesn't add any deps.
        Hide
        ingenthr Matt Ingenthron added a comment -

        This is in review from Mike in dp3

        Show
        ingenthr Matt Ingenthron added a comment - This is in review from Mike in dp3
        Hide
        daschl Michael Nitschinger added a comment -

        This has been reviewed, and pushed to master. Will be available in dp4 shortly.

        Show
        daschl Michael Nitschinger added a comment - This has been reviewed, and pushed to master. Will be available in dp4 shortly.

          People

          • Assignee:
            mikew Mike Wiederhold
            Reporter:
            dipti Dipti Borkar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes