Package alluxio.wire
Class Configuration.Builder
- java.lang.Object
-
- alluxio.wire.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.
-
-
-
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 namevalue
- property valuesource
- 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 pathname
- property namevalue
- 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
-
-