Class ConfigUpdatedEvent
java.lang.Object
com.couchbase.client.core.event.system.ConfigUpdatedEvent
- All Implemented Interfaces:
CouchbaseEvent
public class ConfigUpdatedEvent extends Object implements CouchbaseEvent
Event published when a new bucket config is applied to the core.
- Since:
- 1.2.0
- Author:
- Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description ConfigUpdatedEvent(ClusterConfig clusterConfig)
-
Method Summary
Modifier and Type Method Description Set<InetAddress>
clusterNodes()
Deprecated.Set<String>
clusterNodesAsStrings()
Returns the hostname 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.
-
Constructor Details
-
ConfigUpdatedEvent
-
-
Method Details
-
openBuckets
Returns all open bucket names. -
clusterNodes
Deprecated.please useclusterNodesAsStrings()
instead.Returns theInetAddress
of all nodes that are part of the cluster config. -
clusterNodesAsStrings
Returns the hostname of all nodes that are part of the cluster config. -
type
Description copied from interface:CouchbaseEvent
The type of the event.- Specified by:
type
in interfaceCouchbaseEvent
- Returns:
- the event type.
-
toMap
Description copied from interface:CouchbaseEvent
Converts the event into a map representation of simple types.- Specified by:
toMap
in interfaceCouchbaseEvent
- Returns:
- the map representation.
-
toString
-
clusterNodesAsStrings()
instead.