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描述
waitbooleanOptional. 可选。Set to true to ensure the balancer is now active. 设置为true以确保平衡器现在处于活动状态。The default is false, which waits until balancing stops and becomes inactive.默认值为false,它会等待平衡停止并变为非活动状态。
timeoutintegerMilliseconds to wait.等待的时间,以毫秒计。
intervalintegerMilliseconds to sleep.睡眠时间,以毫秒计。
←  sh.stopBalancer()sh.waitForBalancerOff() →