Class CoverageRoutingContext
java.lang.Object
org.jenkinsci.plugins.vmanager.charts.util.CoverageRoutingContext
Per-build routing-OID holder for vManager COVERAGE_LEVEL REST calls.
vManager's /rest/metrics/get endpoint requires the caller to:
- Always send
x-vmgr-routing-retain: 1. - On the very first call within a build, NOT send
x-vmgr-routing-oid— the server returns one in the response. - On every subsequent call within the same build, echo the
x-vmgr-routing-oidvalue received from the previous call. - Reset between builds (next build starts again with no oid).
One instance is created per onCompleted invocation in the
RunListener and shared across every COVERAGE_LEVEL request issued for that
build. Not thread-safe — the listener serially issues requests.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HDR_RETAIN
- See Also:
-
HDR_OID
- See Also:
-
-
Constructor Details
-
CoverageRoutingContext
public CoverageRoutingContext()
-
-
Method Details
-
getOid
-
setOid
-
hasOid
public boolean hasOid()
-