Class JobDslRunHandler
java.lang.Object
io.jenkins.plugins.opentelemetry.job.runhandler.JobDslRunHandler
- All Implemented Interfaces:
RunHandler
,Comparable<RunHandler>
@Extension(optional=true,
dynamicLoadable=YES)
public class JobDslRunHandler
extends Object
implements RunHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreateSpanBuilder
(Run run) void
configure
(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config) io.opentelemetry.api.trace.SpanBuilder
createSpanBuilder
(Run run, io.opentelemetry.api.trace.Tracer tracer) int
ordinal()
void
setSeedJobTransientActionFactory
(javaposse.jobdsl.plugin.actions.SeedJobTransientActionFactory seedJobTransientActionFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jenkins.plugins.opentelemetry.job.runhandler.RunHandler
compareTo
-
Constructor Details
-
JobDslRunHandler
- Throws:
ClassNotFoundException
-
-
Method Details
-
canCreateSpanBuilder
- Specified by:
canCreateSpanBuilder
in interfaceRunHandler
-
createSpanBuilder
@NonNull public io.opentelemetry.api.trace.SpanBuilder createSpanBuilder(@NonNull Run run, @NonNull io.opentelemetry.api.trace.Tracer tracer) - Specified by:
createSpanBuilder
in interfaceRunHandler
-
configure
public void configure(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config) - Specified by:
configure
in interfaceRunHandler
-
ordinal
public int ordinal()- Specified by:
ordinal
in interfaceRunHandler
- Returns:
- the ordinal of this handler to execute run handlers in predictable order. The smallest ordinal is executed first.
-
setSeedJobTransientActionFactory
@Inject public void setSeedJobTransientActionFactory(@NonNull javaposse.jobdsl.plugin.actions.SeedJobTransientActionFactory seedJobTransientActionFactory)
-