public static final class MultiProcessCluster.Builder extends Object
MultiProcessCluster
.Modifier and Type | Method and Description |
---|---|
MultiProcessCluster.Builder |
addProperties(Map<PropertyKey,String> properties) |
MultiProcessCluster.Builder |
addProperty(PropertyKey key,
String value) |
MultiProcessCluster |
build() |
MultiProcessCluster.Builder |
setClusterName(String clusterName) |
MultiProcessCluster.Builder |
setMasterProperties(Map<Integer,Map<PropertyKey,String>> properties)
Sets master specific properties.
|
MultiProcessCluster.Builder |
setNoFormat(boolean noFormat) |
MultiProcessCluster.Builder |
setNumMasters(int numMasters) |
MultiProcessCluster.Builder |
setNumWorkers(int numWorkers) |
MultiProcessCluster.Builder |
setWorkerProperties(Map<Integer,Map<PropertyKey,String>> properties)
Sets worker specific properties.
|
public MultiProcessCluster.Builder addProperty(PropertyKey key, String value)
key
- the property key to setvalue
- the value to setpublic MultiProcessCluster.Builder addProperties(Map<PropertyKey,String> properties)
properties
- alluxio properties for launched masters and workerspublic MultiProcessCluster.Builder setMasterProperties(Map<Integer,Map<PropertyKey,String>> properties)
properties
- the master properties to setpublic MultiProcessCluster.Builder setWorkerProperties(Map<Integer,Map<PropertyKey,String>> properties)
properties
- the worker properties to setpublic MultiProcessCluster.Builder setNumMasters(int numMasters)
numMasters
- the number of masters for the clusterpublic MultiProcessCluster.Builder setNumWorkers(int numWorkers)
numWorkers
- the number of workers for the clusterpublic MultiProcessCluster.Builder setClusterName(String clusterName)
clusterName
- a name for the clusterpublic MultiProcessCluster.Builder setNoFormat(boolean noFormat)
noFormat
- whether to skip formatting the journalpublic MultiProcessCluster build()
MultiProcessCluster
Copyright © 2023. All Rights Reserved.