jetbrains.buildServer.messages
Class DefaultMessagesInfo

java.lang.Object
  extended by jetbrains.buildServer.messages.DefaultMessagesInfo

public class DefaultMessagesInfo
extends java.lang.Object


Nested Class Summary
static interface DefaultMessagesInfo.MessagesTimeService
           
 
Field Summary
static java.util.Set ALWAYS_LOGGED_BLOCKS
           
static java.lang.String BLOCK_TYPE_ARTIFACTS_RESOLVING
           
static java.lang.String BLOCK_TYPE_BUILD
           
static java.lang.String BLOCK_TYPE_BUILD_STEP
           
static java.lang.String BLOCK_TYPE_CHECKOUT
           
static java.lang.String BLOCK_TYPE_COMPILATION
           
static java.lang.String BLOCK_TYPE_INDENTATION
           
static java.lang.String BLOCK_TYPE_MODULE
           
static java.lang.String BLOCK_TYPE_PROGRESS
           
static java.lang.String BLOCK_TYPE_TARGET
           
static java.lang.String BLOCK_TYPE_TEST
           
static java.lang.String BLOCK_TYPE_TEST_SUITE
           
static java.lang.String DEFAULT_FLOW_ID
           
static java.lang.String MSG_BLOCK_END
           
static java.lang.String MSG_BLOCK_START
           
static java.lang.String MSG_BUILD_FAILURE
           
static java.lang.String MSG_BUILD_PROBLEM
           
static java.lang.String MSG_ERROR
           
static java.lang.String MSG_FLOW
           
static java.lang.String MSG_FLOW_FINISHED
           
static java.lang.String MSG_PREPARATION_END_STAGE
           
static java.lang.String MSG_PROGRESS_STAGE
           
static java.lang.String MSG_TEST_FAILURE
           
static java.lang.String MSG_TEST_IGNORED
           
static java.lang.String MSG_TEST_NAVIGATION_INFO
           
static java.lang.String MSG_TEST_OUTPUT
           
static java.lang.String MSG_TEXT
           
static java.lang.String ROOT_FLOW_ID
           
static java.lang.String SERVER_MESSAGE
           
static java.lang.String SOURCE_ID
           
static java.lang.String TAG_INTERNAL
           
static java.lang.String TAG_SERVER
           
 
Method Summary
static BuildMessage1 addMessageLink(BuildMessage1 message1, java.lang.Integer targetMessageIndex)
           
static BuildMessage1 createBlockEnd(java.lang.String blockName, java.lang.String blockType)
           
static BuildMessage1 createBlockEnd(java.lang.String blockName, java.lang.String blockType, java.util.Date timestamp)
           
static BuildMessage1 createBlockStart(java.lang.String blockName, java.lang.String blockType)
           
static BuildMessage1 createBlockStart(java.lang.String blockName, java.lang.String blockType, java.util.Date timestamp)
           
static BuildMessage1 createBlockStart(java.lang.String blockName, java.lang.String blockDescription, java.lang.String blockType)
           
static BuildMessage1 createBlockStart(java.lang.String blockName, java.lang.String blockDescription, java.lang.String blockType, java.util.Date timestamp)
           
static BuildMessage1 createBuildFailure(java.lang.String message)
          Create message which fails the build with given message.
static BuildMessage1 createBuildProblemMessage(BuildProblemData buildProblem)
           
static BuildMessage1 createComparisonFailed(java.lang.String testName, java.lang.String th, java.lang.String message, java.lang.String expected, java.lang.String actual)
           
static BuildMessage1 createComparisonFailed(java.lang.String testName, java.lang.Throwable th, java.lang.String expected, java.lang.String actual)
           
static BuildMessage1 createCompilationBlockEnd(java.lang.String blockName)
           
static BuildMessage1 createCompilationBlockStart(java.lang.String blockName)
           
static BuildMessage1 createError(Status status, ErrorData data)
           
static BuildMessage1 createError(java.lang.String message, java.lang.String stackTrace, Status status)
           
static BuildMessage1 createError(java.lang.String message, java.lang.String type, java.lang.Throwable throwable)
           
