Package alluxio.wire

Class TieredIdentity.LocalityTier

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    TieredIdentity

    public static final class TieredIdentity.LocalityTier
    extends java.lang.Object
    implements java.io.Serializable
    Class representing a locality tier, e.g. (host: hostname).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LocalityTier​(java.lang.String tierName, java.lang.String value)  
    • Constructor Detail

      • LocalityTier

        public LocalityTier​(java.lang.String tierName,
                            @Nullable
                            java.lang.String value)
        Parameters:
        tierName - the name of the tier
        value - the value of the tier
    • Method Detail

      • getTierName

        public java.lang.String getTierName()
        Returns:
        the name of the tier
      • getValue

        @Nullable
        public java.lang.String getValue()
        Returns:
        the value
      • 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