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, BambooAgentMessageSenderImpl bambooAgentMessageSender)
           
 
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)
          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, addErrorLogEntry, getBuildLog, getErrorLog, getStringErrorLogs
 
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,
                         BambooAgentMessageSenderImpl bambooAgentMessageSender)
Method Detail

addBuildLogEntry

public java.lang.String addBuildLogEntry(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

public java.lang.String addErrorLogEntry(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

public void startStreamingBuildLogs(int buildNum,
                                    java.lang.String planKey)
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 © 2008 Atlassian Pty Ltd. All Rights Reserved.