Package jetbrains.buildServer.vcs.impl
Class BuildStartChangesLoaderLogger
- java.lang.Object
-
- jetbrains.buildServer.vcs.ChangesLoaderLoggerImpl
-
- jetbrains.buildServer.vcs.impl.BuildStartChangesLoaderLogger
-
- All Implemented Interfaces:
ChangesCollectionLogger
,ChangesLoaderLogger
public class BuildStartChangesLoaderLogger extends ChangesLoaderLoggerImpl
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHANGES_BLOCK
-
Fields inherited from class jetbrains.buildServer.vcs.ChangesLoaderLoggerImpl
BAD_INCLUDE_RULES, COLLECT_CHANGES_IN, DETECTING_CHANGES_IN_VCS_ROOT, DONE_COLLECTING_CHANGES, ERROR_OCCURRED_WHEN_COLLECTING_CHANGES_BY_COMBINED_RULE, LOADING_CURRENT_REPOSITORY_STATE, NO_PREVIOUS_STATE_TO_COLLECT_CHANGES_FROM, PROCESSING_COMBINED_CHECKOUT_RULE, PROGRESS, VCS_REVISIONS, VCS_ROOT_DETAILS, WAITING_FOR_LOCKING_ROOT, WILL_COLLECT_CHANGES_FROM_REVISION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logBeforeChangesCollectionStarted(LoadChangesRequest state, Set<? extends LVcsRootInstanceHolder> buildTypes)
0.protected void
logBlockEnd(String blockText, String flowId)
protected void
logBlockStart(String blockText, boolean isInternal, String flowId)
void
logChangesCollectionFinished(Set<LVcsRootInstance> roots)
Called when system finishes changes collecting on build startvoid
logChangesCollectionStarting(Set<LVcsRootInstance> roots)
Called when system decided to start changes collection on build startvoid
logCollectionCommonCheckoutRule(LoadChangesRequest state)
2.void
logCollectionCommonCheckoutRuleWithoutBadRules(LoadChangesRequest state, CheckoutRules combinedRule)
3.void
logErrorCollectionByCommonRule(LoadChangesRequest state, VcsIncludeRulesException e)
2.1 Collection of changes by combined checkout rule may failedvoid
logFinishCollectingChanges(LoadChangesRequest state, boolean hadErrors, int persistedChangesCount, int collectedChangesCount, Date whenStarted, Date whenFinished, long changesPersistingDurationMillis)
4.void
logLockingVcsRootToCollectChanges(LVcsRootInstance root)
protected void
logMessage(String messageText, boolean isInternal, String flowId)
void
logNoPreviousState(LoadChangesRequest state)
0.1.void
logObtainingCurrentState(LVcsRootInstance root)
void
logObtainingCurrentStateFinished(LVcsRootInstance root)
void
logPreviousState(LoadChangesRequest state, RepositoryState filteredFromState)
void
logProgress(LVcsRootInstance root, String progress)
void
logStartCollectingChanges(LoadChangesRequest state, Date date)
1.-
Methods inherited from class jetbrains.buildServer.vcs.ChangesLoaderLoggerImpl
addVcsRootProgress
-
-
-
-
Field Detail
-
CHANGES_BLOCK
public static final String CHANGES_BLOCK
- See Also:
- Constant Field Values
-
-
Method Detail
-
logMessage
protected void logMessage(@NotNull String messageText, boolean isInternal, @NotNull String flowId)
- Specified by:
logMessage
in classChangesLoaderLoggerImpl
-
logBlockStart
protected void logBlockStart(@NotNull String blockText, boolean isInternal, @NotNull String flowId)
- Specified by:
logBlockStart
in classChangesLoaderLoggerImpl
-
logBlockEnd
protected void logBlockEnd(@NotNull String blockText, @NotNull String flowId)
- Specified by:
logBlockEnd
in classChangesLoaderLoggerImpl
-
logBeforeChangesCollectionStarted
public void logBeforeChangesCollectionStarted(@NotNull LoadChangesRequest state, @NotNull Set<? extends LVcsRootInstanceHolder> buildTypes)
Description copied from interface:ChangesCollectionLogger
0. called before changes commection is started- Specified by:
logBeforeChangesCollectionStarted
in interfaceChangesCollectionLogger
- Overrides:
logBeforeChangesCollectionStarted
in classChangesLoaderLoggerImpl
- Parameters:
state
- requestbuildTypes
- involved build types
-
logNoPreviousState
public void logNoPreviousState(@NotNull LoadChangesRequest state)
Description copied from interface:ChangesCollectionLogger
0.1. notifies there were no previous state for the request, so changes collection was not started- Specified by:
logNoPreviousState
in interfaceChangesCollectionLogger
- Overrides:
logNoPreviousState
in classChangesLoaderLoggerImpl
- Parameters:
state
- request
-
logPreviousState
public void logPreviousState(@NotNull LoadChangesRequest state, RepositoryState filteredFromState)
- Specified by:
logPreviousState
in interfaceChangesCollectionLogger
- Overrides:
logPreviousState
in classChangesLoaderLoggerImpl
-
logCollectionCommonCheckoutRule
public void logCollectionCommonCheckoutRule(@NotNull LoadChangesRequest state)
Description copied from interface:ChangesLoaderLogger
2. Notification called on collection of changes by combined checkout rule- Specified by:
logCollectionCommonCheckoutRule
in interfaceChangesLoaderLogger
- Overrides:
logCollectionCommonCheckoutRule
in classChangesLoaderLoggerImpl
- Parameters:
state
- state
-
logChangesCollectionStarting
public void logChangesCollectionStarting(@NotNull Set<LVcsRootInstance> roots)
Description copied from interface:ChangesCollectionLogger
Called when system decided to start changes collection on build start- Specified by:
logChangesCollectionStarting
in interfaceChangesCollectionLogger
- Overrides:
logChangesCollectionStarting
in classChangesLoaderLoggerImpl
-
logChangesCollectionFinished
public void logChangesCollectionFinished(@NotNull Set<LVcsRootInstance> roots)
Description copied from interface:ChangesCollectionLogger
Called when system finishes changes collecting on build start- Specified by:
logChangesCollectionFinished
in interfaceChangesCollectionLogger
- Overrides:
logChangesCollectionFinished
in classChangesLoaderLoggerImpl
-
logLockingVcsRootToCollectChanges
public void logLockingVcsRootToCollectChanges(@NotNull LVcsRootInstance root)
- Specified by:
logLockingVcsRootToCollectChanges
in interfaceChangesCollectionLogger
- Overrides:
logLockingVcsRootToCollectChanges
in classChangesLoaderLoggerImpl
-
logObtainingCurrentState
public void logObtainingCurrentState(@NotNull LVcsRootInstance root)
- Specified by:
logObtainingCurrentState
in interfaceChangesCollectionLogger
- Overrides:
logObtainingCurrentState
in classChangesLoaderLoggerImpl
-
logObtainingCurrentStateFinished
public void logObtainingCurrentStateFinished(@NotNull LVcsRootInstance root)
- Specified by:
logObtainingCurrentStateFinished
in interfaceChangesCollectionLogger
- Overrides:
logObtainingCurrentStateFinished
in classChangesLoaderLoggerImpl
-
logProgress
public void logProgress(@NotNull LVcsRootInstance root, @NotNull String progress)
- Specified by:
logProgress
in interfaceChangesCollectionLogger
- Specified by:
logProgress
in interfaceChangesLoaderLogger
- Overrides:
logProgress
in classChangesLoaderLoggerImpl
-
logErrorCollectionByCommonRule
public void logErrorCollectionByCommonRule(@NotNull LoadChangesRequest state, @NotNull VcsIncludeRulesException e)
Description copied from interface:ChangesLoaderLogger
2.1 Collection of changes by combined checkout rule may failed- Specified by:
logErrorCollectionByCommonRule
in interfaceChangesLoaderLogger
- Overrides:
logErrorCollectionByCommonRule
in classChangesLoaderLoggerImpl
- Parameters:
state
- statee
- error
-
logCollectionCommonCheckoutRuleWithoutBadRules
public void logCollectionCommonCheckoutRuleWithoutBadRules(LoadChangesRequest state, CheckoutRules combinedRule)
Description copied from interface:ChangesLoaderLogger
3. Collection of changes will be performed without problematic checkout rules- Specified by:
logCollectionCommonCheckoutRuleWithoutBadRules
in interfaceChangesLoaderLogger
- Overrides:
logCollectionCommonCheckoutRuleWithoutBadRules
in classChangesLoaderLoggerImpl
- Parameters:
state
- general statecombinedRule
- combined checkout rule
-
logStartCollectingChanges
public void logStartCollectingChanges(@NotNull LoadChangesRequest state, @NotNull Date date)
Description copied from interface:ChangesLoaderLogger
1. Notification called on collection changes start- Specified by:
logStartCollectingChanges
in interfaceChangesLoaderLogger
- Overrides:
logStartCollectingChanges
in classChangesLoaderLoggerImpl
- Parameters:
state
- state
-
logFinishCollectingChanges
public void logFinishCollectingChanges(@NotNull LoadChangesRequest state, boolean hadErrors, int persistedChangesCount, int collectedChangesCount, @NotNull Date whenStarted, @NotNull Date whenFinished, long changesPersistingDurationMillis)
Description copied from interface:ChangesLoaderLogger
4. changes collection is completed- Specified by:
logFinishCollectingChanges
in interfaceChangesLoaderLogger
- Overrides:
logFinishCollectingChanges
in classChangesLoaderLoggerImpl
- Parameters:
state
- statehadErrors
- had errors during comllectionpersistedChangesCount
- number of changes storedcollectedChangesCount
- number of changes collectedwhenStarted
- time of startwhenFinished
- time of finish
-
-