public class GlobalLoader extends Object
GlobalLoader
is different to the bucket-based loaders in that it tries to fetch a cluster global
configuration which is not bound to a specific bucket.
Global loading is part of the initial bootstrap sequence, even before a bucket is opened at all. This operation might fail on older clusters, higher level components need to deal with this accordingly.
Constructor and Description |
---|
GlobalLoader(Core core) |
Modifier and Type | Method and Description |
---|---|
Mono<ProposedGlobalConfigContext> |
load(NodeIdentifier seed,
int port)
Tries to load the global configuration.
|
public GlobalLoader(Core core)
public Mono<ProposedGlobalConfigContext> load(NodeIdentifier seed, int port)
Please note that at this point, we are passing an Optional.empty()
for alternate addresses when the
service is created, since we do not have a config to check against at this point. The config provider
will take care of this at a later point in time, before the rest of the bootstrap happens.
seed
- the seed node to load from.port
- the port number for the KV service.Copyright © 2020 Couchbase, Inc.. All rights reserved.