Package com.atlassian.bamboo.build
Interface BuildLoggerManager
- All Known Subinterfaces:
FlushableBuildLoggerManager,ServerBuildLoggerManager
- All Known Implementing Classes:
BuildLoggerManagerForTesting,DefaultBuildLoggerManager,RemoteBuildLoggerManager
public interface BuildLoggerManager
Manages instances of
BuildLogger-
Method Summary
Modifier and TypeMethodDescription@NotNull BuildLoggerReturns aBuildLoggerfor the given plan@NotNull BuildLoggerReturns aBuildLoggerfor the given result.<T extends Key>
@NotNull BuildLoggerWithoutLogAccessgetLoggerWithoutLogAccess(@NotNull LoggerId<T> loggerId) Returns aBuildLoggerWithoutLogAccessfor the givenLoggerId@NotNull BuildLoggerWithoutLogAccessgetLoggerWithoutLogAccess(@NotNull Key resultKey) Returns aBuildLoggerWithoutLogAccessfor the given resultvoidremoveBuildLogger(PlanKey planKey) Removes plan logger for given plan key.voidremoveBuildLogger(PlanResultKey buildResultKey) Removes buildLogger for finished build process.voidremoveLogger(@NotNull ResultKey resultKey) Remove a logger if you are finished with it.<T extends Key>
voidremoveLogger(LoggerId<T> loggerId) Remove a logger if you are finished with it.voidtransferLogs(BuildLogger buildLogger, CommonContext context) Transfers log to the final location.
-
Method Details
-
getLogger
Returns aBuildLoggerfor the given plan- Parameters:
key-
-
getLogger
Returns aBuildLoggerfor the given result. Does not guarantee a persistent logger.- Parameters:
resultKey-- Returns:
-
getLoggerWithoutLogAccess
@NotNull @NotNull BuildLoggerWithoutLogAccess getLoggerWithoutLogAccess(@NotNull @NotNull Key resultKey) Returns aBuildLoggerWithoutLogAccessfor the given result- Parameters:
resultKey-- Returns:
-
getLoggerWithoutLogAccess
@NotNull <T extends Key> @NotNull BuildLoggerWithoutLogAccess getLoggerWithoutLogAccess(@NotNull @NotNull LoggerId<T> loggerId) Returns aBuildLoggerWithoutLogAccessfor the givenLoggerId- Parameters:
loggerId-- Since:
- 7.0
-
removeBuildLogger
Removes plan logger for given plan key.- Parameters:
planKey-
-
removeBuildLogger
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
Remove a logger if you are finished with it.- Parameters:
resultKey-
-
removeLogger
Remove a logger if you are finished with it.- Parameters:
loggerId- of the logger to remove
-
transferLogs
Transfers log to the final location. Called when the build/deployment is finished.
-