public class NodeRank extends Object implements ICorfuPayload<NodeRank>, Comparable<NodeRank>
ICorfuPayload.PayloadConstructor<T>
Modifier and Type | Field and Description |
---|---|
static NodeRank |
EMPTY_NODE_RANK |
constructorMap, lookup
Constructor and Description |
---|
NodeRank(io.netty.buffer.ByteBuf buf) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeRank other)
Comparator, sorting nodes according to their number of connections and alphabetically
|
void |
doSerialize(io.netty.buffer.ByteBuf buf) |
boolean |
is(String endpoint) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enumMapFromBuffer, fromBuffer, fromBuffer, listFromBuffer, mapFromBuffer, rangeFromBuffer, rangeSetFromBuffer, serialize, setFromBuffer
public static final NodeRank EMPTY_NODE_RANK
public int compareTo(NodeRank other)
compareTo
in interface Comparable<NodeRank>
other
- another nodepublic boolean is(String endpoint)
public void doSerialize(io.netty.buffer.ByteBuf buf)
doSerialize
in interface ICorfuPayload<NodeRank>
Copyright © 2019 CorfuDB. All rights reserved.