static BuildMessage1 createError(java.lang.Throwable throwable)
           
static BuildMessage1 createError(java.lang.Throwable throwable, Status status)
           
static BuildMessage1 createFlowFinishedMessage(java.lang.String flowId)
           
static BuildMessage1 createFlowMessage(java.lang.String flowId, java.lang.String parentFlowId)
           
static BuildMessage1 createPreparationEndMessage(java.lang.String message)
           
static BuildMessage1 createProgressMessage(java.lang.String message)
           
static BuildMessage1 createTestBlockEnd(java.lang.String blockName)
           
static BuildMessage1 createTestBlockEnd(java.lang.String blockName, java.lang.Integer testDuration, java.lang.Long finishTimestamp)
           
static BuildMessage1 createTestBlockStart(java.lang.String blockName)
           
static BuildMessage1 createTestBlockStart(java.lang.String blockName, boolean captureStandardOutput, java.lang.Long startTimestamp)
           
static BuildMessage1 createTestBlockStart(java.lang.String blockName, boolean captureStandardOutput, java.lang.Long startTimestamp, java.lang.String locationHint)
           
static BuildMessage1 createTestFailure(java.lang.String testName, java.lang.String message, java.lang.String stackTrace)
           
static BuildMessage1 createTestFailure(java.lang.String testName, java.lang.Throwable th)
           
static BuildMessage1 createTestIgnoreMessage(java.lang.String testName, java.lang.String reason)
           
static BuildMessage1 createTestNavigationInfo(java.util.Map attributes)
           
static BuildMessage1 createTestStderr(java.lang.String testName, java.lang.String output)
           
static BuildMessage1 createTestStdout(java.lang.String testName, java.lang.String output)
           
static BuildMessage1 createTestSuiteEnd(java.lang.String blockName)
           
static BuildMessage1 createTestSuiteStart(java.lang.String blockName)
           
static BuildMessage1 createTextMessage(BuildMessage1 sourceMessage, java.lang.String newText)
          Creates text message copying all attributes from source message
static BuildMessage1 createTextMessage(java.lang.String message)
           
static BuildMessage1 createTextMessage(java.lang.String message, Status status)
           
static java.lang.String getMessageLink(java.util.Collection tags)
           
static BuildMessage1 internalize(BuildMessage1 message)
           
static java.util.Date now()
           
static void resetMessagesTimeService()
           
