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

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

public class RemoteBuildLoggerManager
extends java.lang.Object
implements BuildExecutionUpdateManager, BuildLoggerManager


Constructor Summary
RemoteBuildLoggerManager(BambooAgentMessageSender logSender, AgentContext agentContext)
           
 
Method Summary
 BuildLogger getBuildLogger(PlanKey key)
          Returns a BuildLogger for the given plan
 BuildLogger getBuildLogger(PlanResultKey resultKey)
          Returns a BuildLogger for the given result
 BuildLogger getBuildLogger(java.lang.String planOrResultKey)
          Deprecated. 
 BuildLogger getLogger(Key key)
          Returns a BuildLogger for the given plan
 BuildLogger getLogger(ResultKey resultKey)
          Returns a BuildLogger for the given result
 void removeBuildLogger(PlanKey planKey)
          Removes plan logger for given plan key.
 void removeBuildLogger(PlanResultKey buildResultKey)
          Removes buildLogger for finished build process.
 void removeLogger(LoggerId loggerId)
          Remove a logger if you are finished with it.
 void setBuildFinish(BuildContext buildContext, TimingPoint timingPoint)
           
 void setBuildRunningOnAgent(BuildContext buildContext, java.lang.Long buildAgentId)
           
 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

RemoteBuildLoggerManager

public RemoteBuildLoggerManager(BambooAgentMessageSender logSender,
                                AgentContext agentContext)
Method Detail

getBuildLogger

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

Specified by:
getBuildLogger in interface BuildLoggerManager

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:

getLogger

@NotNull
public BuildLogger getLogger(@NotNull
                                     Key key)
Description copied from interface: BuildLoggerManager
Returns a BuildLogger for the given plan

Specified by:
getLogger in interface BuildLoggerManager

getLogger

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

Specified by:
getLogger in interface BuildLoggerManager
Returns:

getBuildLogger

@NotNull
@Deprecated
public BuildLogger getBuildLogger(@NotNull
                                                     java.lang.String planOrResultKey)
Deprecated. 

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

removeLogger

public void removeLogger(LoggerId loggerId)
Description copied from interface: BuildLoggerManager
Remove a logger if you are finished with it.

Specified by:
removeLogger in interface BuildLoggerManager
Parameters:
loggerId - of the logger to remove

setBuildRunningOnAgent

public void setBuildRunningOnAgent(@NotNull
                                   BuildContext buildContext,
                                   java.lang.Long buildAgentId)
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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.