Package jetbrains.buildServer.vcs
Class ChangesLoaderLoggerImpl
- java.lang.Object
-
- jetbrains.buildServer.vcs.ChangesLoaderLoggerImpl
-
- All Implemented Interfaces:
ChangesCollectionLogger,ChangesLoaderLogger
- Direct Known Subclasses:
BuildStartChangesLoaderLogger
public abstract class ChangesLoaderLoggerImpl extends Object implements ChangesCollectionLogger
Created 23.08.13 18:40- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringBAD_INCLUDE_RULESstatic StringCOLLECT_CHANGES_INstatic StringDETECTING_CHANGES_IN_VCS_ROOTstatic StringDONE_COLLECTING_CHANGESstatic StringERROR_OCCURRED_WHEN_COLLECTING_CHANGES_BY_COMBINED_RULEstatic StringLOADING_CURRENT_REPOSITORY_STATEstatic StringNO_PREVIOUS_STATE_TO_COLLECT_CHANGES_FROMstatic StringPROCESSING_COMBINED_CHECKOUT_RULEstatic StringPROGRESSstatic StringVCS_REVISIONSstatic StringVCS_ROOT_DETAILSstatic StringWAITING_FOR_LOCKING_ROOTstatic StringWILL_COLLECT_CHANGES_FROM_REVISION
-
Constructor Summary
Constructors Constructor Description ChangesLoaderLoggerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddVcsRootProgress(LVcsRootInstance root, String progress)voidlogBeforeChangesCollectionStarted(LoadChangesRequest state, Set<? extends LVcsRootInstanceHolder> buildTypes)0.protected abstract voidlogBlockEnd(String blockText, String flowId)protected abstract voidlogBlockStart(String blockText, boolean isInternal, String flowId)voidlogChangesCollectionFinished(Set<LVcsRootInstance> roots)Called when system finishes changes collecting on build startvoidlogChangesCollectionStarting(Set<LVcsRootInstance> roots)Called when system decided to start changes collection on build startvoidlogCollectionCommonCheckoutRule(LoadChangesRequest state)2.voidlogCollectionCommonCheckoutRuleWithoutBadRules(LoadChangesRequest state, CheckoutRules combinedRule)3.voidlogErrorCollectionByCommonRule(LoadChangesRequest state, VcsIncludeRulesException e)2.1 Collection of changes by combined checkout rule may failedvoidlogFinishCollectingChanges(LoadChangesRequest state, boolean hadErrors, int persistedChangesCount, int collectedChangesCount, Date whenStarted, Date whenFinished, long changesPersistingDurationMillis)4.voidlogLockingVcsRootToCollectChanges(LVcsRootInstance root)protected abstract voidlogMessage(String messageText, boolean isInternal, String flowId)voidlogNoPreviousState(LoadChangesRequest state)0.1.voidlogObtainingCurrentState(LVcsRootInstance root)voidlogObtainingCurrentStateFinished(LVcsRootInstance root)voidlogPreviousState(LoadChangesRequest state, RepositoryState filteredFromState)voidlogProgress(LVcsRootInstance root, String progress)voidlogStartCollectingChanges(LoadChangesRequest state, Date date)1.
-
-
-
Field Detail
-
COLLECT_CHANGES_IN
public static final String COLLECT_CHANGES_IN
- See Also:
- Constant Field Values
-
VCS_ROOT_DETAILS
public static final String VCS_ROOT_DETAILS
- See Also:
- Constant Field Values
-
WAITING_FOR_LOCKING_ROOT
public static final String WAITING_FOR_LOCKING_ROOT
- See Also:
- Constant Field Values
-
NO_PREVIOUS_STATE_TO_COLLECT_CHANGES_FROM
public static final String NO_PREVIOUS_STATE_TO_COLLECT_CHANGES_FROM
- See Also:
- Constant Field Values
-
WILL_COLLECT_CHANGES_FROM_REVISION
public static final String WILL_COLLECT_CHANGES_FROM_REVISION
- See Also:
- Constant Field Values
-
LOADING_CURRENT_REPOSITORY_STATE
public static final String LOADING_CURRENT_REPOSITORY_STATE
- See Also:
- Constant Field Values
-
PROGRESS
public static final String PROGRESS
- See Also:
- Constant Field Values
-
DETECTING_CHANGES_IN_VCS_ROOT
public static final String DETECTING_CHANGES_IN_VCS_ROOT
- See Also:
- Constant Field Values
-
PROCESSING_COMBINED_CHECKOUT_RULE
public static final String PROCESSING_COMBINED_CHECKOUT_RULE
- See Also:
- Constant Field Values
-
VCS_REVISIONS
public static final String VCS_REVISIONS
- See Also:
- Constant Field Values
-
DONE_COLLECTING_CHANGES
public static final String DONE_COLLECTING_CHANGES
- See Also:
- Constant Field Values
-
ERROR_OCCURRED_WHEN_COLLECTING_CHANGES_BY_COMBINED_RULE
public static final String ERROR_OCCURRED_WHEN_COLLECTING_CHANGES_BY_COMBINED_RULE
- See Also:
- Constant Field Values
-
BAD_INCLUDE_RULES
public static final String BAD_INCLUDE_RULES
- See Also:
- Constant Field Values
-
-
Method Detail
-
logBlockStart
protected abstract void logBlockStart(@NotNull String blockText, boolean isInternal, @NotNull String flowId)
-
logMessage
protected abstract void logMessage(@NotNull String messageText, boolean isInternal, @NotNull String flowId)
-
logBeforeChangesCollectionStarted
public void logBeforeChangesCollectionStarted(@NotNull LoadChangesRequest state, @NotNull Set<? extends LVcsRootInstanceHolder> buildTypes)Description copied from interface:ChangesCollectionLogger0. called before changes commection is started- Specified by:
logBeforeChangesCollectionStartedin interfaceChangesCollectionLogger- Parameters:
state- requestbuildTypes- involved build types
-
logNoPreviousState
public void logNoPreviousState(@NotNull LoadChangesRequest state)Description copied from interface:ChangesCollectionLogger0.1. notifies there were no previous state for the request, so changes collection was not started- Specified by:
logNoPreviousStatein interfaceChangesCollectionLogger- Parameters:
state- request
-
logPreviousState
public void logPreviousState(@NotNull LoadChangesRequest state, RepositoryState filteredFromState)- Specified by:
logPreviousStatein interfaceChangesCollectionLogger
-
logCollectionCommonCheckoutRule
public void logCollectionCommonCheckoutRule(@NotNull LoadChangesRequest state)Description copied from interface:ChangesLoaderLogger2. Notification called on collection of changes by combined checkout rule- Specified by:
logCollectionCommonCheckoutRulein interfaceChangesLoaderLogger- Parameters:
state- state
-
logChangesCollectionStarting
public void logChangesCollectionStarting(@NotNull Set<LVcsRootInstance> roots)Description copied from interface:ChangesCollectionLoggerCalled when system decided to start changes collection on build start- Specified by:
logChangesCollectionStartingin interfaceChangesCollectionLogger
-
logChangesCollectionFinished
public void logChangesCollectionFinished(@NotNull Set<LVcsRootInstance> roots)Description copied from interface:ChangesCollectionLoggerCalled when system finishes changes collecting on build start- Specified by:
logChangesCollectionFinishedin interfaceChangesCollectionLogger
-
logLockingVcsRootToCollectChanges
public void logLockingVcsRootToCollectChanges(@NotNull LVcsRootInstance root)- Specified by:
logLockingVcsRootToCollectChangesin interfaceChangesCollectionLogger
-
logObtainingCurrentState
public void logObtainingCurrentState(@NotNull LVcsRootInstance root)- Specified by:
logObtainingCurrentStatein interfaceChangesCollectionLogger
-
logObtainingCurrentStateFinished
public void logObtainingCurrentStateFinished(@NotNull LVcsRootInstance root)- Specified by:
logObtainingCurrentStateFinishedin interfaceChangesCollectionLogger
-
logProgress
public void logProgress(@NotNull LVcsRootInstance root, @NotNull String progress)- Specified by:
logProgressin interfaceChangesCollectionLogger- Specified by:
logProgressin interfaceChangesLoaderLogger
-
logErrorCollectionByCommonRule
public void logErrorCollectionByCommonRule(@NotNull LoadChangesRequest state, @NotNull VcsIncludeRulesException e)Description copied from interface:ChangesLoaderLogger2.1 Collection of changes by combined checkout rule may failed- Specified by:
logErrorCollectionByCommonRulein interfaceChangesLoaderLogger- Parameters:
state- statee- error
-
logCollectionCommonCheckoutRuleWithoutBadRules
public void logCollectionCommonCheckoutRuleWithoutBadRules(LoadChangesRequest state, CheckoutRules combinedRule)
Description copied from interface:ChangesLoaderLogger3. Collection of changes will be performed without problematic checkout rules- Specified by:
logCollectionCommonCheckoutRuleWithoutBadRulesin interfaceChangesLoaderLogger- Parameters:
state- general statecombinedRule- combined checkout rule
-
logStartCollectingChanges
public void logStartCollectingChanges(@NotNull LoadChangesRequest state, @NotNull Date date)Description copied from interface:ChangesLoaderLogger1. Notification called on collection changes start- Specified by:
logStartCollectingChangesin interfaceChangesLoaderLogger- 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:ChangesLoaderLogger4. changes collection is completed- Specified by:
logFinishCollectingChangesin interfaceChangesLoaderLogger- Parameters:
state- statehadErrors- had errors during comllectionpersistedChangesCount- number of changes storedcollectedChangesCount- number of changes collectedwhenStarted- time of startwhenFinished- time of finish
-
addVcsRootProgress
protected void addVcsRootProgress(@NotNull LVcsRootInstance root, @NotNull String progress)
-
-