In order to make itself observable, the server class creates an instance of ZooKeeperObserverNotifier and then, calls the notifyStarted or notifyShutdown methods to notify all registered observers of a startup or shutdown event correspondingly. Application wishing to be notified of a server state change should implement {@link ServerObserver} interface and register an instance of the interfacewith {@link ObserverManager}.
|
|
|
|