com.atlassian.bamboo.v2.build.agent.capability
Interface AgentContext

All Known Implementing Classes:
AgentContextImpl

public interface AgentContext

Allows you to retrieve a reference to the agent for the current thread


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
 

Method Detail

getBuildAgent

@Nullable
ExecutableBuildAgent getBuildAgent()
Current build agent. Null if no agent is running this, it will return null

Returns:

setBuildAgent

void setBuildAgent(@Nullable
                   ExecutableBuildAgent buildAgent)
Stores a agent set within the ThreadLocal

Parameters:
buildAgent -

clearBuildAgent

void clearBuildAgent()
Removes whatever is currently stored in thread local



Copyright © 2010 Atlassian. All Rights Reserved.