com.atlassian.bamboo.buildqueue.manager
Class RemoteAgentManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.buildqueue.manager.RemoteAgentManagerImpl
All Implemented Interfaces:
RemoteAgentManager

public class RemoteAgentManagerImpl
extends java.lang.Object
implements RemoteAgentManager


Constructor Summary
RemoteAgentManagerImpl()
           
 
Method Summary
 void bootstrapping(java.lang.String agentHostName)
          Notifies the RemoteAgentManager that a remote agent has commenced bootstrapping.
 void checkOfflineAgents()
          Runs a check for offline remote agents.
 java.util.LinkedList<java.lang.String> getRemoteAgentLog()
           
 RemoteAgentDefinition registerAgent(RemoteAgentDefinition remoteAgentDefinition)
          Initial setup / verification of the agent.
 void setBrokerService(org.apache.activemq.broker.BrokerService brokerService)
           
 void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
           
 void setErrorUpdateHander(ErrorUpdateHandler errorUpdateHander)
           
 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()
           
protected  void updateNameForDuplicates(RemoteAgentDefinition remoteAgentDefinition)
           
 boolean updateRemoteAgentStatus(java.lang.Long agentId, AgentStatus status, SystemInfo systemInfo)
          Updates the BuildAgentImpl'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

RemoteAgentManagerImpl

public RemoteAgentManagerImpl()
Method Detail

registerAgent

@NotNull
public RemoteAgentDefinition registerAgent(@NotNull
                                                   RemoteAgentDefinition remoteAgentDefinition)
                                    throws BambooLicenseException
Description copied from interface: RemoteAgentManager
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

Specified by:
registerAgent in interface RemoteAgentManager
Parameters:
remoteAgentDefinition - - id may be -1 if the build is new
Returns:
RemoteAgentDefinition with the id filled
Throws:
BambooLicenseException

updateRemoteAgentStatus

public boolean updateRemoteAgentStatus(@NotNull
                                       java.lang.Long agentId,
                                       @NotNull
                                       AgentStatus status,
                                       @NotNull
                                       SystemInfo systemInfo)
Description copied from interface: RemoteAgentManager
Updates the BuildAgentImpl's status representing a remote agent on the local server.

Specified by:
updateRemoteAgentStatus in interface RemoteAgentManager
Returns:

checkOfflineAgents

public void checkOfflineAgents()
Description copied from interface: RemoteAgentManager
Runs a check for offline remote agents.

Specified by:
checkOfflineAgents in interface RemoteAgentManager

bootstrapping

public void bootstrapping(java.lang.String agentHostName)
Description copied from interface: RemoteAgentManager

Notifies the RemoteAgentManager that a remote agent has commenced bootstrapping.

Specified by:
bootstrapping in interface RemoteAgentManager
Parameters:
agentHostName - The host name or IP address of the host on which the remote agent is running. null if unknown.


updateNameForDuplicates

protected void updateNameForDuplicates(RemoteAgentDefinition remoteAgentDefinition)

setRemoteAgentFunctionEnabled

public void setRemoteAgentFunctionEnabled(boolean remoteAgentFunctionEnabled)
                                   throws java.lang.Exception
Description copied from interface: RemoteAgentManager

Controls whether the remote agent functionality of Bamboo is enabled.

Specified by:
setRemoteAgentFunctionEnabled in interface RemoteAgentManager
Parameters:
remoteAgentFunctionEnabled - true if remote agent functionality should be enabled; false otherwise.
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

setLocalAgentManager

public void setLocalAgentManager(LocalAgentManager localAgentManager)

setBuildExecutionManager

public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)

setErrorUpdateHander

public void setErrorUpdateHander(ErrorUpdateHandler errorUpdateHander)

setPersister

public void setPersister(Persister persister)

getRemoteAgentLog

public java.util.LinkedList<java.lang.String> getRemoteAgentLog()
Specified by:
getRemoteAgentLog in interface RemoteAgentManager

setBrokerService

public void setBrokerService(org.apache.activemq.broker.BrokerService brokerService)

setUri

public void setUri(java.lang.String uri)


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.