Class AgentContextImpl
java.lang.Object
com.atlassian.bamboo.v2.build.agent.capability.AgentContextImpl
- All Implemented Interfaces:
AgentContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes whatever is currently stored in thread local@Nullable ExecutableBuildAgent
Current build agent.void
setBuildAgent
(@Nullable ExecutableBuildAgent buildAgent) Stores a agent set within the ThreadLocal
-
Constructor Details
-
AgentContextImpl
public AgentContextImpl()
-
-
Method Details
-
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
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
-