public class NodeState extends Object implements ICorfuPayload<NodeState>
For instance, node a fully connected to all nodes: {"a": {"endpoint": "a", "connectivity":{"a": true, "b": true, "c": true}}}
Created by zlokhandwala on 11/2/18.
Modifier and Type | Class and Description |
---|---|
static class |
NodeState.HeartbeatTimestamp
Heartbeat timestamp is a tuple of the heartbeat counter and the epoch.
|
ICorfuPayload.PayloadConstructor<T>
Modifier and Type | Field and Description |
---|---|
static long |
INVALID_HEARTBEAT_COUNTER |
constructorMap, lookup
Constructor and Description |
---|
NodeState(io.netty.buffer.ByteBuf buf) |
Modifier and Type | Method and Description |
---|---|
void |
doSerialize(io.netty.buffer.ByteBuf buf) |
static NodeState |
getNotReadyNodeState(String endpoint,
long epoch,
long counter) |
static NodeState |
getUnavailableNodeState(String endpoint) |
boolean |
isConnected() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enumMapFromBuffer, fromBuffer, fromBuffer, listFromBuffer, mapFromBuffer, rangeFromBuffer, rangeSetFromBuffer, serialize, setFromBuffer
public static final long INVALID_HEARTBEAT_COUNTER
public void doSerialize(io.netty.buffer.ByteBuf buf)
doSerialize
in interface ICorfuPayload<NodeState>
public static NodeState getNotReadyNodeState(String endpoint, long epoch, long counter)
public boolean isConnected()
Copyright © 2019 CorfuDB. All rights reserved.