Package alluxio.wire

Class ConfigHash


  • @ThreadSafe
    public class ConfigHash
    extends java.lang.Object
    Hashes of cluster and path level configurations.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigHash​(java.lang.String clusterConfigHash, java.lang.String pathConfigHash)
      Constructs a new ConfigHash.
    • Constructor Detail

      • ConfigHash

        public ConfigHash​(java.lang.String clusterConfigHash,
                          java.lang.String pathConfigHash)
        Constructs a new ConfigHash.
        Parameters:
        clusterConfigHash - cluster configuration hash, cannot be null
        pathConfigHash - path configuration hash, cannot be null
    • Method Detail

      • fromProto

        public static ConfigHash fromProto​(alluxio.grpc.GetConfigHashPResponse response)
        Parameters:
        response - the grpc representation of configuration hash
        Returns:
        the wire representation of the proto response
      • toProto

        public alluxio.grpc.GetConfigHashPResponse toProto()
        Returns:
        the proto representation
      • getClusterConfigHash

        public java.lang.String getClusterConfigHash()
        Returns:
        hash of cluster level configuration
      • getPathConfigHash

        public java.lang.String getPathConfigHash()
        Returns:
        hash of path level configuration
      • 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