Class Node

java.lang.Object
com.yahoo.vdslib.state.Node
All Implemented Interfaces:
Comparable<Node>

public class Node extends Object implements Comparable<Node>
A node in a content cluster. This is immutable.
  • Constructor Details

    • Node

      public Node(NodeType type, int index)
    • Node

      public Node(String serialized)
  • Method Details

    • ofStorage

      public static Node ofStorage(int index)
    • ofDistributor

      public static Node ofDistributor(int index)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public NodeType getType()
    • getIndex

      public int getIndex()
    • compareTo

      public int compareTo(Node n)
      Specified by:
      compareTo in interface Comparable<Node>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object