Class JmsQueueNameFactory


  • public class JmsQueueNameFactory
    extends java.lang.Object
    This class can be used to generate uniformly-formatted JMS queue names for usage in Java, Spring, or Camel code. In the constructor, location is an optional parameter. If it is null, then the names that are generated will not include a field for the location. Generated queue names are of the form: $instanceid.$location.$component.$endpoint $instanceid.$component.$endpoint i.e.: OpenNMS.HQ.RPC.SNMP OpenNMS.Syslogd.BroadcastSyslog
    Author:
    jwhite, Seth
    • Constructor Summary

      Constructors 
      Constructor Description
      JmsQueueNameFactory​(java.lang.String component, java.lang.String endpoint)  
      JmsQueueNameFactory​(java.lang.String component, java.lang.String endpoint, java.lang.String location)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getComponent()  
      java.lang.String getLocation()  
      java.lang.String getName()  
      java.lang.String getNameWithLocation​(java.lang.String location)  
      java.lang.String getNameWithoutLocation()  
      java.util.Properties getProperties()
      This method will return both queue name variants in a Properties list so that you can easily use it with a PropertiesComponent in a Spring context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JmsQueueNameFactory

        public JmsQueueNameFactory​(java.lang.String component,
                                   java.lang.String endpoint,
                                   java.lang.String location)
      • JmsQueueNameFactory

        public JmsQueueNameFactory​(java.lang.String component,
                                   java.lang.String endpoint)
    • Method Detail

      • getLocation

        public java.lang.String getLocation()
      • getComponent

        public java.lang.String getComponent()
      • getName

        public java.lang.String getName()
      • getNameWithoutLocation

        public java.lang.String getNameWithoutLocation()
      • getNameWithLocation

        public java.lang.String getNameWithLocation​(java.lang.String location)
      • getProperties

        public java.util.Properties getProperties()
        This method will return both queue name variants in a Properties list so that you can easily use it with a PropertiesComponent in a Spring context.