Class EventTrackerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
-
- jetbrains.buildServer.serverSide.BuildServerAdapter
-
- jetbrains.buildServer.serverSide.impl.tracker.EventTrackerImpl
-
- All Implemented Interfaces:
EventListener,NotificationRulesListener<Long>,AgentPoolListener,BuildServerListener,BuildTypeBranchesListener,VersionedSettingsStatusEventListener,ProjectsModelListener,ServerListener,EventTracker,UserModelListenerEx,UserModelListener
public class EventTrackerImpl extends BuildServerAdapter implements EventTracker, UserModelListener, BuildTypeBranchesListener, NotificationRulesListener<Long>, UserModelListenerEx, AgentPoolListener, VersionedSettingsStatusEventListener
- Author:
- Pavel.Sher Date: 18.01.2008
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.tracker.EventTracker
EventTracker.CounterChangedListener
-
-
Constructor Summary
Constructors Constructor Description EventTrackerImpl(EventDispatcher<BuildServerListener> serverDispatcher, EventDispatcher<BuildTypeBranchesListener> branchesDispatcher, AgentPoolManager agentPoolManager, ProjectManagerEx projectManager, UserModelEx userModel, NotificationRulesManager rulesManager, SecurityContext securityContext, BuildHistory buildHistory, ExecutorServices executorServices, EventDispatcher<VersionedSettingsStatusEventListener> versionedSettingsStatusDispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidagentDescriptionUpdated(SBuildAgent agent)Called when build agent description update is finished.voidagentPoolCreated(int agentPoolId)Called when agent pool is createdvoidagentPoolDeleted(int agentPoolId)Called when agent pool is deletedvoidagentPoolUpdated(int agentPoolId)Called when agent pool is updatedvoidagentRegistered(SBuildAgent agent, long currentlyRunningBuildId)Called when build agent is registered (connected)
Some events may be skipped when an agent was registered on another node.voidagentRemoved(int agentId)Called when agent with specified id is removed.voidagentStatusChanged(SBuildAgent agent, boolean wasEnabled, boolean wasAuthorized)Called when the status of an agent is changed by a user
Some events may be skipped when an agent is registered on another node.voidagentTypeMoved(AgentType agentType, AgentPool oldPool, AgentPool newPool)Called when agent type is moved to another poolvoidagentUnregistered(SBuildAgent agent, String reason)Called after build agent unregistration
Some events may be skipped when an agent was registered on another node.voidbranchesMayHaveChanged(SBuildType buildType)The event may be triggered when branches were not changed, but it must be triggered when branches were changed.voidbuildChangedStatus(SRunningBuild build, Status oldStatus, Status newStatus)Called when build status changes from successful to failedvoidbuildFinished(SRunningBuild build)Called after build finishing, only if build was not interruptedvoidbuildInterrupted(SRunningBuild build)Called after build finishing, only if build was interruptedvoidbuildProblemsChanged(SBuild build, List<BuildProblemData> before, List<BuildProblemData> after)Called when list of build problems changes (problems added, removed)
beforeparameter may be empty or contain some outdated data when the problems are changed on another node: current node is main server but the problem was added on messages processing node current node is read-only but the problem was added on the main servervoidbuildProblemsMuted(MuteInfo muteInfo)Called when a set of build problems are muted (with same mute properties).voidbuildProblemsUnmuted(SUser user, Map<MuteInfo,Collection<BuildProblemInfo>> unmutedGroups)Called when a set of build problems are unmuted.voidbuildPromotionTagsChanged(BuildPromotion buildPromotion, User user, Collection<TagData> oldTags, Collection<TagData> newTags)Called when build promotion tags have been set to specified values
Some parameters may be omitted when the tags were changed on another node (i.e.voidbuildQueueOrderChanged()Called when user reordered build queue order.voidbuildRemovedFromQueue(SQueuedBuild queuedBuild, User user, String comment)Called when a build is removed from the build queue (started, deleted, optimized, etc.) Some events may be missing when the current node is not responsible for managing build queue.voidbuildStarted(SRunningBuild build)Called when build is about to start.voidbuildTypeActiveStatusChanged(SBuildType buildType)Called when build configuration status changed from active to paused and vice versa.voidbuildTypeAddedToQueue(SQueuedBuild queuedBuild)Called when build configuration was added to build queue Some events may be missing when the current node is not responsible for managing build queue.voidbuildTypeDescriptionUpdated(SBuildType buildType, String oldDescription, String newDescription)Called when the build configuration description changed.voidbuildTypePersisted(SBuildType buildType)Called when build type has been persisted.voidbuildTypeRegistered(SBuildType buildType)Called when build configuration is created or build configuration is reloaded from the diskvoidbuildTypeRenamed(SBuildType buildType, String oldName, String newName)Called when the build configuration name changed.voidbuildTypeTemplatePersisted(BuildTypeTemplate template)Called when a build configuration template has been persisted.voidbuildTypeUnregistered(SBuildType buildType)Called when build configuration is deletedvoidchangeAdded(VcsModification modification, VcsRoot root, Collection<SBuildType> buildTypes)Called when a new modification (user commit) was detected.voidchangesLoaded(BuildPromotion build)This method is called if changes are loaded for a build promotion while it was in the queue or when it was starting.voidentriesDeleted(Collection<SFinishedBuild> removedEntries)Called after deletion of a set of build history entries Only one ofBuildServerListener.entryDeleted(SFinishedBuild)or this method should be overriden in a listener.intgetNumbedOfAgentEvents(TrackerEventType eventType, int agentId)Returns number of registered events related to an agent with specified idintgetNumberOfBuildTypeEvents(TrackerEventType eventType, String buildTypeId)Returns number of registered events related to a build configuration with specified id.intgetNumberOfEvents(TrackerEventType eventType)Returns total number of registered events.intgetNumberOfProjectEvents(TrackerEventType eventType, String projectId)Returns number of registered events related to a project with specified id.intgetNumberOfUserEvents(TrackerEventType eventType, long userId)Returns number of registered events related to a user with specified idvoidnotificationRulesChanged(Long userId, String notificatorType)Notification rules changed for the notification rules holder.voidprojectArchived(String projectId)Called when project has been archivedvoidprojectCreated(String projectId, SUser user)Generated when new project was createdvoidprojectDearchived(String projectId)Called when project has been dearchivedvoidprojectDescriptionUpdated(SProject project, String oldDescription, String newDescription)Called when the project description changed.voidprojectPersisted(String projectId)Generated when project configuration persisted on a diskvoidprojectRemoved(SProject project)Generated when project was removedvoidprojectRenamed(SProject project, String oldName, String newName)Called when the project name changed.voidprojectRestored(String projectId)Generated when project configuration reloaded from diskvoidresponsibleChanged(SBuildType bt, ResponsibilityEntry oldValue, ResponsibilityEntry newValue)Called when build configuration responsible has changed, or responsibility status has changed
Some events may be omitted when the responsibility was changed on another node, i.e.voidresponsibleChanged(SProject project, Collection<BuildProblemInfo> buildProblems, ResponsibilityEntry entry)Called when responsibility for several build problems at once is changed.voidresponsibleChanged(SProject project, Collection<TestName> testNames, ResponsibilityEntry entry, boolean isUserAction)Called when responsibility for several tests at once is changed.voidresponsibleRemoved(SProject project, TestNameResponsibilityEntry entry)Called when responsibility for several tests at once is changed.voidserverShutdown()Called when server shutdown has been started.voidsetChangeListener(EventTracker.CounterChangedListener listener)Allows to register handlers that are called when number of the specific event is changed.voidstatusUpdated(SProject project)Called when Versioned Settings status is updated.voidtestsMuted(MuteInfo muteInfo)Called when a set of tests are muted (with same mute properties).voidtestsUnmuted(SUser user, Map<MuteInfo,Collection<STest>> unmutedGroups)Called when several of tests have been unmuted.voiduserAccountChanged(User user)Called if user account settings changed.voiduserAccountCreated(User user)Called when a new user account is created.voiduserAccountRemoved(long userId)Called when user account is removedvoiduserAccountRemoved(User user)Called if user account removedvoiduserPermissionsMayHaveChanged(User user)The event may be triggered when permissions were not changed, but it must be triggered when they were changed.voiduserRolesChanged(User user)Called if user roles changed.-
Methods inherited from class jetbrains.buildServer.serverSide.BuildServerAdapter
agentRemoved, agentsDescriptionUpdated, agentUnregistered, beforeAgentUnregistered, beforeBuildFinish, beforeEntryDelete, beforeServerConfigurationLoaded, buildArtifactsChanged, buildCommented, buildDetachedFromAgent, buildPinned, buildTagsChanged, buildTagsChanged, buildTypeAddedToQueue, buildUnpinned, changesLoaded, cleanupFinished, cleanupStarted, entryCreated, entryDeleted, labelingFailed, labelingSucceed, messageReceived, pluginsLoaded, responsibleChanged, responsibleRemoved, serverConfigurationReloaded, serverShutdownComplete, serverStartup, sourcesVersionReleased, sourcesVersionReleased, sourcesVersionReleased, statisticValuePublished
-
Methods inherited from class jetbrains.buildServer.serverSide.ProjectsModelListenerAdapter
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeDeleted, buildTypeExternalIdChanged, buildTypeMoved, buildTypeTemplateDeleted, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplateRestored, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootRemoved, vcsRootsPersisted, vcsRootUpdated
-
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.ProjectsModelListener
beforeBuildTypeDeleted, beforeBuildTypesDeleted, buildTypeDeleted, buildTypeExternalIdChanged, buildTypeMoved, buildTypeTemplateDeleted, buildTypeTemplateDeleted, buildTypeTemplateExternalIdChanged, buildTypeTemplateMoved, buildTypeTemplateRestored, projectExternalIdChanged, projectFeatureAdded, projectFeatureChanged, projectFeatureRemoved, projectMoved, projectPluginDataFileRemoved, projectPluginDataFileSaved, projectRemoved, vcsRootExternalIdChanged, vcsRootMoved, vcsRootPersisted, vcsRootRemoved, vcsRootsPersisted, vcsRootUpdated
-
Methods inherited from interface jetbrains.buildServer.serverSide.UserModelListenerEx
userPropertyChanged
-
-
-
-
Constructor Detail
-
EventTrackerImpl
public EventTrackerImpl(@NotNull EventDispatcher<BuildServerListener> serverDispatcher, @NotNull EventDispatcher<BuildTypeBranchesListener> branchesDispatcher, @NotNull AgentPoolManager agentPoolManager, @NotNull ProjectManagerEx projectManager, @NotNull UserModelEx userModel, @NotNull NotificationRulesManager rulesManager, @NotNull SecurityContext securityContext, @NotNull BuildHistory buildHistory, @NotNull ExecutorServices executorServices, @NotNull EventDispatcher<VersionedSettingsStatusEventListener> versionedSettingsStatusDispatcher)
-
-
Method Detail
-
setChangeListener
public void setChangeListener(EventTracker.CounterChangedListener listener)
Description copied from interface:EventTrackerAllows to register handlers that are called when number of the specific event is changed.- Specified by:
setChangeListenerin interfaceEventTracker
-
getNumberOfEvents
public int getNumberOfEvents(TrackerEventType eventType)
Description copied from interface:EventTrackerReturns total number of registered events.- Specified by:
getNumberOfEventsin interfaceEventTracker- Parameters:
eventType- event type- Returns:
- total number of events
-
getNumberOfProjectEvents
public int getNumberOfProjectEvents(TrackerEventType eventType, String projectId)
Description copied from interface:EventTrackerReturns number of registered events related to a project with specified id.- Specified by:
getNumberOfProjectEventsin interfaceEventTracker- Parameters:
eventType- event typeprojectId- id of a project- Returns:
- number of registered events
-
getNumberOfBuildTypeEvents
public int getNumberOfBuildTypeEvents(TrackerEventType eventType, String buildTypeId)
Description copied from interface:EventTrackerReturns number of registered events related to a build configuration with specified id.- Specified by:
getNumberOfBuildTypeEventsin interfaceEventTracker- Parameters:
eventType- event typebuildTypeId- id of a build configuration- Returns:
- number of registered events
-
getNumberOfUserEvents
public int getNumberOfUserEvents(TrackerEventType eventType, long userId)
Description copied from interface:EventTrackerReturns number of registered events related to a user with specified id- Specified by:
getNumberOfUserEventsin interfaceEventTracker- Parameters:
eventType- type of eventuserId- id of the user- Returns:
- number of registered events
-
getNumbedOfAgentEvents
public int getNumbedOfAgentEvents(TrackerEventType eventType, int agentId)
Description copied from interface:EventTrackerReturns number of registered events related to an agent with specified id- Specified by:
getNumbedOfAgentEventsin interfaceEventTracker- Parameters:
eventType- type of eventagentId- id of the agent- Returns:
- number of registered events
-
agentRegistered
public void agentRegistered(@NotNull SBuildAgent agent, long currentlyRunningBuildId)Description copied from interface:BuildServerListenerCalled when build agent is registered (connected)
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
agentRegisteredin interfaceBuildServerListener- Overrides:
agentRegisteredin classBuildServerAdapter- Parameters:
agent- which was registeredcurrentlyRunningBuildId- id of the build which is running on this build agent, -1 if no build is running on agent
-
agentUnregistered
public void agentUnregistered(@NotNull SBuildAgent agent, @NotNull String reason)Description copied from interface:BuildServerListenerCalled after build agent unregistration
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
agentUnregisteredin interfaceBuildServerListener- Overrides:
agentUnregisteredin classBuildServerAdapter- Parameters:
agent- which was unregisteredreason- why the agent unregistered
-
agentDescriptionUpdated
public void agentDescriptionUpdated(@NotNull SBuildAgent agent)Description copied from interface:BuildServerListenerCalled when build agent description update is finished.
Some events may be skipped when an agent was registered on another node. For example on read-only node the event is not called for an agent which was registered on the main server for a short period of time (registered and then immediately unregistered).- Specified by:
agentDescriptionUpdatedin interfaceBuildServerListener- Overrides:
agentDescriptionUpdatedin classBuildServerAdapter- Parameters:
agent- agent with updated agent description
-
agentStatusChanged
public void agentStatusChanged(@NotNull SBuildAgent agent, boolean wasEnabled, boolean wasAuthorized)Description copied from interface:BuildServerListenerCalled when the status of an agent is changed by a user
Some events may be skipped when an agent is registered on another node. For example on read-only node the event is not called for an agent which status was changed twice (enabled and then immediately disabled) on the main server.- Specified by:
agentStatusChangedin interfaceBuildServerListener- Overrides:
agentStatusChangedin classBuildServerAdapter- Parameters:
agent- the agentwasEnabled- the previous statuswasAuthorized- previous authorized state
-
agentRemoved
public void agentRemoved(int agentId)
Description copied from interface:BuildServerListenerCalled when agent with specified id is removed. If server has agent instance then bothBuildServerListener.agentRemoved(SBuildAgent)and this method are called. If server does not have an agent, for example, if agent was removed by another node, then only this method is called.- Specified by:
agentRemovedin interfaceBuildServerListener- Overrides:
agentRemovedin classBuildServerAdapter- Parameters:
agentId- id of the removed agent
-
buildTypeAddedToQueue
public void buildTypeAddedToQueue(@NotNull SQueuedBuild queuedBuild)Description copied from interface:BuildServerListenerCalled when build configuration was added to build queue Some events may be missing when the current node is not responsible for managing build queue. For example, on read-only node the event may be skipped if a build was in the queue for a short period of time, i.e. removed shortly after being added.- Specified by:
buildTypeAddedToQueuein interfaceBuildServerListener- Overrides:
buildTypeAddedToQueuein classBuildServerAdapter- Parameters:
queuedBuild- queued build added to the queue
-
buildRemovedFromQueue
public void buildRemovedFromQueue(@NotNull SQueuedBuild queuedBuild, User user, String comment)Description copied from interface:BuildServerListenerCalled when a build is removed from the build queue (started, deleted, optimized, etc.) Some events may be missing when the current node is not responsible for managing build queue. For example, on read-only node the event may be skipped if a build was in the queue for a short period of time, i.e. removed shortly after being added.- Specified by:
buildRemovedFromQueuein interfaceBuildServerListener- Overrides:
buildRemovedFromQueuein classBuildServerAdapter- Parameters:
queuedBuild- queued build removed from the queueuser- if build was removed manually, contains the user who removed build configuration from queuecomment- provided by user when removing build from queue
-
buildQueueOrderChanged
public void buildQueueOrderChanged()
Description copied from interface:BuildServerListenerCalled when user reordered build queue order. Is not called when build is started. Some events may be missing when the current node is not responsible for managing build queue. For example, read-only node is not aware of all the queue changes which happened on the main server.- Specified by:
buildQueueOrderChangedin interfaceBuildServerListener- Overrides:
buildQueueOrderChangedin classBuildServerAdapter
-
buildTypeRegistered
public void buildTypeRegistered(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build configuration is created or build configuration is reloaded from the disk- Specified by:
buildTypeRegisteredin interfaceProjectsModelListener- Overrides:
buildTypeRegisteredin classProjectsModelListenerAdapter- Parameters:
buildType- registered build configuration
-
buildTypeRenamed
public void buildTypeRenamed(@NotNull SBuildType buildType, @NotNull String oldName, @NotNull String newName)Description copied from interface:ProjectsModelListenerCalled when the build configuration name changed.- Specified by:
buildTypeRenamedin interfaceProjectsModelListener- Overrides:
buildTypeRenamedin classProjectsModelListenerAdapter
-
buildTypeDescriptionUpdated
public void buildTypeDescriptionUpdated(@NotNull SBuildType buildType, @Nullable String oldDescription, @Nullable String newDescription)Description copied from interface:ProjectsModelListenerCalled when the build configuration description changed.- Specified by:
buildTypeDescriptionUpdatedin interfaceProjectsModelListener- Overrides:
buildTypeDescriptionUpdatedin classProjectsModelListenerAdapter
-
buildTypeUnregistered
public void buildTypeUnregistered(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build configuration is deleted- Specified by:
buildTypeUnregisteredin interfaceProjectsModelListener- Overrides:
buildTypeUnregisteredin classProjectsModelListenerAdapter- Parameters:
buildType- unregistered build configuration
-
buildTypeActiveStatusChanged
public void buildTypeActiveStatusChanged(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build configuration status changed from active to paused and vice versa.- Specified by:
buildTypeActiveStatusChangedin interfaceProjectsModelListener- Overrides:
buildTypeActiveStatusChangedin classProjectsModelListenerAdapter- Parameters:
buildType- build configuration whose status has changed
-
buildStarted
public void buildStarted(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled when build is about to start. Changes are not loaded yet, and build agent didn't start the build yet.- Specified by:
buildStartedin interfaceBuildServerListener- Overrides:
buildStartedin classBuildServerAdapter- Parameters:
build- build configuration whose status has changed
-
changesLoaded
public void changesLoaded(@NotNull BuildPromotion build)Description copied from interface:BuildServerListenerThis method is called if changes are loaded for a build promotion while it was in the queue or when it was starting. The method is called regardless of whether the checking for changes operation was successful or not. If operation failed, thenBuildPromotion.isFailedToCollectChanges()will return true. TeamCity collects changes either while the build sits in the queue or when the build just started (after the buildStarted event).- Specified by:
changesLoadedin interfaceBuildServerListener- Overrides:
changesLoadedin classBuildServerAdapter- Parameters:
build- a build promotion for which changes have been collected
-
buildChangedStatus
public void buildChangedStatus(@NotNull SRunningBuild build, Status oldStatus, Status newStatus)Description copied from interface:BuildServerListenerCalled when build status changes from successful to failed- Specified by:
buildChangedStatusin interfaceBuildServerListener- Overrides:
buildChangedStatusin classBuildServerAdapter- Parameters:
build- corresponding running buildoldStatus- previous statusnewStatus- new status
-
buildProblemsChanged
public void buildProblemsChanged(@NotNull SBuild build, @NotNull List<BuildProblemData> before, @NotNull List<BuildProblemData> after)Description copied from interface:BuildServerListenerCalled when list of build problems changes (problems added, removed)
beforeparameter may be empty or contain some outdated data when the problems are changed on another node:- current node is main server but the problem was added on messages processing node
- current node is read-only but the problem was added on the main server
- Specified by:
buildProblemsChangedin interfaceBuildServerListener- Overrides:
buildProblemsChangedin classBuildServerAdapter- Parameters:
build- corresponding buildbefore- list of build problems before changeafter- list of build problems after change
-
buildFinished
public void buildFinished(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled after build finishing, only if build was not interrupted- Specified by:
buildFinishedin interfaceBuildServerListener- Overrides:
buildFinishedin classBuildServerAdapter- Parameters:
build- running build // TODO: shall pass SFinishedBuild as parameter
-
buildInterrupted
public void buildInterrupted(@NotNull SRunningBuild build)Description copied from interface:BuildServerListenerCalled after build finishing, only if build was interrupted- Specified by:
buildInterruptedin interfaceBuildServerListener- Overrides:
buildInterruptedin classBuildServerAdapter- Parameters:
build- running build // TODO: shall pass SFinishedBuild as parameter
-
responsibleChanged
public void responsibleChanged(@NotNull SBuildType bt, @NotNull ResponsibilityEntry oldValue, @NotNull ResponsibilityEntry newValue)Description copied from interface:BuildServerListenerCalled when build configuration responsible has changed, or responsibility status has changed
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleChangedin interfaceBuildServerListener- Overrides:
responsibleChangedin classBuildServerAdapter- Parameters:
bt- build configurationoldValue- previous responsibility entrynewValue- new responsibility entry
-
responsibleChanged
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, boolean isUserAction)Description copied from interface:BuildServerListenerCalled when responsibility for several tests at once is changed.
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleChangedin interfaceBuildServerListener- Overrides:
responsibleChangedin classBuildServerAdapter- Parameters:
project- the projecttestNames- test namesentry- the new responsibility entry for each testisUserAction- true if responsibility status was changed manually via Web UI
-
responsibleRemoved
public void responsibleRemoved(@NotNull SProject project, @NotNull TestNameResponsibilityEntry entry)Description copied from interface:BuildServerListenerCalled when responsibility for several tests at once is changed.
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleRemovedin interfaceBuildServerListener- Overrides:
responsibleRemovedin classBuildServerAdapter- Parameters:
project- the projectentry- the new responsibility entry for each test
-
responsibleChanged
public void responsibleChanged(@NotNull SProject project, @NotNull Collection<BuildProblemInfo> buildProblems, @Nullable ResponsibilityEntry entry)Description copied from interface:BuildServerListenerCalled when responsibility for several build problems at once is changed.
Some events may be omitted when the responsibility was changed on another node, i.e. it's not called on read-only node when the responsibility was assigned and immediately removed on the main server.- Specified by:
responsibleChangedin interfaceBuildServerListener- Overrides:
responsibleChangedin classBuildServerAdapter- Parameters:
project- the projectbuildProblems- build problemsentry- the new responsibility entry or null if responsibility is removed (better useBuildServerListener.responsibleRemoved(SProject, Collection, ResponsibilityEntry)method to subscribe to the 'removed' events)
-
entriesDeleted
public void entriesDeleted(@NotNull Collection<SFinishedBuild> removedEntries)Description copied from interface:BuildServerListenerCalled after deletion of a set of build history entries Only one ofBuildServerListener.entryDeleted(SFinishedBuild)or this method should be overriden in a listener.- Specified by:
entriesDeletedin interfaceBuildServerListener- Overrides:
entriesDeletedin classBuildServerAdapter- Parameters:
removedEntries- deleted builds
-
projectCreated
public void projectCreated(@NotNull String projectId, SUser user)Description copied from interface:ProjectsModelListenerGenerated when new project was created- Specified by:
projectCreatedin interfaceProjectsModelListener- Overrides:
projectCreatedin classProjectsModelListenerAdapter- Parameters:
projectId- internal id of the created projectuser- the user creating the project (or null if it can't be determined, e.g. after manual project config change)
-
projectRemoved
public void projectRemoved(@NotNull SProject project)Description copied from interface:ProjectsModelListenerGenerated when project was removed- Specified by:
projectRemovedin interfaceProjectsModelListener- Overrides:
projectRemovedin classProjectsModelListenerAdapter- Parameters:
project- deleted project
-
projectPersisted
public void projectPersisted(@NotNull String projectId)Description copied from interface:ProjectsModelListenerGenerated when project configuration persisted on a disk- Specified by:
projectPersistedin interfaceProjectsModelListener- Overrides:
projectPersistedin classProjectsModelListenerAdapter- Parameters:
projectId- internal id of the saved project
-
projectRestored
public void projectRestored(@NotNull String projectId)Description copied from interface:ProjectsModelListenerGenerated when project configuration reloaded from disk- Specified by:
projectRestoredin interfaceProjectsModelListener- Overrides:
projectRestoredin classProjectsModelListenerAdapter- Parameters:
projectId- internal id of the reloaded project
-
projectRenamed
public void projectRenamed(@NotNull SProject project, @NotNull String oldName, @NotNull String newName)Description copied from interface:ProjectsModelListenerCalled when the project name changed.- Specified by:
projectRenamedin interfaceProjectsModelListener- Overrides:
projectRenamedin classProjectsModelListenerAdapter
-
projectDescriptionUpdated
public void projectDescriptionUpdated(@NotNull SProject project, @Nullable String oldDescription, @Nullable String newDescription)Description copied from interface:ProjectsModelListenerCalled when the project description changed.- Specified by:
projectDescriptionUpdatedin interfaceProjectsModelListener- Overrides:
projectDescriptionUpdatedin classProjectsModelListenerAdapter
-
projectArchived
public void projectArchived(@NotNull String projectId)Description copied from interface:ProjectsModelListenerCalled when project has been archived- Specified by:
projectArchivedin interfaceProjectsModelListener- Overrides:
projectArchivedin classProjectsModelListenerAdapter- Parameters:
projectId- internal id of archived project
-
projectDearchived
public void projectDearchived(@NotNull String projectId)Description copied from interface:ProjectsModelListenerCalled when project has been dearchived- Specified by:
projectDearchivedin interfaceProjectsModelListener- Overrides:
projectDearchivedin classProjectsModelListenerAdapter- Parameters:
projectId- internal id of dearchived project
-
buildTypeTemplatePersisted
public void buildTypeTemplatePersisted(@NotNull BuildTypeTemplate template)Description copied from interface:ProjectsModelListenerCalled when a build configuration template has been persisted.- Specified by:
buildTypeTemplatePersistedin interfaceProjectsModelListener- Overrides:
buildTypeTemplatePersistedin classProjectsModelListenerAdapter- Parameters:
template- the just persisted template.
-
buildTypePersisted
public void buildTypePersisted(@NotNull SBuildType buildType)Description copied from interface:ProjectsModelListenerCalled when build type has been persisted.- Specified by:
buildTypePersistedin interfaceProjectsModelListener- Overrides:
buildTypePersistedin classProjectsModelListenerAdapter- Parameters:
buildType- the just persisted build type.
-
serverShutdown
public void serverShutdown()
Description copied from interface:ServerListenerCalled when server shutdown has been started. In addition, this method is called for a plugin before it is unloaded, may be used for releasing resources and cleanup.- Specified by:
serverShutdownin interfaceServerListener- Overrides:
serverShutdownin classBuildServerAdapter
-
changeAdded
public void changeAdded(@NotNull VcsModification modification, @NotNull VcsRoot root, @Nullable Collection<SBuildType> buildTypes)Description copied from interface:BuildServerListenerCalled when a new modification (user commit) was detected. Vcs modification can be detected during periodical process of changes collecting (in this case buildTypes parameter is null) or during build(s) startup phase. In the latter case buildTypes parameter will contain collection of build configurations for which changes collection was performed.- Specified by:
changeAddedin interfaceBuildServerListener- Overrides:
changeAddedin classBuildServerAdapter- Parameters:
modification- detected VCS modificationroot- VCS root where modification was detectedbuildTypes- if changes were detected when a build starts collection of buildTypes where changes collection was performed
-
buildPromotionTagsChanged
public void buildPromotionTagsChanged(@NotNull BuildPromotion buildPromotion, @Nullable User user, @NotNull Collection<TagData> oldTags, @NotNull Collection<TagData> newTags)Description copied from interface:BuildServerListenerCalled when build promotion tags have been set to specified values
Some parameters may be omitted when the tags were changed on another node (i.e. when the event is called on read-only node):useris null,oldTagsare empty.- Specified by:
buildPromotionTagsChangedin interfaceBuildServerListener- Overrides:
buildPromotionTagsChangedin classBuildServerAdapter- Parameters:
buildPromotion- corresponding build promotion, which tags have been setuser- user who set new tagsoldTags- previous tags on the build promotion (public and private)newTags- new tags on the build promotion (public and private)
-
notificationRulesChanged
public void notificationRulesChanged(@NotNull Long userId, String notificatorType)Description copied from interface:NotificationRulesListenerNotification rules changed for the notification rules holder.- Specified by:
notificationRulesChangedin interfaceNotificationRulesListener<Long>- Parameters:
userId- given holder id.notificatorType- notificator type for which rules changed.
-
userAccountCreated
public void userAccountCreated(@NotNull User user)Description copied from interface:UserModelListenerCalled when a new user account is created. The event may not be called if the user was created and immediately removed on another node.- Specified by:
userAccountCreatedin interfaceUserModelListener- Parameters:
user- created user
-
userAccountChanged
public void userAccountChanged(@NotNull User user)Description copied from interface:UserModelListenerCalled if user account settings changed. The event may not be called if the user was removed immediately after being changed on another node.- Specified by:
userAccountChangedin interfaceUserModelListener- Parameters:
user- updated user
-
userAccountRemoved
public void userAccountRemoved(@NotNull User user)Description copied from interface:UserModelListenerCalled if user account removed- Specified by:
userAccountRemovedin interfaceUserModelListener- Parameters:
user- removed user
-
userAccountRemoved
public void userAccountRemoved(long userId)
Description copied from interface:UserModelListenerCalled when user account is removed- Specified by:
userAccountRemovedin interfaceUserModelListener- Parameters:
userId- id of the removed user
-
userRolesChanged
public void userRolesChanged(@NotNull User user)Description copied from interface:UserModelListenerCalled if user roles changed. The event may not be called if the user was removed immediately after being changed on another node.- Specified by:
userRolesChangedin interfaceUserModelListener- Parameters:
user- updated user
-
userPermissionsMayHaveChanged
public void userPermissionsMayHaveChanged(@NotNull User user)Description copied from interface:UserModelListenerExThe event may be triggered when permissions were not changed, but it must be triggered when they were changed.- Specified by:
userPermissionsMayHaveChangedin interfaceUserModelListenerEx
-
testsMuted
public void testsMuted(@NotNull MuteInfo muteInfo)Description copied from interface:BuildServerListenerCalled when a set of tests are muted (with same mute properties). All tests are in the same project.
The method in not called when the test was muted on another node (i.e. when the current node is a read-only node)- Specified by:
testsMutedin interfaceBuildServerListener- Overrides:
testsMutedin classBuildServerAdapter- Parameters:
muteInfo- mute info
-
testsUnmuted
public void testsUnmuted(@Nullable SUser user, @NotNull Map<MuteInfo,Collection<STest>> unmutedGroups)Description copied from interface:BuildServerListenerCalled when several of tests have been unmuted. Tests can be belong to several projects.
The method in not called when the test was unmuted on another node (i.e. when the current node is a read-only node)- Specified by:
testsUnmutedin interfaceBuildServerListener- Overrides:
testsUnmutedin classBuildServerAdapter- Parameters:
user- user that unmuted tests, or null if they were unmuted automatically.unmutedGroups- groups of tests that were unmuted.
-
buildProblemsMuted
public void buildProblemsMuted(@NotNull MuteInfo muteInfo)Description copied from interface:BuildServerListenerCalled when a set of build problems are muted (with same mute properties). All problems belong the same project.
The method in not called when the problem was muted on another node (i.e. when the current node is a read-only node)- Specified by:
buildProblemsMutedin interfaceBuildServerListener- Overrides:
buildProblemsMutedin classBuildServerAdapter- Parameters:
muteInfo- mute info
-
buildProblemsUnmuted
public void buildProblemsUnmuted(@Nullable SUser user, @NotNull Map<MuteInfo,Collection<BuildProblemInfo>> unmutedGroups)Description copied from interface:BuildServerListenerCalled when a set of build problems are unmuted. Problems can be belong to several projects.
The method in not called when the problem was unmuted on another node (i.e. when the current node is a read-only node)- Specified by:
buildProblemsUnmutedin interfaceBuildServerListener- Overrides:
buildProblemsUnmutedin classBuildServerAdapter- Parameters:
user- user that unmuted problems, or null if they were unmuted automatically.unmutedGroups- groups of build problems that were unmuted.
-
branchesMayHaveChanged
public void branchesMayHaveChanged(@NotNull SBuildType buildType)Description copied from interface:BuildTypeBranchesListenerThe event may be triggered when branches were not changed, but it must be triggered when branches were changed.- Specified by:
branchesMayHaveChangedin interfaceBuildTypeBranchesListener
-
agentPoolCreated
public void agentPoolCreated(int agentPoolId)
Description copied from interface:AgentPoolListenerCalled when agent pool is created- Specified by:
agentPoolCreatedin interfaceAgentPoolListener
-
agentPoolUpdated
public void agentPoolUpdated(int agentPoolId)
Description copied from interface:AgentPoolListenerCalled when agent pool is updated- Specified by:
agentPoolUpdatedin interfaceAgentPoolListener
-
agentPoolDeleted
public void agentPoolDeleted(int agentPoolId)
Description copied from interface:AgentPoolListenerCalled when agent pool is deleted- Specified by:
agentPoolDeletedin interfaceAgentPoolListener
-
agentTypeMoved
public void agentTypeMoved(AgentType agentType, AgentPool oldPool, AgentPool newPool)
Description copied from interface:AgentPoolListenerCalled when agent type is moved to another pool- Specified by:
agentTypeMovedin interfaceAgentPoolListener- Parameters:
agentType- agent type that was movedoldPool- old poolnewPool- new pool
-
statusUpdated
public void statusUpdated(@NotNull SProject project)Description copied from interface:VersionedSettingsStatusEventListenerCalled when Versioned Settings status is updated.- Specified by:
statusUpdatedin interfaceVersionedSettingsStatusEventListener- Parameters:
project- the project where Versioned Settings status is updated.
-
-