Package org.apache.solr.common.cloud
Interface CollectionStateWatcher
- 
 public interface CollectionStateWatcherCallback registered withZkStateReader.registerCollectionStateWatcher(String, CollectionStateWatcher)and called whenever there is a change in the collection state or in the list of liveNodes.- See Also:
- DocCollectionWatcher
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonStateChanged(Set<String> liveNodes, org.apache.solr.common.cloud.DocCollection collectionState)Called when either the collection we are registered against has a change of state or there is a change to the live nodes of our collection.
 
- 
- 
- 
Method Detail- 
onStateChangedboolean onStateChanged(Set<String> liveNodes, org.apache.solr.common.cloud.DocCollection collectionState) Called when either the collection we are registered against has a change of state or there is a change to the live nodes of our collection.Note that, due to the way Zookeeper watchers are implemented, a single call may be the result of several state changes. Also, multiple calls to this method can be made with the same state, ie. without any new updates. - Parameters:
- liveNodes- the set of live nodes
- collectionState- the new collection state (may be null if the collection has been deleted)
- Returns:
- true if the watcher should be removed
 
 
- 
 
-