com.atlassian.bamboo.builder
Class BuildLoggerManagerForTesting

java.lang.Object
  extended by com.atlassian.bamboo.builder.BuildLoggerManagerForTesting
All Implemented Interfaces:
BuildLoggerManager

public class BuildLoggerManagerForTesting
extends java.lang.Object
implements BuildLoggerManager


Constructor Summary
BuildLoggerManagerForTesting()
           
 
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)
          Returns a BuildLogger for the given plan or result key.
 SimpleBuildLogger getLogger(Key key)
          Returns a BuildLogger for the given plan
 SimpleBuildLogger 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildLoggerManagerForTesting

public BuildLoggerManagerForTesting()
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 SimpleBuildLogger 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 SimpleBuildLogger 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
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

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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.