public class CarrierRefresher extends AbstractRefresher
Keeps the bucket config fresh through carrier configuration management.
Constructor and Description |
---|
CarrierRefresher(CoreEnvironment environment,
ClusterFacade cluster)
Creates a new
CarrierRefresher . |
Modifier and Type | Method and Description |
---|---|
void |
markTainted(BucketConfig config)
Marks the given bucket as tainted.
|
void |
markUntainted(BucketConfig config)
Mark the given bucket as not tainted.
|
void |
refresh(ClusterConfig config)
If pull based, refresh configs for registered buckets.
|
rx.Observable<Boolean> |
shutdown()
Shuts down all open registration streams.
|
cluster, configs, deregisterBucket, provider, provider, pushConfig, registerBucket, registerBucket, registrations
public CarrierRefresher(CoreEnvironment environment, ClusterFacade cluster)
Creates a new CarrierRefresher
.
environment
- the environment to use.cluster
- the cluster reference.public rx.Observable<Boolean> shutdown()
Refresher
Shuts down all open registration streams.
Observable
otherwise with the cause.public void markTainted(BucketConfig config)
Refresher
Marks the given bucket as tainted.
config
- the config of the bucket that should be marked.public void markUntainted(BucketConfig config)
Refresher
Mark the given bucket as not tainted.
config
- the config of the bucket that should not be marked anymore.public void refresh(ClusterConfig config)
Refresher
If pull based, refresh configs for registered buckets.
Copyright © 2017 Couchbase, Inc.. All rights reserved.