Package alluxio.wire

Class Configuration.Builder

  • Enclosing class:
    Configuration

    @NotThreadSafe
    public static final class Configuration.Builder
    extends java.lang.Object
    Configuration builder.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addClusterProperty​(java.lang.String name, java.lang.Object value, Source source)
      Adds a cluster level property.
      void addPathProperty​(java.lang.String path, java.lang.String name, java.lang.String value)
      Adds a path level property.
      Configuration build()  
      void setClusterConfHash​(java.lang.String hash)
      Sets hash of path configurations.
      void setPathConfHash​(java.lang.String hash)
      Sets hash of path configurations.
      • Methods inherited from class java.lang.Object

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

      • Builder

        public Builder()
    • Method Detail

      • addClusterProperty

        public void addClusterProperty​(java.lang.String name,
                                       @Nullable
                                       java.lang.Object value,
                                       Source source)
        Adds a cluster level property.
        Parameters:
        name - property name
        value - property value
        source - property source
      • addPathProperty

        public void addPathProperty​(java.lang.String path,
                                    java.lang.String name,
                                    java.lang.String value)
        Adds a path level property.
        Parameters:
        path - the path
        name - property name
        value - property value
      • setClusterConfHash

        public void setClusterConfHash​(java.lang.String hash)
        Sets hash of path configurations.
        Parameters:
        hash - the hash
      • setPathConfHash

        public void setPathConfHash​(java.lang.String hash)
        Sets hash of path configurations.
        Parameters:
        hash - the hash
      • build

        public Configuration build()
        Returns:
        a newly constructed configuration