Class BuildCachePublishedTranslator
- java.lang.Object
 - 
- jetbrains.buildServer.serverSide.messages.BuildCachePublishedTranslator
 
 
- 
- All Implemented Interfaces:
 ServiceMessageTranslator,ServerExtension,TeamCityExtension
public class BuildCachePublishedTranslator extends Object implements ServiceMessageTranslator
 
- 
- 
Constructor Summary
Constructors Constructor Description BuildCachePublishedTranslator(CustomDataStorageManager customDataStorageManager, BuildsManager buildsManager, ActiveBuildCachesManager activeBuildCachesManager) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetServiceMessageName()Returns name of the service message supported by this translator.List<BuildMessage1>translate(SRunningBuild runningBuild, BuildMessage1 originalMessage, ServiceMessage serviceMessage)Called to translate service message to a number of usual messages. 
 - 
 
- 
- 
Constructor Detail
- 
BuildCachePublishedTranslator
public BuildCachePublishedTranslator(@NotNull CustomDataStorageManager customDataStorageManager, @NotNull BuildsManager buildsManager, @NotNull ActiveBuildCachesManager activeBuildCachesManager) 
 - 
 
- 
Method Detail
- 
translate
@NotNull public List<BuildMessage1> translate(@NotNull SRunningBuild runningBuild, @NotNull BuildMessage1 originalMessage, @NotNull ServiceMessage serviceMessage) throws TranslateMessageException
Description copied from interface:ServiceMessageTranslatorCalled to translate service message to a number of usual messages.
Note: no attempts should be made to use the build log from the running build to log some messages
SBuild.getBuildLog(), instead the translator should return all the messages which should be inserted into the build log instead of the processed service message.- Specified by:
 translatein interfaceServiceMessageTranslator- Parameters:
 runningBuild- running buildoriginalMessage- original message from which service message was createdserviceMessage- service message- Returns:
 - a list of translated messages
 - Throws:
 TranslateMessageException- since 2018.2, when there is a error translating the message or the message has an incorrect format
 
- 
getServiceMessageName
@NotNull public String getServiceMessageName()
Description copied from interface:ServiceMessageTranslatorReturns name of the service message supported by this translator. Only service messages with such name will be passed to the translator.- Specified by:
 getServiceMessageNamein interfaceServiceMessageTranslator- Returns:
 - see above.
 
 
 - 
 
 -