com.atlassian.bamboo.v2.build.agent.remote
Class RemoteBuildLogger

java.lang.Object
  extended by com.atlassian.bamboo.build.logger.BuildLoggerImpl
      extended by com.atlassian.bamboo.v2.build.agent.remote.RemoteBuildLogger
All Implemented Interfaces:
BuildLogger

public class RemoteBuildLogger
extends BuildLoggerImpl


Constructor Summary
RemoteBuildLogger(java.lang.String buildPlanKey, BambooAgentMessageSender sender)
           
 
Method Summary
 java.lang.String addBuildLogEntry(LogEntry logEntry)
          Add a new build log entry.
 java.lang.String addErrorLogEntry(LogEntry logEntry)
          Add a new build error log entry.
 void clearBuildLog()
          Reset the build log, ready for the next build
 void startStreamingBuildLogs(int buildNum, java.lang.String planKey)
          Deprecated. 
 void startStreamingBuildLogs(PlanResultKey planResultKey)
          Begin streaming any logs to build logs file
 void stopStreamingBuildLogs()
          Stop streaming any logs to the build logs file
 
Methods inherited from class com.atlassian.bamboo.build.logger.BuildLoggerImpl
addBuildLogEntry, addBuildLogHeader, addErrorLogEntry, addErrorLogEntry, close, getBuildLog, getErrorLog, getInterceptorStack, getLastNLogEntries, getStringErrorLogs, getTimeOfLastLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBuildLogger

public RemoteBuildLogger(java.lang.String buildPlanKey,
                         BambooAgentMessageSender sender)
Method Detail

addBuildLogEntry

@NotNull
public java.lang.String addBuildLogEntry(@NotNull
                                                 LogEntry logEntry)
Description copied from interface: BuildLogger
Add a new build log entry. This will get appended to the end of the log.

Specified by:
addBuildLogEntry in interface BuildLogger
Overrides:
addBuildLogEntry in class BuildLoggerImpl
Parameters:
logEntry - The data being logged
Returns:
The line of text being logged. From LogEntry.getUnstyledLog().

addErrorLogEntry

@NotNull
public java.lang.String addErrorLogEntry(@NotNull
                                                 LogEntry logEntry)
Description copied from interface: BuildLogger
Add a new build error log entry. This will get appended to the end of the log and to the end of the errors.

Specified by:
addErrorLogEntry in interface BuildLogger
Overrides:
addErrorLogEntry in class BuildLoggerImpl
Parameters:
logEntry - The data being logged
Returns:
The line of text being logged. From LogEntry.getUnstyledLog().

startStreamingBuildLogs

@Deprecated
public void startStreamingBuildLogs(int buildNum,
                                               java.lang.String planKey)
Deprecated. 

Description copied from interface: BuildLogger
Begin streaming any logs to build logs file

Specified by:
startStreamingBuildLogs in interface BuildLogger
Overrides:
startStreamingBuildLogs in class BuildLoggerImpl

startStreamingBuildLogs

public void startStreamingBuildLogs(@NotNull
                                    PlanResultKey planResultKey)
Description copied from interface: BuildLogger
Begin streaming any logs to build logs file

Specified by:
startStreamingBuildLogs in interface BuildLogger
Overrides:
startStreamingBuildLogs in class BuildLoggerImpl

stopStreamingBuildLogs

public void stopStreamingBuildLogs()
Description copied from interface: BuildLogger
Stop streaming any logs to the build logs file

Specified by:
stopStreamingBuildLogs in interface BuildLogger
Overrides:
stopStreamingBuildLogs in class BuildLoggerImpl

clearBuildLog

public void clearBuildLog()
Description copied from interface: BuildLogger
Reset the build log, ready for the next build

Specified by:
clearBuildLog in interface BuildLogger
Overrides:
clearBuildLog in class BuildLoggerImpl


Copyright © 2011 Atlassian. All Rights Reserved.