Class LogMessageBatchConverter
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter
-
- All Implemented Interfaces:
org.springframework.jms.support.converter.MessageConverter
public class LogMessageBatchConverter extends Object implements org.springframework.jms.support.converter.MessageConverter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LogMessageBatchConverter.DestinationLog
-
Constructor Summary
Constructors Constructor Description LogMessageBatchConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
fromMessage(javax.jms.Message message)
static Byte
getDestinationId(@NotNull AbstractAddLogEntry message)
static AbstractAddLogEntry
readLogEntry(LoggerId<? extends Key> loggerId, javax.jms.BytesMessage jmsMessage)
static @Nullable LoggerId<? extends Key>
readLoggerId(javax.jms.BytesMessage jmsMessage)
static int
readMessageCount(javax.jms.BytesMessage jmsMessage)
javax.jms.Message
toMessage(Object o, javax.jms.Session session)
-
-
-
Method Detail
-
readLogEntry
public static AbstractAddLogEntry readLogEntry(LoggerId<? extends Key> loggerId, javax.jms.BytesMessage jmsMessage) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
getDestinationId
public static Byte getDestinationId(@NotNull @NotNull AbstractAddLogEntry message)
-
toMessage
public javax.jms.Message toMessage(Object o, javax.jms.Session session) throws javax.jms.JMSException, org.springframework.jms.support.converter.MessageConversionException
- Specified by:
toMessage
in interfaceorg.springframework.jms.support.converter.MessageConverter
- Throws:
javax.jms.JMSException
org.springframework.jms.support.converter.MessageConversionException
-
fromMessage
public Object fromMessage(javax.jms.Message message) throws javax.jms.JMSException, org.springframework.jms.support.converter.MessageConversionException
- Specified by:
fromMessage
in interfaceorg.springframework.jms.support.converter.MessageConverter
- Throws:
javax.jms.JMSException
org.springframework.jms.support.converter.MessageConversionException
-
readMessageCount
public static int readMessageCount(javax.jms.BytesMessage jmsMessage) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-