static void setMessagesTimeService(DefaultMessagesInfo.MessagesTimeService service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_MESSAGE

public static final java.lang.String SERVER_MESSAGE
See Also:
Constant Field Values

MSG_FLOW

public static final java.lang.String MSG_FLOW
See Also:
Constant Field Values

MSG_FLOW_FINISHED

public static final java.lang.String MSG_FLOW_FINISHED
See Also:
Constant Field Values

DEFAULT_FLOW_ID

public static final java.lang.String DEFAULT_FLOW_ID
See Also:
Constant Field Values

ROOT_FLOW_ID

public static final java.lang.String ROOT_FLOW_ID
See Also:
Constant Field Values

TAG_INTERNAL

public static final java.lang.String TAG_INTERNAL
See Also:
Constant Field Values

TAG_SERVER

public static final java.lang.String TAG_SERVER
See Also:
Constant Field Values

SOURCE_ID

public static final java.lang.String SOURCE_ID
See Also:
Constant Field Values

MSG_ERROR

public static final java.lang.String MSG_ERROR
See Also:
Constant Field Values

MSG_TEXT

public static final java.lang.String MSG_TEXT
See Also:
Constant Field Values

MSG_BUILD_FAILURE

public static final java.lang.String MSG_BUILD_FAILURE
See Also:
Constant Field Values

MSG_BLOCK_START

public static final java.lang.String MSG_BLOCK_START
See Also:
Constant Field Values

MSG_BLOCK_END

public static final java.lang.String MSG_BLOCK_END
See Also:
Constant Field Values

MSG_PREPARATION_END_STAGE

public static final java.lang.String MSG_PREPARATION_END_STAGE
See Also:
Constant Field Values

MSG_PROGRESS_STAGE

public static final java.lang.String MSG_PROGRESS_STAGE
See Also:
Constant Field Values

MSG_TEST_IGNORED

public static final java.lang.String MSG_TEST_IGNORED
See Also:
Constant Field Values

MSG_TEST_OUTPUT

public static final java.lang.String MSG_TEST_OUTPUT
See Also:
Constant Field Values

MSG_TEST_FAILURE

public static final java.lang.String MSG_TEST_FAILURE
See Also:
Constant Field Values

MSG_TEST_NAVIGATION_INFO

public static final java.lang.String MSG_TEST_NAVIGATION_INFO
See Also:
Constant Field Values

BLOCK_TYPE_BUILD

public static final java.lang.String BLOCK_TYPE_BUILD
See Also:
Constant Field Values

BLOCK_TYPE_MODULE

public static final java.lang.String BLOCK_TYPE_MODULE
See Also:
Constant Field Values

BLOCK_TYPE_PROGRESS

public static final java.lang.String BLOCK_TYPE_PROGRESS
See Also:
Constant Field Values

BLOCK_TYPE_TEST

public static final java.lang.String BLOCK_TYPE_TEST
See Also:
Constant Field Values

BLOCK_TYPE_TEST_SUITE

public static final java.lang.String BLOCK_TYPE_TEST_SUITE
See Also:
Constant Field Values

BLOCK_TYPE_COMPILATION

public static final java.lang.String BLOCK_TYPE_COMPILATION
See Also:
Constant Field Values

BLOCK_TYPE_TARGET

public static final java.lang.String BLOCK_TYPE_TARGET
See Also:
Constant Field Values

BLOCK_TYPE_INDENTATION

public static final java.lang.String BLOCK_TYPE_INDENTATION
See Also:
Constant Field Values

BLOCK_TYPE_CHECKOUT

public static final java.lang.String BLOCK_TYPE_CHECKOUT
See Also:
Constant Field Values

BLOCK_TYPE_ARTIFACTS_RESOLVING

public static final java.lang.String BLOCK_TYPE_ARTIFACTS_RESOLVING
See Also:
Constant Field Values

BLOCK_TYPE_BUILD_STEP

public static final java.lang.String BLOCK_TYPE_BUILD_STEP
See Also:
Constant Field Values

MSG_BUILD_PROBLEM

public static final java.lang.String MSG_BUILD_PROBLEM
See Also:
Constant Field Values

ALWAYS_LOGGED_BLOCKS

public static final java.util.Set ALWAYS_LOGGED_BLOCKS
Method Detail

createBlockStart

public static BuildMessage1 createBlockStart(java.lang.String blockName,
                                             java.lang.String blockType)

createBlockStart

public static BuildMessage1 createBlockStart(java.lang.String blockName,
                                             java.lang.String blockDescription,
                                             java.lang.String blockType)

setMessagesTimeService

public static void setMessagesTimeService(DefaultMessagesInfo.MessagesTimeService service)

resetMessagesTimeService

public static void resetMessagesTimeService()

now

public static java.util.Date now()

createBlockStart

public static BuildMessage1 createBlockStart(java.lang.String blockName,
                                             java.lang.String blockType,
                                             java.util.Date timestamp)

createBlockStart

public static BuildMessage1 createBlockStart(java.lang.String blockName,
                                             java.lang.String blockDescription,
                                             java.lang.String blockType,
                                             java.util.Date timestamp)

createTestBlockStart

public static BuildMessage1 createTestBlockStart(java.lang.String blockName)

createTestBlockStart

public static BuildMessage1 createTestBlockStart(java.lang.String blockName,
                                                 boolean captureStandardOutput,
                                                 java.lang.Long startTimestamp)

createTestBlockStart

public static BuildMessage1 createTestBlockStart(java.lang.String blockName,
                                                 boolean captureStandardOutput,
                                                 java.lang.Long startTimestamp,
                                                 java.lang.String locationHint)

createTestSuiteStart

public static BuildMessage1 createTestSuiteStart(java.lang.String blockName)

createTestSuiteEnd

public static BuildMessage1 createTestSuiteEnd(java.lang.String blockName)

createCompilationBlockStart

public static BuildMessage1 createCompilationBlockStart(java.lang.String blockName)

createBlockEnd

public static BuildMessage1 createBlockEnd(java.lang.String blockName,
                                           java.lang.String blockType)

createBlockEnd

public static BuildMessage1 createBlockEnd(java.lang.String blockName,
                                           java.lang.String blockType,
                                           java.util.Date timestamp)

createTestBlockEnd

public static BuildMessage1 createTestBlockEnd(java.lang.String blockName,
                                               java.lang.Integer testDuration,
                                               java.lang.Long finishTimestamp)

createTestBlockEnd

public static BuildMessage1 createTestBlockEnd(java.lang.String blockName)

createCompilationBlockEnd

public static BuildMessage1 createCompilationBlockEnd(java.lang.String blockName)

createError

public static BuildMessage1 createError(java.lang.String message,
                                        java.lang.String type,
                                        java.lang.Throwable throwable)

createError

public static BuildMessage1 createError(java.lang.Throwable throwable)

createError

public static BuildMessage1 createError(java.lang.Throwable throwable,
                                        Status status)

createError

public static BuildMessage1 createError(java.lang.String message,
                                        java.lang.String stackTrace,
                                        Status status)

createError

public static BuildMessage1 createError(Status status,
                                        ErrorData data)

createTextMessage

public static BuildMessage1 createTextMessage(java.lang.String message)

createTextMessage

public static BuildMessage1 createTextMessage(java.lang.String message,
                                              Status status)

createTextMessage

public static BuildMessage1 createTextMessage(BuildMessage1 sourceMessage,
                                              java.lang.String newText)
Creates text message copying all attributes from source message

Parameters:
sourceMessage - source message
newText - text for message
Returns:
new text message

createPreparationEndMessage

public static BuildMessage1 createPreparationEndMessage(java.lang.String message)

createProgressMessage

public static BuildMessage1 createProgressMessage(java.lang.String message)

createBuildFailure

public static BuildMessage1 createBuildFailure(java.lang.String message)
Create message which fails the build with given message. Message should be short to fit into short status text

Parameters:
message - build failure message
Returns:
message which can fail the build

createTestIgnoreMessage

public static BuildMessage1 createTestIgnoreMessage(java.lang.String testName,
                                                    java.lang.String reason)

createTestFailure

public static BuildMessage1 createTestFailure(java.lang.String testName,
                                              java.lang.Throwable th)

createTestFailure

public static BuildMessage1 createTestFailure(java.lang.String testName,
                                              java.lang.String message,
                                              java.lang.String stackTrace)

createComparisonFailed

public static BuildMessage1 createComparisonFailed(java.lang.String testName,
                                                   java.lang.Throwable th,
                                                   java.lang.String expected,
                                                   java.lang.String actual)

createComparisonFailed

public static BuildMessage1 createComparisonFailed(java.lang.String testName,
                                                   java.lang.String th,
                                                   java.lang.String message,
                                                   java.lang.String expected,
                                                   java.lang.String actual)

createTestStderr

public static BuildMessage1 createTestStderr(java.lang.String testName,
                                             java.lang.String output)

createTestStdout

public static BuildMessage1 createTestStdout(java.lang.String testName,
                                             java.lang.String output)

createFlowMessage

public static BuildMessage1 createFlowMessage(java.lang.String flowId,
                                              java.lang.String parentFlowId)

createFlowFinishedMessage

public static BuildMessage1 createFlowFinishedMessage(java.lang.String flowId)

createTestNavigationInfo

public static BuildMessage1 createTestNavigationInfo(java.util.Map attributes)

internalize

public static BuildMessage1 internalize(BuildMessage1 message)

addMessageLink

public static BuildMessage1 addMessageLink(BuildMessage1 message1,
                                           java.lang.Integer targetMessageIndex)

getMessageLink

public static java.lang.String getMessageLink(java.util.Collection tags)

createBuildProblemMessage

public static BuildMessage1 createBuildProblemMessage(BuildProblemData buildProblem)