com.atlassian.bamboo.v2.build.agent
Class LogMessageBatchConverter

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.LogMessageBatchConverter
All Implemented Interfaces:
org.springframework.jms.support.converter.MessageConverter

public class LogMessageBatchConverter
extends java.lang.Object
implements org.springframework.jms.support.converter.MessageConverter


Nested Class Summary
static class LogMessageBatchConverter.DestinationLog
           
 
Constructor Summary
LogMessageBatchConverter()
           
 
Method Summary
 java.lang.Object fromMessage(javax.jms.Message message)
           
static java.lang.Byte getDestinationId(AbstractAddLogEntry message)
           
static Pair<LogEntry,java.lang.Byte> readLogEntry(javax.jms.BytesMessage jmsMessage)
           
static LoggerId readLoggerId(javax.jms.BytesMessage jmsMessage)
           
static int readMessageCount(javax.jms.BytesMessage jmsMessage)
           
 javax.jms.Message toMessage(java.lang.Object o, javax.jms.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogMessageBatchConverter

public LogMessageBatchConverter()
Method Detail

readLogEntry

public static Pair<LogEntry,java.lang.Byte> readLogEntry(javax.jms.BytesMessage jmsMessage)
                                                  throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getDestinationId

public static java.lang.Byte getDestinationId(@NotNull
                                              AbstractAddLogEntry message)

toMessage

public javax.jms.Message toMessage(java.lang.Object o,
                                   javax.jms.Session session)
                            throws javax.jms.JMSException,
                                   org.springframework.jms.support.converter.MessageConversionException
Specified by:
toMessage in interface org.springframework.jms.support.converter.MessageConverter
Throws:
javax.jms.JMSException
org.springframework.jms.support.converter.MessageConversionException

fromMessage

public java.lang.Object fromMessage(javax.jms.Message message)
                             throws javax.jms.JMSException,
                                    org.springframework.jms.support.converter.MessageConversionException
Specified by:
fromMessage in interface org.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

readLoggerId

@Nullable
public static LoggerId readLoggerId(javax.jms.BytesMessage jmsMessage)
                             throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.