sh.waitForBalancer()
On this page本页内容
Definition定义
sh.waitForBalancer(wait, timeout, interval)
-
Waits for a change in the state of the balancer.等待平衡器状态的更改。sh.waitForBalancer()
is an internal method, which takes the following arguments:是一个内部方法,它接受以下参数:Parameter参数Type类型Description描述wait
boolean Optional.可选的。Set to设置为true
to ensure the balancer is now active.true
以确保平衡器现在处于活动状态。The default is默认值为false
, which waits until balancing stops and becomes inactive.false
,等待平衡停止并变为非活动状态。timeout
integer Milliseconds to wait.等待的毫秒数。interval
integer Milliseconds to sleep.睡眠的毫秒数。