public static class FedBalanceContext.Builder
extends java.lang.Object
| Constructor | Description |
|---|---|
Builder(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
java.lang.String mount,
org.apache.hadoop.conf.Configuration conf) |
This class helps building the FedBalanceContext.
|
| Modifier and Type | Method | Description |
|---|---|---|
FedBalanceContext |
build() |
Build the FedBalanceContext.
|
FedBalanceContext.Builder |
setBandwidthLimit(int value) |
The bandwidth limit of the distcp job(MB).
|
FedBalanceContext.Builder |
setDelayDuration(long value) |
Specify the delayed duration when the procedures need to retry.
|
FedBalanceContext.Builder |
setDiffThreshold(int value) |
Specify the threshold of diff entries.
|
FedBalanceContext.Builder |
setForceCloseOpenFiles(boolean value) |
Force close open files.
|
FedBalanceContext.Builder |
setMapNum(int value) |
The map number of the distcp job.
|
FedBalanceContext.Builder |
setTrash(FedBalanceConfigs.TrashOption value) |
Specify the trash behaviour after all the data is sync to the target.
|
FedBalanceContext.Builder |
setUseMountReadOnly(boolean value) |
Use mount point readonly to disable write.
|
public Builder(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
java.lang.String mount,
org.apache.hadoop.conf.Configuration conf)
src - the source path in the source sub-cluster.dst - the target path in the target sub-cluster.mount - the mount point to be balanced.conf - the configuration.public FedBalanceContext.Builder setForceCloseOpenFiles(boolean value)
value - true if force close all the open files.public FedBalanceContext.Builder setUseMountReadOnly(boolean value)
value - true if disabling write by setting mount point readonly.public FedBalanceContext.Builder setMapNum(int value)
value - the map number of the distcp.public FedBalanceContext.Builder setBandwidthLimit(int value)
value - the bandwidth.public FedBalanceContext.Builder setTrash(FedBalanceConfigs.TrashOption value)
value - the trash option.public FedBalanceContext.Builder setDelayDuration(long value)
value - the delay duration.public FedBalanceContext.Builder setDiffThreshold(int value)
value - the diff threshold.public FedBalanceContext build()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.