public class RemoteAgentManagerImpl extends Object implements RemoteAgentManager
| Constructor and Description |
|---|
RemoteAgentManagerImpl(int heartbeatTimeoutSeconds,
StartupStatisticsBean startupStatisticsBean,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteAgentLogEntry(String logEntry) |
void |
bootstrapping(String agentHostName)
Notifies the
RemoteAgentManager that a remote agent has commenced bootstrapping. |
void |
bootstrappingElastic(String agentHostName,
@Nullable String instanceId)
Notifies the
RemoteAgentManager that an elastic agent has commenced bootstrapping. |
void |
checkOfflineAgents()
Runs a check for offline remote agents.
|
List<String> |
getRemoteAgentLog() |
boolean |
isRemoteAgentFunctionEnabled()
Checks whether the remote agent functionality is currently enabled.
|
@NotNull PipelineDefinition |
registerAgent(@NotNull PipelineDefinition remoteAgentDefinition)
Initial setup / verification of the agent.
|
@NotNull RemotableRemoteAgentDefinition |
registerAgent(@NotNull RemotableRemoteAgentDefinition remotableRemoteAgentDefinition)
Initial setup / verification of the agent.
|
void |
setHeartbeatCheckInterval(int heartbeatCheckInterval) |
void |
setRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled)
Controls whether the remote agent functionality of Bamboo is enabled.
|
void |
setUri(String uri) |
void |
start() |
void |
stopConnectors() |
void |
stopRemoteAgent(@NotNull BuildAgent agent) |
AgentHeartBeatInfo |
updateRemoteAgentStatus(@NotNull Long agentId,
@Nullable UUID uuid,
@NotNull AgentStatus newStatus,
@NotNull SystemInfo systemInfo)
Updates the
BuildAgent's status representing a remote agent on the local server. |
public RemoteAgentManagerImpl(int heartbeatTimeoutSeconds,
StartupStatisticsBean startupStatisticsBean,
com.atlassian.event.api.EventPublisher eventPublisher)
@NotNull public @NotNull RemotableRemoteAgentDefinition registerAgent(@NotNull @NotNull RemotableRemoteAgentDefinition remotableRemoteAgentDefinition)
RemotedRemoteAgentManagerregisterAgent in interface RemotedRemoteAgentManagerremotableRemoteAgentDefinition - - id may be -1 if the build is new@NotNull public @NotNull PipelineDefinition registerAgent(@NotNull @NotNull PipelineDefinition remoteAgentDefinition) throws BambooLicenseException
RemoteAgentManagerregisterAgent in interface RemoteAgentManagerremoteAgentDefinition - - id may be -1 if the build is newBambooLicenseExceptionpublic AgentHeartBeatInfo updateRemoteAgentStatus(@NotNull @NotNull Long agentId, @Nullable @Nullable UUID uuid, @NotNull @NotNull AgentStatus newStatus, @NotNull @NotNull SystemInfo systemInfo)
RemoteAgentManagerBuildAgent's status representing a remote agent on the local server.updateRemoteAgentStatus in interface RemoteAgentManageragentId - ID of the agentuuid - UUID of the agentnewStatus - agent statussystemInfo - agent system infopublic void checkOfflineAgents()
RemoteAgentManagercheckOfflineAgents in interface RemoteAgentManagerpublic void setRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled)
throws Exception
RemoteAgentManagerControls whether the remote agent functionality of Bamboo is enabled.
setRemoteAgentFunctionEnabled in interface RemoteAgentManagerremoteAgentFunctionEnabled - true if remote agent functionality should be enabled; false otherwise.Exception - on any errorpublic boolean isRemoteAgentFunctionEnabled()
RemoteAgentManagerisRemoteAgentFunctionEnabled in interface RemoteAgentManagertrue, if remote agent functionality is enabled, false otherwisepublic void stopRemoteAgent(@NotNull
@NotNull BuildAgent agent)
stopRemoteAgent in interface RemoteAgentManagerpublic void bootstrapping(String agentHostName)
RemoteAgentManagerNotifies the RemoteAgentManager that a remote agent has commenced bootstrapping.
bootstrapping in interface RemoteAgentManageragentHostName - The host name or IP address of the host on which the remote agent is running. null if unknown.public void bootstrappingElastic(String agentHostName, @Nullable @Nullable String instanceId)
RemoteAgentManagerNotifies the RemoteAgentManager that an elastic agent has commenced bootstrapping.
bootstrappingElastic in interface RemoteAgentManageragentHostName - The host name or IP address of the host on which the remote agent is running.
null if unknown.instanceId - the instance the elastic agent is loading onpublic void addRemoteAgentLogEntry(String logEntry)
addRemoteAgentLogEntry in interface RemoteAgentManagerpublic void stopConnectors()
throws Exception
stopConnectors in interface RemoteAgentManagerExceptionpublic void start()
throws Exception
start in interface RemoteAgentManagerExceptionpublic List<String> getRemoteAgentLog()
getRemoteAgentLog in interface RemoteAgentManagerpublic void setHeartbeatCheckInterval(int heartbeatCheckInterval)
public void setUri(String uri)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.