Class InspectionsMessageProcessor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.stat.BaseMessageProcessor
-
- jetbrains.buildServer.serverSide.messages.codeInspection.InspectionsMessageProcessor
-
- All Implemented Interfaces:
MessageProcessor
public class InspectionsMessageProcessor extends BaseMessageProcessor
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEBUG_LOGGING_PARAMETER
static GenericQuery<Void>
GET_ALL_INFO_QUERY
static GenericQuery<Void>
INSERT_INFO_QUERY
static String
PROJECT_INSPECTIONS_ID
static GenericQuery<Set<Long>>
SELECT_INSPECTION_IDS_QUERY
static GenericQuery<Void>
UPDATE_INFO_QUERY
-
Constructor Summary
Constructors Modifier Constructor Description protected
InspectionsMessageProcessor(SQLRunnerEx sqlRunnerEx, SRunningBuild build)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doProcessMessage(BuildMessage1 message)
String
getSourceId()
static void
insertInspectionResults(SQLRunnerEx sqlRunner, long buildId, Collection<InspectionMessageBean> beans)
static void
insertInspectionResults(SQLRunnerEx sqlRunner, long buildId, Collection<InspectionMessageBean> beans, boolean debugEnabled)
void
onBuildFinish()
Called when last message has been received for the build from the agent.static int
storeInspectionDescriptions(SQLRunnerEx sqlRunner, Long buildId, Set<InspectionDescriptionBean> beans, boolean debugEnabled)
static int
storeInspectionDescriptions(SQLRunnerEx sqlRunner, Set<InspectionDescriptionBean> beans)
static int[]
updateDiff(SQLRunnerEx myRunner, long currentBuildId, long prevBuildId)
-
Methods inherited from class jetbrains.buildServer.serverSide.stat.BaseMessageProcessor
canProcess, persistState, processMessage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.MessageProcessor
onShutdown
-
-
-
-
Field Detail
-
PROJECT_INSPECTIONS_ID
public static final String PROJECT_INSPECTIONS_ID
- See Also:
- Constant Field Values
-
DEBUG_LOGGING_PARAMETER
public static final String DEBUG_LOGGING_PARAMETER
- See Also:
- Constant Field Values
-
SELECT_INSPECTION_IDS_QUERY
public static final GenericQuery<Set<Long>> SELECT_INSPECTION_IDS_QUERY
-
INSERT_INFO_QUERY
public static final GenericQuery<Void> INSERT_INFO_QUERY
-
UPDATE_INFO_QUERY
public static final GenericQuery<Void> UPDATE_INFO_QUERY
-
GET_ALL_INFO_QUERY
public static final GenericQuery<Void> GET_ALL_INFO_QUERY
-
-
Constructor Detail
-
InspectionsMessageProcessor
protected InspectionsMessageProcessor(@NotNull SQLRunnerEx sqlRunnerEx, @NotNull SRunningBuild build)
-
-
Method Detail
-
getSourceId
@NotNull public final String getSourceId()
- Returns:
- message source id to be processed by this instance of processor.
-
doProcessMessage
protected final void doProcessMessage(BuildMessage1 message)
- Specified by:
doProcessMessage
in classBaseMessageProcessor
-
updateDiff
public static int[] updateDiff(SQLRunnerEx myRunner, long currentBuildId, long prevBuildId)
-
insertInspectionResults
public static void insertInspectionResults(@NotNull SQLRunnerEx sqlRunner, long buildId, @NotNull Collection<InspectionMessageBean> beans)
-
insertInspectionResults
public static void insertInspectionResults(@NotNull SQLRunnerEx sqlRunner, long buildId, @NotNull Collection<InspectionMessageBean> beans, boolean debugEnabled)
-
storeInspectionDescriptions
public static int storeInspectionDescriptions(@NotNull SQLRunnerEx sqlRunner, @NotNull Set<InspectionDescriptionBean> beans)
-
storeInspectionDescriptions
public static int storeInspectionDescriptions(@NotNull SQLRunnerEx sqlRunner, @Nullable Long buildId, @NotNull Set<InspectionDescriptionBean> beans, boolean debugEnabled)
-
onBuildFinish
public final void onBuildFinish()
Description copied from interface:MessageProcessor
Called when last message has been received for the build from the agent. Can be used to destroy state which was associated with the build.- Specified by:
onBuildFinish
in interfaceMessageProcessor
- Overrides:
onBuildFinish
in classBaseMessageProcessor
-
-