com.atlassian.bamboo.v2.build.agent.capability
Class AgentContextImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.AgentContextImpl
All Implemented Interfaces:
AgentContext

public class AgentContextImpl
extends java.lang.Object
implements AgentContext


Constructor Summary
AgentContextImpl()
           
 
Method Summary
 void clearBuildAgent()
          Removes whatever is currently stored in thread local
 ExecutableBuildAgent getBuildAgent()
          Current build agent.
 void setBuildAgent(ExecutableBuildAgent buildAgent)
          Stores a agent set within the ThreadLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentContextImpl

public AgentContextImpl()
Method Detail

getBuildAgent

@Nullable
public ExecutableBuildAgent getBuildAgent()
Description copied from interface: AgentContext
Current build agent. Null if no agent is running this, it will return null

Specified by:
getBuildAgent in interface AgentContext
Returns:

setBuildAgent

public void setBuildAgent(@Nullable
                          ExecutableBuildAgent buildAgent)
Description copied from interface: AgentContext
Stores a agent set within the ThreadLocal

Specified by:
setBuildAgent in interface AgentContext

clearBuildAgent

public void clearBuildAgent()
Description copied from interface: AgentContext
Removes whatever is currently stored in thread local

Specified by:
clearBuildAgent in interface AgentContext


Copyright © 2011 Atlassian. All Rights Reserved.