Class RecordingQueue
java.lang.Object
io.jenkins.plugins.dorametrics.collectors.RecordingQueue
Writes finished builds to the store on one background thread, so a build waits on the database
for a few seconds at most. Jenkins counts a build as running until every completion listener
returns, so a write stuck on slow storage would keep the build running, and the next build of
a job that does not allow concurrent builds waiting behind it.
A build waits for its own write for up to WAIT_PROPERTY seconds, so on healthy
storage the data is there when the build finishes, as before. Once a wait runs out, builds do
not wait at all for the next minute, so slow storage costs one build the wait rather than every
build; nor do they while the write in progress is older than the wait. Builds are written in
order; when CAPACITY_PROPERTY builds are already waiting, the next ones are not
recorded. Import history adds them later.
-
Method Summary
-
Method Details
-
start
Lets a Jenkins started again in the same JVM, as in tests, record again. -
shutdown
Writes what is already queued when Jenkins stops, for a few seconds at most, then closes the store.- Throws:
InterruptedException
-