public class BuildLoggerManagerForTesting extends Object implements BuildLoggerManager
Constructor and Description |
---|
BuildLoggerManagerForTesting() |
Modifier and Type | Method and Description |
---|---|
@NotNull SimpleBuildLogger |
getLogger(@NotNull Key key)
Returns a
BuildLogger for the given plan |
@NotNull SimpleBuildLogger |
getLogger(@NotNull ResultKey resultKey)
Returns a
BuildLogger for the given result. |
@NotNull BuildLoggerWithoutLogAccess |
getLoggerWithoutLogAccess(@NotNull Key resultKey)
Returns a
BuildLoggerWithoutLogAccess for the given result |
<T extends Key> |
getLoggerWithoutLogAccess(@NotNull LoggerId<T> loggerId)
Returns a
BuildLoggerWithoutLogAccess for the given LoggerId |
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.
|
void |
removeLogger(@NotNull ResultKey resultKey)
Remove a logger if you are finished with it.
|
void |
transferLogs(BuildLogger buildLogger,
CommonContext buildContext)
Transfers log to the final location.
|
@NotNull public @NotNull SimpleBuildLogger getLogger(@NotNull @NotNull Key key)
BuildLoggerManager
BuildLogger
for the given plangetLogger
in interface BuildLoggerManager
@NotNull public @NotNull SimpleBuildLogger getLogger(@NotNull @NotNull ResultKey resultKey)
BuildLoggerManager
BuildLogger
for the given result.
Does not guarantee a persistent logger.getLogger
in interface BuildLoggerManager
@NotNull public <T extends Key> @NotNull BuildLoggerWithoutLogAccess getLoggerWithoutLogAccess(@NotNull @NotNull LoggerId<T> loggerId)
BuildLoggerManager
BuildLoggerWithoutLogAccess
for the given LoggerId
getLoggerWithoutLogAccess
in interface BuildLoggerManager
@NotNull public @NotNull BuildLoggerWithoutLogAccess getLoggerWithoutLogAccess(@NotNull @NotNull Key resultKey)
BuildLoggerManager
BuildLoggerWithoutLogAccess
for the given resultgetLoggerWithoutLogAccess
in interface BuildLoggerManager
public void removeBuildLogger(PlanKey planKey)
BuildLoggerManager
removeBuildLogger
in interface BuildLoggerManager
public void removeBuildLogger(PlanResultKey buildResultKey)
BuildLoggerManager
removeBuildLogger
in interface BuildLoggerManager
public void removeLogger(LoggerId loggerId)
BuildLoggerManager
removeLogger
in interface BuildLoggerManager
loggerId
- of the logger to removepublic void removeLogger(@NotNull @NotNull ResultKey resultKey)
BuildLoggerManager
removeLogger
in interface BuildLoggerManager
public void transferLogs(BuildLogger buildLogger, CommonContext buildContext)
BuildLoggerManager
transferLogs
in interface BuildLoggerManager
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.