Class FixedRoutingKeyProvider
- java.lang.Object
-
- com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.routingkeys.RoutingKeyProvider
-
- com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.routingkeys.FixedRoutingKeyProvider
-
- All Implemented Interfaces:
Describable<RoutingKeyProvider>
,Serializable
public class FixedRoutingKeyProvider extends RoutingKeyProvider
ARoutingKeyProvider
implementation that always produces the same configurable fixed string regardless of the event input.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FixedRoutingKeyProvider.FixedRoutingKeyProviderDescriptor
Descriptor forFixedRoutingKeyProvider
.-
Nested classes/interfaces inherited from class com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.routingkeys.RoutingKeyProvider
RoutingKeyProvider.RoutingKeyProviderDescriptor
-
-
Constructor Summary
Constructors Constructor Description FixedRoutingKeyProvider(String fixedRoutingKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor<RoutingKeyProvider>
getDescriptor()
String
getFixedRoutingKey()
String
getRoutingKey(EiffelEvent event)
Computes the routing key for an event.void
setFixedRoutingKey(String fixedRoutingKey)
-
-
-
Constructor Detail
-
FixedRoutingKeyProvider
@DataBoundConstructor public FixedRoutingKeyProvider(@NonNull String fixedRoutingKey)
-
-
Method Detail
-
getRoutingKey
@NonNull public String getRoutingKey(EiffelEvent event)
Computes the routing key for an event.- Specified by:
getRoutingKey
in classRoutingKeyProvider
- Parameters:
event
- theEiffelEvent
whose routing key is wanted- Returns:
- a string consisting of one or more dot-separated tokens that's usable as a routing key
-
getFixedRoutingKey
@NonNull public String getFixedRoutingKey()
-
setFixedRoutingKey
@DataBoundSetter public void setFixedRoutingKey(@NonNull String fixedRoutingKey)
-
getDescriptor
public Descriptor<RoutingKeyProvider> getDescriptor()
-
-