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 String
BAD_INCLUDE_RULES
static String
COLLECT_CHANGES_IN
static String
DETECTING_CHANGES_IN_VCS_ROOT
static String
DONE_COLLECTING_CHANGES
static String
ERROR_OCCURRED_WHEN_COLLECTING_CHANGES_BY_COMBINED_RULE
static String
LOADING_CURRENT_REPOSITORY_STATE
static String
NO_PREVIOUS_STATE_TO_COLLECT_CHANGES_FROM
static String
PROCESSING_COMBINED_CHECKOUT_RULE
static String
PROGRESS
static String
VCS_REVISIONS
static String
VCS_ROOT_DETAILS
static String
WAITING_FOR_LOCKING_ROOT
static String
WILL_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 void
addVcsRootProgress(LVcsRootInstance root, String progress)
void
logBeforeChangesCollectionStarted(LoadChangesRequest state, Set<? extends LVcsRootInstanceHolder> buildTypes)
0.protected abstract void
logBlockEnd(String blockText, String flowId)
protected abstract 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 abstract 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.
-
-
-
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:ChangesCollectionLogger
0. called before changes commection is started- Specified by:
logBeforeChangesCollectionStarted
in interfaceChangesCollectionLogger
- 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
- Parameters:
state
- request
-
logPreviousState
public void logPreviousState(@NotNull LoadChangesRequest state, RepositoryState filteredFromState)
- Specified by:
logPreviousState
in interfaceChangesCollectionLogger
-
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
- 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
-
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
-
logLockingVcsRootToCollectChanges
public void logLockingVcsRootToCollectChanges(@NotNull LVcsRootInstance root)
- Specified by:
logLockingVcsRootToCollectChanges
in interfaceChangesCollectionLogger
-
logObtainingCurrentState
public void logObtainingCurrentState(@NotNull LVcsRootInstance root)
- Specified by:
logObtainingCurrentState
in interfaceChangesCollectionLogger
-
logObtainingCurrentStateFinished
public void logObtainingCurrentStateFinished(@NotNull LVcsRootInstance root)
- Specified by:
logObtainingCurrentStateFinished
in interfaceChangesCollectionLogger
-
logProgress
public void logProgress(@NotNull LVcsRootInstance root, @NotNull String progress)
- Specified by:
logProgress
in interfaceChangesCollectionLogger
- Specified by:
logProgress
in interfaceChangesLoaderLogger
-
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
- 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
- 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
- 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
- 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)
-
-