|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.buildqueue.manager.RemoteAgentManagerImpl
public class RemoteAgentManagerImpl
| Constructor Summary | |
|---|---|
RemoteAgentManagerImpl(int heartbeatTimeoutSeconds,
StartupStatisticsBean startupStatisticsBean)
|
|
| Method Summary | |
|---|---|
void |
addRemoteAgentLogEntry(java.lang.String logEntry)
|
void |
bootstrapping(java.lang.String agentHostName)
Notifies the RemoteAgentManager that a remote agent has commenced bootstrapping. |
void |
bootstrappingElastic(java.lang.String agentHostName,
java.lang.String instanceId)
Notifies the RemoteAgentManager that an elastic agent has commenced bootstrapping. |
void |
checkOfflineAgents()
Runs a check for offline remote agents. |
java.util.List<java.lang.String> |
getRemoteAgentLog()
|
boolean |
isRemoteAgentFunctionEnabled()
|
PipelineDefinition |
registerAgent(PipelineDefinition remoteAgentDefinition)
Initial setup / verification of the agent. |
void |
setBrokerService(org.apache.activemq.broker.BrokerService brokerService)
|
void |
setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
|
void |
setErrorUpdateHander(ErrorUpdateHandler errorUpdateHander)
|
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
setHeartbeatCheckInterval(int heartbeatCheckInterval)
|
void |
setLocalAgentManager(LocalAgentManager localAgentManager)
|
void |
setPersister(Persister persister)
|
void |
setRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled)
Controls whether the remote agent functionality of Bamboo is enabled. |
void |
setUri(java.lang.String uri)
|
void |
start()
|
void |
stopConnectors()
|
void |
stopRemoteAgent(BuildAgent agent)
|
protected void |
updateNameForDuplicates(PipelineDefinition remoteAgentDefinition)
|
AgentHeartBeatInfo |
updateRemoteAgentStatus(java.lang.Long agentId,
AgentStatus status,
SystemInfo systemInfo)
Updates the BuildAgent's status representing a remote agent on the local server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteAgentManagerImpl(int heartbeatTimeoutSeconds,
StartupStatisticsBean startupStatisticsBean)
| Method Detail |
|---|
@NotNull
public PipelineDefinition registerAgent(@NotNull
PipelineDefinition remoteAgentDefinition)
throws BambooLicenseException
RemoteAgentManager
registerAgent in interface RemoteAgentManagerremoteAgentDefinition - - id may be -1 if the build is new
BambooLicenseException
public AgentHeartBeatInfo updateRemoteAgentStatus(@NotNull
java.lang.Long agentId,
@NotNull
AgentStatus status,
@NotNull
SystemInfo systemInfo)
RemoteAgentManagerBuildAgent's status representing a remote agent on the local server.
updateRemoteAgentStatus in interface RemoteAgentManagerpublic void checkOfflineAgents()
RemoteAgentManager
checkOfflineAgents in interface RemoteAgentManager
public void setRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled)
throws java.lang.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.
java.lang.Exceptionpublic boolean isRemoteAgentFunctionEnabled()
isRemoteAgentFunctionEnabled in interface RemoteAgentManager
public void stopRemoteAgent(@NotNull
BuildAgent agent)
stopRemoteAgent in interface RemoteAgentManagerpublic void bootstrapping(java.lang.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(java.lang.String agentHostName,
@Nullable
java.lang.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 onprotected void updateNameForDuplicates(PipelineDefinition remoteAgentDefinition)
public void addRemoteAgentLogEntry(java.lang.String logEntry)
addRemoteAgentLogEntry in interface RemoteAgentManager
public void stopConnectors()
throws java.lang.Exception
stopConnectors in interface RemoteAgentManagerjava.lang.Exception
public void start()
throws java.lang.Exception
start in interface RemoteAgentManagerjava.lang.Exceptionpublic void setLocalAgentManager(LocalAgentManager localAgentManager)
public void setErrorUpdateHander(ErrorUpdateHandler errorUpdateHander)
public void setPersister(Persister persister)
public void setHeartbeatCheckInterval(int heartbeatCheckInterval)
public java.util.List<java.lang.String> getRemoteAgentLog()
getRemoteAgentLog in interface RemoteAgentManagerpublic void setBrokerService(org.apache.activemq.broker.BrokerService brokerService)
public void setUri(java.lang.String uri)
public void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
public void setEventManager(com.atlassian.event.EventManager eventManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||