org.robokind.impl.motion.messaging
Class JMSRobotResponseSender

java.lang.Object
  extended by org.robokind.api.messaging.DefaultMessageSender<Msg,Rec>
      extended by org.robokind.impl.messaging.JMSAvroMessageSender<RobotResponse,org.apache.avro.specific.SpecificRecordBase>
          extended by org.robokind.impl.motion.messaging.JMSRobotResponseSender
All Implemented Interfaces:
MessageSender<RobotResponse>

public class JMSRobotResponseSender
extends JMSAvroMessageSender<RobotResponse,org.apache.avro.specific.SpecificRecordBase>

Author:
Matthew Stevenson

Nested Class Summary
static class JMSRobotResponseSender.RobotResponseAdapter
          Converts various RobotResponses to Avro Records.
 
Field Summary
 
Fields inherited from class org.robokind.api.messaging.DefaultMessageSender
myRecordSender
 
Constructor Summary
JMSRobotResponseSender(javax.jms.Session session, javax.jms.Destination destination)
           
 
Method Summary
 String getContentType(RobotResponse a)
           
 void sendMessage(RobotResponse message)
           
 
Methods inherited from class org.robokind.impl.messaging.JMSAvroMessageSender
sendMessage, start, stop
 
Methods inherited from class org.robokind.api.messaging.DefaultMessageSender
addMessageListener, fireMessageEvent, getRecord, removeMessageListener, setAdapter, setRecordSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSRobotResponseSender

public JMSRobotResponseSender(javax.jms.Session session,
                              javax.jms.Destination destination)
Method Detail

sendMessage

public void sendMessage(RobotResponse message)
Specified by:
sendMessage in interface MessageSender<RobotResponse>
Overrides:
sendMessage in class DefaultMessageSender<RobotResponse,org.apache.avro.specific.SpecificRecordBase>

getContentType

public String getContentType(RobotResponse a)


Copyright © 2011-2012. All Rights Reserved.