Package org.apache.solr.cluster.events
Class NoOpProducer
java.lang.Object
org.apache.solr.cluster.events.ClusterEventProducerBase
org.apache.solr.cluster.events.NoOpProducer
- All Implemented Interfaces:
Closeable,AutoCloseable,ClusterSingleton,ClusterEventProducer
No-op implementation of
ClusterEventProducer. This implementation doesn't generate any
events.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.cloud.ClusterSingleton
ClusterSingleton.State -
Field Summary
FieldsFields 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
close, 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
-
Field Details
-
ALL_EVENT_TYPES
-
-
Constructor Details
-
NoOpProducer
-
-
Method Details
-
getSupportedEventTypes
- Specified by:
getSupportedEventTypesin classClusterEventProducerBase
-
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.- Throws:
Exception- on startup errors. The component should revert to the STOPPED state.
-
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.
-