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
public final class NoOpProducer extends ClusterEventProducerBase
No-op implementation ofClusterEventProducer
. 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
Fields Modifier and Type Field Description static Set<ClusterEvent.EventType>
ALL_EVENT_TYPES
-
Fields inherited from class org.apache.solr.cluster.events.ClusterEventProducerBase
cc, listeners, state
-
Fields inherited from interface org.apache.solr.cluster.events.ClusterEventProducer
PLUGIN_NAME
-
-
Constructor Summary
Constructors Constructor Description NoOpProducer(CoreContainer cc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ClusterEvent.EventType>
getSupportedEventTypes()
void
start()
Start the operation of the component.void
stop()
Stop the operation of the component.-
Methods inherited from class org.apache.solr.cluster.events.ClusterEventProducerBase
close, fireEvent, getState, registerListener, unregisterListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.cluster.events.ClusterEventProducer
getName, unregisterListener
-
-
-
-
Field Detail
-
ALL_EVENT_TYPES
public static final Set<ClusterEvent.EventType> ALL_EVENT_TYPES
-
-
Constructor Detail
-
NoOpProducer
public NoOpProducer(CoreContainer cc)
-
-
Method Detail
-
getSupportedEventTypes
public Set<ClusterEvent.EventType> getSupportedEventTypes()
- Specified by:
getSupportedEventTypes
in classClusterEventProducerBase
-
start
public void start() throws Exception
Description copied from interface:ClusterSingleton
Start 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:ClusterSingleton
Stop 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.
-
-