Class RemoteDebugSession
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.remoteDebug.RemoteDebugSession
-
- All Implemented Interfaces:
EventListener,BuildProcess,RemoteDebugSessionListener
public class RemoteDebugSession extends Object implements BuildProcess, RemoteDebugSessionListener
- Author:
- Maxim.Manuylov Date: 26.09.12
-
-
Constructor Summary
Constructors Constructor Description RemoteDebugSession(AgentRunningBuild build, BuildRunnerContextEx runnerContext, BuildRunnerContextIncrementalizer runnerContextIncrementalizer, AgentBuildRunner runner, RemoteDebugEventDispatcher dispatcher, RemoteDebugPersonalChangesHandler personalChangesHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterrupt()enforce build to stop.booleanisFinished()booleanisInterrupted()true iff build is finished and build was interruptedvoidonDebugSessionFinishRequested()voidonDebugSessionRepeatRequested()voidonDebugSessionRepeatWithNewChangesRequested(String personalPatchId)voidstart()This method is called to start runner.BuildFinishedStatuswaitFor()Wait for Runner to finish or to interrupt
-
-
-
Constructor Detail
-
RemoteDebugSession
public RemoteDebugSession(@NotNull AgentRunningBuild build, @NotNull BuildRunnerContextEx runnerContext, @NotNull BuildRunnerContextIncrementalizer runnerContextIncrementalizer, @NotNull AgentBuildRunner runner, @NotNull RemoteDebugEventDispatcher dispatcher, @NotNull RemoteDebugPersonalChangesHandler personalChangesHandler)
-
-
Method Detail
-
start
public void start() throws RunBuildExceptionDescription copied from interface:BuildProcessThis method is called to start runner. Method could start either synchronously or asynchronously It is guaranteed that this method will be called prior to {@link @waitFor } method.- Specified by:
startin interfaceBuildProcess- Throws:
RunBuildException- to stop the build with error
-
isInterrupted
public boolean isInterrupted()
Description copied from interface:BuildProcesstrue iff build is finished and build was interrupted- Specified by:
isInterruptedin interfaceBuildProcess- Returns:
- true iff build is finished and build was interrupted
-
isFinished
public boolean isFinished()
- Specified by:
isFinishedin interfaceBuildProcess- Returns:
- true iff build was finished
-
interrupt
public void interrupt()
Description copied from interface:BuildProcessenforce build to stop. This operation is non-blocking.- Specified by:
interruptin interfaceBuildProcess
-
waitFor
@NotNull public BuildFinishedStatus waitFor() throws RunBuildException
Description copied from interface:BuildProcessWait for Runner to finish or to interrupt- Specified by:
waitForin interfaceBuildProcess- Returns:
- build status
- Throws:
RunBuildException- to indicate run build runner failure
-
onDebugSessionRepeatRequested
public void onDebugSessionRepeatRequested()
- Specified by:
onDebugSessionRepeatRequestedin interfaceRemoteDebugSessionListener
-
onDebugSessionRepeatWithNewChangesRequested
public void onDebugSessionRepeatWithNewChangesRequested(@NotNull String personalPatchId)- Specified by:
onDebugSessionRepeatWithNewChangesRequestedin interfaceRemoteDebugSessionListener
-
onDebugSessionFinishRequested
public void onDebugSessionFinishRequested()
- Specified by:
onDebugSessionFinishRequestedin interfaceRemoteDebugSessionListener
-
-