Agent side events
There is jetbrains.buildServer.agent.AgentLifeCycleListener interface and corresponding adapter class jetbrains.buildServer.agent.AgentLifeCycleAdapter which can be used to receive notifications about agent side events, like starting of the build, build finishing and so on. Your listener must be registered in the jetbrains.buildServer.util.EventDispatcher. This service is also defined in the Spring context.
This is from the teamcity plugin development documentation. I don't know what is meant by the part in red above. Also the link that is in that red part is broken so it makes it even harder to learn what is meant by this sentence. Ultimately I am just trying to extend AgentLifeCycleAdapter to get access to information about the agent side events. If someone could help me understand what is meant by the above I would really appreciate it. Thanks.