Class MonitoringStreamsInterceptor
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.interceptors.MonitoringStreamsInterceptor
-
- All Implemented Interfaces:
Configurable
,StreamsLifecycleInterceptor
public class MonitoringStreamsInterceptor extends Object implements StreamsLifecycleInterceptor, Configurable
Interceptor to monitorKafkaStreams
instance. Publishes periodically a streams state event to a Kafka topic.
-
-
Constructor Summary
Constructors Constructor Description MonitoringStreamsInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Conf configuration)
Configures this instance with the specifiedConf
.void
onStart(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being started.void
onStop(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being stopped.
-
-
-
Method Detail
-
configure
public void configure(Conf configuration)
Configures this instance with the specifiedConf
.- Specified by:
configure
in interfaceConfigurable
- Parameters:
configuration
- theConf
instance used to configure this instance.
-
onStart
public void onStart(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being started.- Specified by:
onStart
in interfaceStreamsLifecycleInterceptor
chain
- theStreamsLifecycleChain
instance.
-
onStop
public void onStop(StreamsLifecycleContext context, StreamsLifecycleChain chain)
Intercepts the streams instance before being stopped.- Specified by:
onStop
in interfaceStreamsLifecycleInterceptor
chain
- theStreamsLifecycleChain
instance.
-
-