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 void
interrupt()
enforce build to stop.boolean
isFinished()
boolean
isInterrupted()
true iff build is finished and build was interruptedvoid
onDebugSessionFinishRequested()
void
onDebugSessionRepeatRequested()
void
onDebugSessionRepeatWithNewChangesRequested(String personalPatchId)
void
start()
This method is called to start runner.BuildFinishedStatus
waitFor()
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 RunBuildException
Description copied from interface:BuildProcess
This 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:
start
in interfaceBuildProcess
- Throws:
RunBuildException
- to stop the build with error
-
isInterrupted
public boolean isInterrupted()
Description copied from interface:BuildProcess
true iff build is finished and build was interrupted- Specified by:
isInterrupted
in interfaceBuildProcess
- Returns:
- true iff build is finished and build was interrupted
-
isFinished
public boolean isFinished()
- Specified by:
isFinished
in interfaceBuildProcess
- Returns:
- true iff build was finished
-
interrupt
public void interrupt()
Description copied from interface:BuildProcess
enforce build to stop. This operation is non-blocking.- Specified by:
interrupt
in interfaceBuildProcess
-
waitFor
@NotNull public BuildFinishedStatus waitFor() throws RunBuildException
Description copied from interface:BuildProcess
Wait for Runner to finish or to interrupt- Specified by:
waitFor
in interfaceBuildProcess
- Returns:
- build status
- Throws:
RunBuildException
- to indicate run build runner failure
-
onDebugSessionRepeatRequested
public void onDebugSessionRepeatRequested()
- Specified by:
onDebugSessionRepeatRequested
in interfaceRemoteDebugSessionListener
-
onDebugSessionRepeatWithNewChangesRequested
public void onDebugSessionRepeatWithNewChangesRequested(@NotNull String personalPatchId)
- Specified by:
onDebugSessionRepeatWithNewChangesRequested
in interfaceRemoteDebugSessionListener
-
onDebugSessionFinishRequested
public void onDebugSessionFinishRequested()
- Specified by:
onDebugSessionFinishRequested
in interfaceRemoteDebugSessionListener
-
-