public class RemoteBuildAgent extends DefaultBuildAgent
onMainThreadEnd()
methods to make sure that the agent
process terminates when the main thread is finished.Constructor and Description |
---|
RemoteBuildAgent(AgentConfiguration agentConfiguration,
RemoteAgentPluginEventHandlerImpl deferredEventsHandler,
int heartbeatIntervalSeconds) |
Modifier and Type | Method and Description |
---|---|
protected void |
onAgentReadyToBuild() |
protected void |
onBetweenBuilds() |
void |
onContextReceived(CommonContext commonContext)
This method is called when the agent has just retrieved a context from queue
|
protected void |
onMainThreadEnd() |
protected void |
shutdown() |
void |
start()
Starts the build agent
|
build, cancelBuild, compareTo, disable, enable, equals, executeWithCurrentContext, getAgentStatus, getBuilding, getDescription, getId, getName, hashCode, incrementError, isActive, isCancelling, isEnabled, isStopping, onBuildProcessingFinished, resetErrors, setContextToBuild, stop, stopNicely, waitForStop
public RemoteBuildAgent(AgentConfiguration agentConfiguration, RemoteAgentPluginEventHandlerImpl deferredEventsHandler, int heartbeatIntervalSeconds)
public void start()
ExecutableBuildAgent
start
in interface ExecutableBuildAgent
start
in class DefaultBuildAgent
protected void shutdown()
shutdown
in class DefaultBuildAgent
protected void onMainThreadEnd()
onMainThreadEnd
in class DefaultBuildAgent
public void onContextReceived(@NotNull CommonContext commonContext)
ExecutableBuildAgent
onContextReceived
in interface ExecutableBuildAgent
onContextReceived
in class DefaultBuildAgent
protected void onAgentReadyToBuild()
onAgentReadyToBuild
in class DefaultBuildAgent
protected void onBetweenBuilds()
onBetweenBuilds
in class DefaultBuildAgent
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.