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 BuildLogger
Returns aBuildLogger
for the given plan@NotNull BuildLogger
Returns aBuildLogger
for the given result.<T extends Key>
@NotNull BuildLoggerWithoutLogAccessgetLoggerWithoutLogAccess
(@NotNull LoggerId<T> loggerId) Returns aBuildLoggerWithoutLogAccess
for the givenLoggerId
@NotNull BuildLoggerWithoutLogAccess
getLoggerWithoutLogAccess
(@NotNull Key resultKey) Returns aBuildLoggerWithoutLogAccess
for the given resultvoid
removeBuildLogger
(PlanKey planKey) Removes plan logger for given plan key.void
removeBuildLogger
(PlanResultKey buildResultKey) Removes buildLogger for finished build process.void
removeLogger
(@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.void
transferLogs
(BuildLogger buildLogger, CommonContext context) Transfers log to the final location.
-
Method Details
-
getLogger
Returns aBuildLogger
for the given plan- Parameters:
key
-
-
getLogger
Returns aBuildLogger
for the given result. Does not guarantee a persistent logger.- Parameters:
resultKey
-- Returns:
-
getLoggerWithoutLogAccess
@NotNull @NotNull BuildLoggerWithoutLogAccess getLoggerWithoutLogAccess(@NotNull @NotNull Key resultKey) Returns aBuildLoggerWithoutLogAccess
for the given result- Parameters:
resultKey
-- Returns:
-
getLoggerWithoutLogAccess
@NotNull <T extends Key> @NotNull BuildLoggerWithoutLogAccess getLoggerWithoutLogAccess(@NotNull @NotNull LoggerId<T> loggerId) Returns aBuildLoggerWithoutLogAccess
for 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.
-