Class DefaultClusterEventProducer
java.lang.Object
org.apache.solr.cluster.events.ClusterEventProducerBase
org.apache.solr.cluster.events.impl.DefaultClusterEventProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,ClusterSingleton,ClusterEventProducer
Implementation of
ClusterEventProducer.
Implementation notes
For each cluster event relevant listeners are always invoked sequentially (not in parallel) and in arbitrary order. This means that if any listener blocks the processing other listeners may be invoked much later or not at all.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.cloud.ClusterSingleton
ClusterSingleton.State -
Field Summary
Fields inherited from class org.apache.solr.cluster.events.ClusterEventProducerBase
cc, listeners, stateFields inherited from interface org.apache.solr.cluster.events.ClusterEventProducer
PLUGIN_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.solr.cluster.events.ClusterEventProducerBase
fireEvent, getState, registerListener, unregisterListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.cluster.events.ClusterEventProducer
getName, unregisterListener
-
Constructor Details
-
DefaultClusterEventProducer
-
-
Method Details
-
start
public void start()Description copied from interface:ClusterSingletonStart the operation of the component. Initially this method should set the state to STARTING, and on success it should set the state to RUNNING. -
getSupportedEventTypes
- Specified by:
getSupportedEventTypesin classClusterEventProducerBase
-
stop
public void stop()Description copied from interface:ClusterSingletonStop the operation of the component. Initially this method should set the state to STOPPING, and on return it should set the state to STOPPED. Components should also avoid holding any resource when in STOPPED state. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classClusterEventProducerBase- Throws:
IOException
-