public class NodeInfo extends Object implements ClusterSerializable
| Constructor and Description |
|---|
NodeInfo() |
NodeInfo(String host,
int port,
JsonObject metadata) |
| 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) |
public NodeInfo()
public NodeInfo(String host, int port, JsonObject metadata)
public String host()
public int port()
public JsonObject metadata()
public void writeToBuffer(Buffer buffer)
writeToBuffer in interface ClusterSerializablepublic int readFromBuffer(int start,
Buffer buffer)
readFromBuffer in interface ClusterSerializableCopyright © 2021. All rights reserved.