|Constructor and Description|
|Modifier and Type||Method and Description|
Registers a monitor to receive change notices for this server set as long as this jvm process is alive.
public TwitterServerSetWatcher(com.twitter.common.zookeeper.ServerSet serverSet, boolean resolvedFromName)
serverSet- server set.
resolvedFromName- whether to resolve hosts from
public void watch(ServerSetWatcher.ServerSetMonitor monitor) throws ServerSetWatcher.MonitorException
Blocks until the initial server set can be gathered and delivered to the monitor. The monitor will be notified if the membership set or parameters of existing members have changed.
Copyright © 2016-2018 The Apache Software Foundation. All Rights Reserved.