Package alluxio.conf

Class Hash


  • @ThreadSafe
    public final class Hash
    extends java.lang.Object
    A hex encoded MD5 hash of the cluster or path configurations.
    • Constructor Summary

      Constructors 
      Constructor Description
      Hash​(java.util.function.Supplier<java.util.stream.Stream<byte[]>> properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get()
      If markOutdated() is called since last get(), then the version will be recomputed, otherwise, the internally cached version is returned.
      void markOutdated()
      Called when the version needs to be updated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Hash

        public Hash​(java.util.function.Supplier<java.util.stream.Stream<byte[]>> properties)
        Parameters:
        properties - a stream of encoded properties
    • Method Detail

      • markOutdated

        public void markOutdated()
        Called when the version needs to be updated. Internally, it just sets a flag to indicate that the version should be updated, but version will not be recomputed until get() is called.
      • get

        public java.lang.String get()
        If markOutdated() is called since last get(), then the version will be recomputed, otherwise, the internally cached version is returned.
        Returns:
        the latest version