com.atlassian.bamboo.v2.build.agent.remote
Class RemoteBuildExecutionUpdateManager

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.remote.RemoteBuildExecutionUpdateManager
All Implemented Interfaces:
BuildExecutionUpdateManager, BuildLoggerManager

public class RemoteBuildExecutionUpdateManager
extends java.lang.Object
implements BuildExecutionUpdateManager


Constructor Summary
RemoteBuildExecutionUpdateManager(BambooAgentMessageSender sender, AgentContext agentContext)
           
 
Method Summary
 BuildLogger getBuildLogger(PlanKey planKey)
          Returns a BuildLogger for the given plan
 BuildLogger getBuildLogger(PlanResultKey resultKey)
          Returns a BuildLogger for the given result
 BuildLogger getBuildLogger(java.lang.String planOrResultKey)
          Returns a BuildLogger for the given plan or result key.
 void removeBuildLogger(PlanKey planKey)
          Removes plan logger for given plan key.
 void removeBuildLogger(PlanResultKey buildResultKey)
          Removes buildLogger for finished build process.
 void setBuildFinish(BuildContext buildContext, TimingPoint timingPoint)
           
 void setBuildRunningOnAgent(BuildContext buildContext, java.lang.Long buildAgentId)
          Marks that this plan has started building on the agentId.
 void setBuildStart(BuildContext buildContext, TimingPoint timingPoint)
           
 void setBuildStopAcknowledge(java.lang.String buildResultKey, boolean hasCancellingStarted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBuildExecutionUpdateManager

public RemoteBuildExecutionUpdateManager(BambooAgentMessageSender sender,
                                         AgentContext agentContext)
Method Detail

getBuildLogger

@NotNull
public BuildLogger getBuildLogger(@NotNull
                                          PlanKey planKey)
Description copied from interface: BuildLoggerManager
Returns a BuildLogger for the given plan

Specified by:
getBuildLogger in interface BuildLoggerManager
Returns:

getBuildLogger

@NotNull
public BuildLogger getBuildLogger(@NotNull
                                          PlanResultKey resultKey)
Description copied from interface: BuildLoggerManager
Returns a BuildLogger for the given result

Specified by:
getBuildLogger in interface BuildLoggerManager
Returns:

getBuildLogger

@NotNull
public BuildLogger getBuildLogger(@NotNull
                                          java.lang.String planOrResultKey)
Description copied from interface: BuildLoggerManager
Returns a BuildLogger for the given plan or result key. If it's detected that the AgentContext is building something, passing the plan key String will switch to log to the result log

Specified by:
getBuildLogger in interface BuildLoggerManager
Returns:
buildLogger

removeBuildLogger

public void removeBuildLogger(PlanKey planKey)
Description copied from interface: BuildLoggerManager
Removes plan logger for given plan key.

Specified by:
removeBuildLogger in interface BuildLoggerManager

removeBuildLogger

public void removeBuildLogger(PlanResultKey buildResultKey)
Description copied from interface: BuildLoggerManager
Removes buildLogger for finished build process. Removed build logger is not used anymore as build has been finished and build result should be persisted already.

Specified by:
removeBuildLogger in interface BuildLoggerManager

setBuildRunningOnAgent

public void setBuildRunningOnAgent(@NotNull
                                   BuildContext buildContext,
                                   java.lang.Long buildAgentId)
Description copied from interface: BuildExecutionUpdateManager
Marks that this plan has started building on the agentId.

Specified by:
setBuildRunningOnAgent in interface BuildExecutionUpdateManager

setBuildStart

public void setBuildStart(@NotNull
                          BuildContext buildContext,
                          @NotNull
                          TimingPoint timingPoint)
Specified by:
setBuildStart in interface BuildExecutionUpdateManager

setBuildFinish

public void setBuildFinish(@NotNull
                           BuildContext buildContext,
                           @NotNull
                           TimingPoint timingPoint)
Specified by:
setBuildFinish in interface BuildExecutionUpdateManager

setBuildStopAcknowledge

public void setBuildStopAcknowledge(@NotNull
                                    java.lang.String buildResultKey,
                                    boolean hasCancellingStarted)
Specified by:
setBuildStopAcknowledge in interface BuildExecutionUpdateManager


Copyright © 2012 Atlassian. All Rights Reserved.