belostoky
belostoky

Reputation: 974

Couchbase - getting single bucket information with the java api

Is there a way to retrieve this:

 .
 .
 .
"authType": "sasl", 
"autoCompactionSettings": {
    "allowedTimePeriod": {
        "abortOutside": true, 
        "fromHour": 1, 
        "fromMinute": 0, 
        "toHour": 2, 
        "toMinute": 0
    }, 
    "databaseFragmentationThreshold": {
        "percentage": 30, 
        "size": "undefined"
    }, 
    "parallelDBAndViewCompaction": true, 
    "viewFragmentationThreshold": {
        "percentage": 30, 
        "size": "undefined"
    }
}, 
 .
 .
 .

see: http://docs.couchbase.com/admin/admin/REST/rest-bucket-info.html
using the java api?

Upvotes: 0

Views: 52

Answers (1)

Simon Baslé
Simon Baslé

Reputation: 28351

Yes, the BucketManager can be used to get information on the bucket's configuration through its info() method.

You can obtain the manager from the Bucket instance by calling bucket.bucketManager().

It also can be used to create views for instance...

Upvotes: 1

Related Questions