com.atlassian.bamboo.build
Interface BuildLoggerManager

All Known Subinterfaces:
BuildExecutionManager, BuildExecutionUpdateManager
All Known Implementing Classes:
BuildLoggerManagerForTesting, DefaultBuildExecutionManager, DefaultBuildLoggerManager, RemoteBuildExecutionUpdateManager

public interface BuildLoggerManager

Manages instances of BuildLogger


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)
          Deprecated. since 2.6 Use getBuildLogger(PlanKey) or getBuildLogger(PlanResultKey) instead
 void removeBuildLogger(PlanKey planKey)
          Removes plan logger for given plan key.
 void removeBuildLogger(PlanResultKey buildResultKey)
          Removes buildLogger for finished build process.
 

Method Detail

getBuildLogger

@NotNull
BuildLogger getBuildLogger(@NotNull
                                   PlanKey planKey)
Returns a BuildLogger for the given plan

Parameters:
planKey -
Returns:

getBuildLogger

@NotNull
BuildLogger getBuildLogger(@NotNull
                                   PlanResultKey resultKey)
Returns a BuildLogger for the given result

Parameters:
resultKey -
Returns:

getBuildLogger

@NotNull
@Deprecated
BuildLogger getBuildLogger(@NotNull
                                              java.lang.String planOrResultKey)
Deprecated. since 2.6 Use getBuildLogger(PlanKey) or getBuildLogger(PlanResultKey) instead

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

Parameters:
planOrResultKey -
Returns:
buildLogger

removeBuildLogger

void removeBuildLogger(PlanKey planKey)
Removes plan logger for given plan key.

Parameters:
planKey -

removeBuildLogger

void removeBuildLogger(PlanResultKey buildResultKey)
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.

Parameters:
buildResultKey -


Copyright © 2012 Atlassian. All Rights Reserved.