Class AgentContextImpl
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.AgentContextImpl
- All Implemented Interfaces:
AgentContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves whatever is currently stored in thread local@Nullable ExecutableBuildAgentCurrent build agent.voidsetBuildAgent(@Nullable ExecutableBuildAgent buildAgent) Stores a agent set within the ThreadLocal
-
Constructor Details
-
AgentContextImpl
public AgentContextImpl()
-
-
Method Details
-
getBuildAgent
Description copied from interface:AgentContextCurrent build agent. Null if no agent is running this, it will return null- Specified by:
getBuildAgentin interfaceAgentContext- Returns:
-
setBuildAgent
Description copied from interface:AgentContextStores a agent set within the ThreadLocal- Specified by:
setBuildAgentin interfaceAgentContext
-
clearBuildAgent
public void clearBuildAgent()Description copied from interface:AgentContextRemoves whatever is currently stored in thread local- Specified by:
clearBuildAgentin interfaceAgentContext
-