public interface RemoteAgentManager extends RemotedRemoteAgentManager
| 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,
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.
|
PipelineDefinition |
registerAgent(PipelineDefinition remoteAgentDefinition)
Initial setup / verification of the agent.
|
void |
setRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled)
Controls whether the remote agent functionality of Bamboo is enabled.
|
void |
start() |
void |
stopConnectors() |
void |
stopRemoteAgent(BuildAgent agent) |
AgentHeartBeatInfo |
updateRemoteAgentStatus(Long agentId,
UUID uuid,
AgentStatus status,
SystemInfo systemInfo)
Updates the
BuildAgent's status representing a remote agent on the local server. |
registerAgent@NotNull PipelineDefinition registerAgent(@NotNull PipelineDefinition remoteAgentDefinition) throws BambooLicenseException
remoteAgentDefinition - - id may be -1 if the build is newBambooLicenseExceptionAgentHeartBeatInfo updateRemoteAgentStatus(@NotNull Long agentId, @Nullable UUID uuid, @NotNull AgentStatus status, @NotNull SystemInfo systemInfo)
BuildAgent's status representing a remote agent on the local server.agentId - ID of the agentuuid - UUID of the agentstatus - agent statussystemInfo - agent system infovoid checkOfflineAgents()
void bootstrapping(String agentHostName)
Notifies the RemoteAgentManager that a remote agent has commenced bootstrapping.
agentHostName - The host name or IP address of the host on which the remote agent is running. null if unknown.void bootstrappingElastic(String agentHostName, @Nullable String instanceId)
Notifies the RemoteAgentManager that an elastic agent has commenced bootstrapping.
agentHostName - 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 onvoid setRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled)
throws Exception
Controls whether the remote agent functionality of Bamboo is enabled.
remoteAgentFunctionEnabled - true if remote agent functionality should be enabled; false otherwise.Exception - on any errorboolean isRemoteAgentFunctionEnabled()
true, if remote agent functionality is enabled, false otherwisevoid stopRemoteAgent(@NotNull
BuildAgent agent)
void addRemoteAgentLogEntry(String logEntry)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.