io.vertx.core.spi.cluster

## Class NodeInfo

- java.lang.Object
- - io.vertx.core.spi.cluster.NodeInfo

- All Implemented Interfaces:
    io.vertx.core.shareddata.impl.ClusterSerializable

      public class NodeInfo
      extends Object
      implements io.vertx.core.shareddata.impl.ClusterSerializable

  Details about a clustered Vert.x node.
  Author:
    Thomas Segismont

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NodeInfo()`
    `NodeInfo(String host, int port, JsonObject metadata)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `int` | `hashCode()`
    `String` | `host()`
    `JsonObject` | `metadata()`
    `int` | `port()`
    `int` | `readFromBuffer(int start, Buffer buffer)`
    `String` | `toString()`
    `void` | `writeToBuffer(Buffer buffer)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NodeInfo

          public NodeInfo()

    - #### NodeInfo

          public NodeInfo(String host,
                          int port,
                          JsonObject metadata)

  - ### Method Detail

    - #### host

          public String host()

    - #### port

          public int port()

    - #### metadata

          public JsonObject metadata()

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### writeToBuffer

          public void writeToBuffer(Buffer buffer)

      Specified by:
        `writeToBuffer` in interface `io.vertx.core.shareddata.impl.ClusterSerializable`

    - #### readFromBuffer

          public int readFromBuffer(int start,
                                    Buffer buffer)

      Specified by:
        `readFromBuffer` in interface `io.vertx.core.shareddata.impl.ClusterSerializable`

Copyright © 2020 Eclipse. All rights reserved.