Class AgentContextImpl
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.capability.AgentContextImpl
-
- All Implemented Interfaces:
AgentContext
public class AgentContextImpl extends Object implements AgentContext
-
-
Constructor Summary
Constructors Constructor Description AgentContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearBuildAgent()
Removes whatever is currently stored in thread local@Nullable ExecutableBuildAgent
getBuildAgent()
Current build agent.void
setBuildAgent(@Nullable ExecutableBuildAgent buildAgent)
Stores a agent set within the ThreadLocal
-
-
-
Method Detail
-
getBuildAgent
@Nullable public @Nullable 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 interfaceAgentContext
- Returns:
-
setBuildAgent
public void setBuildAgent(@Nullable @Nullable ExecutableBuildAgent buildAgent)
Description copied from interface:AgentContext
Stores a agent set within the ThreadLocal- Specified by:
setBuildAgent
in interfaceAgentContext
-
clearBuildAgent
public void clearBuildAgent()
Description copied from interface:AgentContext
Removes whatever is currently stored in thread local- Specified by:
clearBuildAgent
in interfaceAgentContext
-
-