|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.listeners.ItemListener
com.sonyericsson.jenkins.plugins.bfa.utils.OldDataConverter
@Extension public final class OldDataConverter
Converts old FoundIndication
s with line number info to
the new format using line matcher.
Nested Class Summary | |
---|---|
static class |
OldDataConverter.FoundIndicationWork
A work task that does the actual conversion in an executor thread. |
static class |
OldDataConverter.MatrixBuildActionWork
Work to convert FailureCauseMatrixBuildAction s to use FailureCauseMatrixBuildAction.runIds
instead of run instances during serialization. |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary | |
---|---|
static int |
POOL_SIZE
The size of the thread pool. |
static int |
SCHEDULE_DELAY
The seconds to delay actual processing of the conversion. |
Constructor Summary | |
---|---|
OldDataConverter()
Default Constructor. |
Method Summary | |
---|---|
void |
convertFoundIndications(hudson.model.AbstractBuild build)
Adds the provided build to the queue of builds to convert FoundIndication s in, unless the conversion for
that build is already in progress. |
void |
convertMatrixBuildAction(String matrixProjectName,
FailureCauseMatrixBuildAction action)
Convert FailureCauseMatrixBuildAction s to use FailureCauseMatrixBuildAction.runIds instead of run
instances during serialization. |
static OldDataConverter |
getInstance()
Retrieves the singleton instance from ItemListener.all() . |
void |
onLoaded()
|
Methods inherited from class hudson.model.listeners.ItemListener |
---|
all, fireOnCopied, fireOnCreated, fireOnUpdated, onBeforeShutdown, onCopied, onCreated, onDeleted, onRenamed, onUpdated, register |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int POOL_SIZE
Executors.newScheduledThreadPool(int)
,
Constant Field Valuespublic static final int SCHEDULE_DELAY
ScheduledExecutorService.schedule(java.util.concurrent.Callable, long, java.util.concurrent.TimeUnit)
,
Constant Field ValuesConstructor Detail |
---|
public OldDataConverter()
Method Detail |
---|
public static OldDataConverter getInstance()
ItemListener.all()
. If it is not found there
an IllegalStateException
will be thrown.
public void convertFoundIndications(hudson.model.AbstractBuild build)
FoundIndication
s in, unless the conversion for
that build is already in progress.
build
- the build to convert.public void convertMatrixBuildAction(String matrixProjectName, FailureCauseMatrixBuildAction action)
FailureCauseMatrixBuildAction
s to use FailureCauseMatrixBuildAction.runIds
instead of run
instances during serialization.
Will schedule the conversion until all items in Jenkins has been loaded.
action
- the action to fix.matrixProjectName
- the name of the matrix project.public void onLoaded()
onLoaded
in class hudson.model.listeners.ItemListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |