Class NodeConnectedEvent
- java.lang.Object
-
- com.couchbase.client.core.event.system.NodeConnectedEvent
-
- All Implemented Interfaces:
CouchbaseEvent
public class NodeConnectedEvent extends Object implements CouchbaseEvent
Event published when a node is connected.- Since:
- 1.1.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description NodeConnectedEvent(String host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetAddress
host()
The host address of the connected node.Map<String,Object>
toMap()
Converts the event into a map representation of simple types.String
toString()
EventType
type()
The type of the event.
-
-
-
Constructor Detail
-
NodeConnectedEvent
public NodeConnectedEvent(String host)
-
-
Method Detail
-
type
public EventType type()
Description copied from interface:CouchbaseEvent
The type of the event.- Specified by:
type
in interfaceCouchbaseEvent
- Returns:
- the event type.
-
host
public InetAddress host()
The host address of the connected node.- Returns:
- the inet address of the connected node.
-
toMap
public Map<String,Object> 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.
-
-