Package alluxio.wire

Class TieredIdentity

  • All Implemented Interfaces:
    java.io.Serializable

    @PublicApi
    public final class TieredIdentity
    extends java.lang.Object
    implements java.io.Serializable
    Class representing a node's tier identity. A tier identity is a list of locality tiers identifying network topology, e.g. (host: hostname, rack: rack1).
    See Also:
    Serialized Form
    • Constructor Detail

      • TieredIdentity

        public TieredIdentity​(java.util.List<TieredIdentity.LocalityTier> tiers)
        Parameters:
        tiers - the tiers of the tier identity
    • Method Detail

      • topTiersMatch

        public boolean topTiersMatch​(TieredIdentity other)
        Parameters:
        other - a tiered identity to compare to
        Returns:
        whether the top tier of this tiered identity matches the top tier of other
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object