public class ConfigUpdatedEvent extends Object implements CouchbaseEvent
Event published when a new bucket config is applied to the core.
Constructor and Description |
---|
ConfigUpdatedEvent(ClusterConfig clusterConfig) |
Modifier and Type | Method and Description |
---|---|
Set<InetAddress> |
clusterNodes()
Deprecated.
please use
clusterNodesAsNetworkAddress() instead. |
Set<NetworkAddress> |
clusterNodesAsNetworkAddress()
Returns the
NetworkAddress of all nodes that are part of the cluster config. |
Set<String> |
openBuckets()
Returns all open bucket names.
|
Map<String,Object> |
toMap()
Converts the event into a map representation of simple types.
|
String |
toString() |
EventType |
type()
The type of the event.
|
public ConfigUpdatedEvent(ClusterConfig clusterConfig)
@Deprecated public Set<InetAddress> clusterNodes()
clusterNodesAsNetworkAddress()
instead.Returns the InetAddress
of all nodes that are part of the cluster config.
public Set<NetworkAddress> clusterNodesAsNetworkAddress()
Returns the NetworkAddress
of all nodes that are part of the cluster config.
public EventType type()
CouchbaseEvent
The type of the event.
type
in interface CouchbaseEvent
public Map<String,Object> toMap()
CouchbaseEvent
Converts the event into a map representation of simple types.
toMap
in interface CouchbaseEvent
Copyright © 2017 Couchbase, Inc.. All rights reserved.