com.atlassian.bamboo.build
Interface BuildLoggerManager

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

public interface BuildLoggerManager

Manages instances of BuildLogger


Method Summary
 BuildLogger getBuildLogger(PlanKey key)
          Deprecated. since 5.0 use $getLogger(com.atlassian.bamboo.Key) instead
 BuildLogger getBuildLogger(PlanResultKey resultKey)
          Deprecated. since 5.0 use $getLogger(com.atlassian.bamboo.ResultKey) instead
 BuildLogger getBuildLogger(java.lang.String planOrResultKey)
          Deprecated. since 2.6 Use getLogger(Key) or getLogger(ResultKey) instead
 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.
 

Method Detail

getBuildLogger

@NotNull
@Deprecated
BuildLogger getBuildLogger(@NotNull
                                              PlanKey key)
Deprecated. since 5.0 use $getLogger(com.atlassian.bamboo.Key) instead

Returns a BuildLogger for the given plan

Parameters:
key -

getBuildLogger

@NotNull
@Deprecated
BuildLogger getBuildLogger(@NotNull
                                              PlanResultKey resultKey)
Deprecated. since 5.0 use $getLogger(com.atlassian.bamboo.ResultKey) instead

Returns a BuildLogger for the given result

Parameters:
resultKey -
Returns:

getLogger

@NotNull
BuildLogger getLogger(@NotNull
                              Key key)
Returns a BuildLogger for the given plan

Parameters:
key@return -

getLogger

@NotNull
BuildLogger getLogger(@NotNull
                              ResultKey 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 getLogger(Key) or getLogger(ResultKey) 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 -

removeLogger

void removeLogger(LoggerId loggerId)
Remove a logger if you are finished with it.

Parameters:
loggerId - of the logger to remove


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