com.atlassian.bamboo.v2.build.agent.remote
Class RemoteBuildAgent
java.lang.Object
com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent
com.atlassian.bamboo.v2.build.agent.remote.RemoteBuildAgent
- All Implemented Interfaces:
- ExecutableBuildAgent, org.springframework.context.ApplicationContextAware
public class RemoteBuildAgent
- extends DefaultBuildAgent
- implements org.springframework.context.ApplicationContextAware
This class overrides DefaultBuildAgent's shutdown() and onMainThreadFinished() methods to make sure that the agent
process terminates when the main thread is finished.
Methods inherited from class com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent |
build, cancelBuild, compareTo, disable, enable, equals, getAgentStatus, getBuilding, getId, getName, hashCode, incrementError, isActive, isCancelling, isEnabled, isStopping, onBuildProcessingFinished, resetErrors, start, stop, stopNicely, waitForStop |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
RemoteBuildAgent
public RemoteBuildAgent(BuildAgentController buildAgentController,
BuildLoggerManager buildLoggerManager,
long agentId,
java.lang.String agentName,
int heartbeatIntervalSeconds)
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
shutdown
protected void shutdown()
- Overrides:
shutdown
in class DefaultBuildAgent
onMainThreadFinished
protected void onMainThreadFinished()
- Overrides:
onMainThreadFinished
in class DefaultBuildAgent
Copyright © 2012 Atlassian. All Rights Reserved.