public final class BucketConfigParser extends Object
An abstraction over the bucket parser which takes a raw config as a string and turns it into a BucketConfig
.
Constructor and Description |
---|
BucketConfigParser() |
Modifier and Type | Method and Description |
---|---|
static BucketConfig |
parse(String input,
ConfigParserEnvironment env,
NetworkAddress origin)
Parse a raw configuration into a
BucketConfig . |
public static BucketConfig parse(String input, ConfigParserEnvironment env, NetworkAddress origin)
Parse a raw configuration into a BucketConfig
.
input
- the raw string input.env
- the environment to use.origin
- the origin of the configuration. If null / none provided then localhost is assumed.Copyright © 2018 Couchbase, Inc.. All rights reserved.