Interface RemoteAgentManager
- All Superinterfaces:
RemotedRemoteAgentManager
- All Known Implementing Classes:
RemoteAgentManagerImpl
Manages the interactions with remote agents
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRemoteAgentLogEntry(String logEntry) voidbootstrapping(String agentHostName) Notifies theRemoteAgentManagerthat a remote agent has commenced bootstrapping.voidbootstrappingElastic(String agentHostName, @Nullable String instanceId) Notifies theRemoteAgentManagerthat an elastic agent has commenced bootstrapping.voidbootstrappingEphemeral(String agentHostName) Notifies theRemoteAgentManagerthat an ephemeral agent has commenced bootstrapping.voidRuns a check for offline remote agents.booleanChecks whether the remote agent functionality is currently enabled.@NotNull PipelineDefinitionregisterAgent(@NotNull PipelineDefinition remoteAgentDefinition) Initial setup / verification of the agent.voidsetRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled) Controls whether the remote agent functionality of Bamboo is enabled.voidstart()voidvoidstopRemoteAgent(@NotNull BuildAgent agent) updateRemoteAgentStatus(@NotNull Long agentId, @Nullable UUID uuid, @NotNull AgentStatus status, @NotNull SystemInfo systemInfo) Updates theBuildAgent's status representing a remote agent on the local server.Methods inherited from interface com.atlassian.bamboo.buildqueue.manager.RemotedRemoteAgentManager
registerAgent
-
Method Details
-
registerAgent
@NotNull @NotNull PipelineDefinition registerAgent(@NotNull @NotNull PipelineDefinition remoteAgentDefinition) throws BambooLicenseException Initial setup / verification of the agent. This method may perform checking of whether the remote agent matches the current version on the server / updates etc- Parameters:
remoteAgentDefinition- - id may be -1 if the build is new- Returns:
- RemoteAgentDefinition with the id filled
- Throws:
BambooLicenseException
-
updateRemoteAgentStatus
AgentHeartBeatInfo updateRemoteAgentStatus(@NotNull @NotNull Long agentId, @Nullable @Nullable UUID uuid, @NotNull @NotNull AgentStatus status, @NotNull @NotNull SystemInfo systemInfo) Updates theBuildAgent's status representing a remote agent on the local server.- Parameters:
agentId- ID of the agentuuid- UUID of the agentstatus- agent statussystemInfo- agent system info- Returns:
- current heart beat info
-
checkOfflineAgents
void checkOfflineAgents()Runs a check for offline remote agents. -
bootstrapping
Notifies the
RemoteAgentManagerthat a remote agent has commenced bootstrapping.- Parameters:
agentHostName- The host name or IP address of the host on which the remote agent is running.nullif unknown.
-
bootstrappingEphemeral
Notifies the
RemoteAgentManagerthat an ephemeral agent has commenced bootstrapping.- Parameters:
agentHostName- The host name or IP address of the host on which the remote agent is running.nullif unknown.- Since:
- 9.3
-
bootstrappingElastic
Notifies the
RemoteAgentManagerthat an elastic agent has commenced bootstrapping.- Parameters:
agentHostName- The host name or IP address of the host on which the remote agent is running.nullif unknown.instanceId- the instance the elastic agent is loading on
-
getRemoteAgentLog
-
setRemoteAgentFunctionEnabled
Controls whether the remote agent functionality of Bamboo is enabled.
- Parameters:
remoteAgentFunctionEnabled-trueif remote agent functionality should be enabled;falseotherwise.- Throws:
Exception- on any error
-
isRemoteAgentFunctionEnabled
boolean isRemoteAgentFunctionEnabled()Checks whether the remote agent functionality is currently enabled.- Returns:
true, if remote agent functionality is enabled,falseotherwise
-
stopRemoteAgent
-
addRemoteAgentLogEntry
-
start
- Throws:
Exception
-
stopConnectors
- Throws:
Exception
-