Package com.atlassian.bamboo.build
Interface BuildLoggerManager
-
- All Known Subinterfaces:
FlushableBuildLoggerManager
,ServerBuildLoggerManager
- All Known Implementing Classes:
BuildLoggerManagerForTesting
,DefaultBuildLoggerManager
,RemoteBuildLoggerManager
public interface BuildLoggerManager
Manages instances ofBuildLogger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull BuildLogger
getLogger(@NotNull Key key)
Returns aBuildLogger
for the given plan@NotNull BuildLogger
getLogger(@NotNull ResultKey resultKey)
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 Detail
-
getLogger
@NotNull @NotNull BuildLogger getLogger(@NotNull @NotNull Key key)
Returns aBuildLogger
for the given plan- Parameters:
key
-
-
getLogger
@NotNull @NotNull BuildLogger getLogger(@NotNull @NotNull ResultKey resultKey)
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
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(@NotNull @NotNull ResultKey resultKey)
Remove a logger if you are finished with it.- Parameters:
resultKey
-
-
removeLogger
<T extends Key> void removeLogger(LoggerId<T> loggerId)
Remove a logger if you are finished with it.- Parameters:
loggerId
- of the logger to remove
-
transferLogs
void transferLogs(BuildLogger buildLogger, CommonContext context)
Transfers log to the final location. Called when the build/deployment is finished.
-
-