|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.protocol.jms.Utils
public final class Utils
Utility methods for JMS protocol. WARNING - the API for this class is likely to change!
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static void |
addJMSProperties(javax.jms.Message msg,
Map<String,String> map)
Set JMS Properties to msg |
static void |
close(javax.jms.Connection closeable,
org.apache.log.Logger log)
|
static void |
close(javax.jms.MessageConsumer closeable,
org.apache.log.Logger log)
|
static void |
close(javax.jms.MessageProducer closeable,
org.apache.log.Logger log)
|
static void |
close(javax.jms.Session closeable,
org.apache.log.Logger log)
|
static javax.jms.Connection |
getConnection(Context ctx,
String factoryName)
Obtain the queue connection from the context and factory name. |
static javax.jms.Destination |
lookupDestination(Context context,
String name)
Method will lookup a given destination (topic/queue) using JNDI. |
static String |
messageProperties(javax.jms.Message msg)
|
static StringBuilder |
messageProperties(StringBuilder sb,
javax.jms.Message msg)
|
static StringBuilder |
requestHeaders(StringBuilder sb,
javax.jms.Message msg)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static void close(javax.jms.MessageConsumer closeable, org.apache.log.Logger log)
public static void close(javax.jms.Session closeable, org.apache.log.Logger log)
public static void close(javax.jms.Connection closeable, org.apache.log.Logger log)
public static void close(javax.jms.MessageProducer closeable, org.apache.log.Logger log)
public static String messageProperties(javax.jms.Message msg)
public static StringBuilder messageProperties(StringBuilder sb, javax.jms.Message msg)
public static StringBuilder requestHeaders(StringBuilder sb, javax.jms.Message msg)
public static javax.jms.Destination lookupDestination(Context context, String name) throws NamingException
context
- name
- the destination name
NamingException
- if the name cannot be found as a Destinationpublic static javax.jms.Connection getConnection(Context ctx, String factoryName) throws javax.jms.JMSException, NamingException
ctx
- factoryName
-
javax.jms.JMSException
NamingException
public static void addJMSProperties(javax.jms.Message msg, Map<String,String> map) throws javax.jms.JMSException
msg
- Messagemap
- Mapjavax.jms.JMSException
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |