Class SaveableListenerImpl
- java.lang.Object
-
- hudson.model.listeners.SaveableListener
-
- io.jenkins.plugins.aws.kinesisconsumer.SaveableListenerImpl
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class SaveableListenerImpl extends SaveableListener
ExtendsSaveableListener
to listen toGlobalKinesisConfiguration
changes.- Author:
- Fabio Ponciroli
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SaveableListenerImpl()
SaveableListenerImpl(KinesisConsumerManager manager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SaveableListenerImpl
get()
Gets an instance of this extensionvoid
onChange(Saveable o, XmlFile file)
On change restart the AWS Kinesis consumer.-
Methods inherited from class hudson.model.listeners.SaveableListener
all, fireOnChange, register, unregister
-
-
-
-
Constructor Detail
-
SaveableListenerImpl
@Inject public SaveableListenerImpl(KinesisConsumerManager manager)
-
SaveableListenerImpl
public SaveableListenerImpl()
-
-
Method Detail
-
onChange
public final void onChange(Saveable o, XmlFile file)
On change restart the AWS Kinesis consumer. This is useful, for example, when adding a new stream to listen from- Overrides:
onChange
in classSaveableListener
- Parameters:
o
- saved objectfile
- XML file containing the new configuration
-
get
public static SaveableListenerImpl get()
Gets an instance of this extension- Returns:
- an instance of this extension
-
-