org.lsst.ccs.bus.jms
Class JMSMessagingFactory

java.lang.Object
  extended by org.lsst.ccs.bus.MessagingFactory
      extended by org.lsst.ccs.bus.jms.JMSMessagingFactory

public class JMSMessagingFactory
extends MessagingFactory

JMS implementation of the messaging factory

Author:
aubourg

Field Summary
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class org.lsst.ccs.bus.MessagingFactory
instance
 
Constructor Summary
JMSMessagingFactory()
           
 
Method Summary
 void addCommandListener(CommandListener l)
           
 void addCommandListener(CommandListener l, String selector)
           
 void addLogListener(LogListener l)
           
 void addLogListener(LogListener l, String selector)
           
 void addStatusListener(StatusListener l)
           
 void addStatusListener(StatusListener l, String selector)
           
static int convertToJMSPriority(PriorityLevel level)
           
 String getToken()
           
 boolean isReplyRequested()
           
 void noAutoReply()
           
 void removeCommandListener(CommandListener l)
           
 void removeLogListener(LogListener l)
           
 void removeStatusListener(StatusListener l)
           
 void reply(CommandAckOrReply reply)
           
 void sendCommand(Command cmd)
           
 void sendLogEvent(LogEvent evt)
           
protected  void sendMessage(javax.jms.ObjectMessage m, javax.jms.Session sess, javax.jms.MessageProducer sender)
           
 void sendStatus(Status s)
           
 
Methods inherited from class org.lsst.ccs.bus.MessagingFactory
forSubsystem, getInstance, getSubsystemName, instanciate, shutdownBusAccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

JMSMessagingFactory

public JMSMessagingFactory()
Method Detail

getToken

public String getToken()
Specified by:
getToken in class MessagingFactory

addCommandListener

public void addCommandListener(CommandListener l)
Specified by:
addCommandListener in class MessagingFactory

addCommandListener

public void addCommandListener(CommandListener l,
                               String selector)
Specified by:
addCommandListener in class MessagingFactory

removeCommandListener

public void removeCommandListener(CommandListener l)
Specified by:
removeCommandListener in class MessagingFactory

addStatusListener

public void addStatusListener(StatusListener l)
Specified by:
addStatusListener in class MessagingFactory

addStatusListener

public void addStatusListener(StatusListener l,
                              String selector)
Specified by:
addStatusListener in class MessagingFactory

removeStatusListener

public void removeStatusListener(StatusListener l)
Specified by:
removeStatusListener in class MessagingFactory

addLogListener

public void addLogListener(LogListener l)
Specified by:
addLogListener in class MessagingFactory

addLogListener

public void addLogListener(LogListener l,
                           String selector)
Specified by:
addLogListener in class MessagingFactory

removeLogListener

public void removeLogListener(LogListener l)
Specified by:
removeLogListener in class MessagingFactory

sendCommand

public void sendCommand(Command cmd)
Specified by:
sendCommand in class MessagingFactory

convertToJMSPriority

public static int convertToJMSPriority(PriorityLevel level)

sendStatus

public void sendStatus(Status s)
Specified by:
sendStatus in class MessagingFactory

sendLogEvent

public void sendLogEvent(LogEvent evt)
Specified by:
sendLogEvent in class MessagingFactory

sendMessage

protected void sendMessage(javax.jms.ObjectMessage m,
                           javax.jms.Session sess,
                           javax.jms.MessageProducer sender)

isReplyRequested

public boolean isReplyRequested()
Overrides:
isReplyRequested in class MessagingFactory

noAutoReply

public void noAutoReply()
Specified by:
noAutoReply in class MessagingFactory

reply

public void reply(CommandAckOrReply reply)
Specified by:
reply in class MessagingFactory


Copyright © 2013 LSST. All Rights Reserved.