|
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.client.Publisher
public class Publisher
Constructor Summary | |
---|---|
Publisher(boolean useProps,
String initialContextFactory,
String providerUrl,
String connfactory,
String destinationName,
boolean useAuth,
String securityPrincipal,
String securityCredentials)
Create a publisher using either the jndi.properties file or the provided parameters. |
|
Publisher(boolean useProps,
String initialContextFactory,
String providerUrl,
String connfactory,
String destinationName,
boolean useAuth,
String securityPrincipal,
String securityCredentials,
boolean useNonPersistentMessages)
Create a publisher using either the jndi.properties file or the provided parameters. |
|
Publisher(boolean useProps,
String initialContextFactory,
String providerUrl,
String connfactory,
String destinationName,
boolean useAuth,
String securityPrincipal,
String securityCredentials,
boolean staticDestination,
boolean useNonPersistentMessages)
Create a publisher using either the jndi.properties file or the provided parameters |
Method Summary | |
---|---|
void |
close()
Close will close the session |
javax.jms.MapMessage |
publish(Map<String,Object> map)
|
javax.jms.MapMessage |
publish(Map<String,Object> map,
String destinationName)
|
javax.jms.MapMessage |
publish(Map<String,Object> map,
String destinationName,
Map<String,String> properties)
|
javax.jms.ObjectMessage |
publish(Serializable contents)
|
javax.jms.ObjectMessage |
publish(Serializable contents,
String destinationName)
|
javax.jms.ObjectMessage |
publish(Serializable contents,
String destinationName,
Map<String,String> properties)
|
javax.jms.TextMessage |
publish(String text)
|
javax.jms.TextMessage |
publish(String text,
String destinationName)
|
javax.jms.TextMessage |
publish(String text,
String destinationName,
Map<String,String> properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Publisher(boolean useProps, String initialContextFactory, String providerUrl, String connfactory, String destinationName, boolean useAuth, String securityPrincipal, String securityCredentials) throws javax.jms.JMSException, NamingException
useProps
- true if a jndi.properties file is to be usedinitialContextFactory
- the (ignored if useProps is true)providerUrl
- (ignored if useProps is true)connfactory
- destinationName
- useAuth
- (ignored if useProps is true)securityPrincipal
- (ignored if useProps is true)securityCredentials
- (ignored if useProps is true)
javax.jms.JMSException
- if the context could not be initialised, or there was some other error
NamingException
public Publisher(boolean useProps, String initialContextFactory, String providerUrl, String connfactory, String destinationName, boolean useAuth, String securityPrincipal, String securityCredentials, boolean useNonPersistentMessages) throws javax.jms.JMSException, NamingException
useProps
- true if a jndi.properties file is to be usedinitialContextFactory
- the (ignored if useProps is true)providerUrl
- (ignored if useProps is true)connfactory
- destinationName
- useAuth
- (ignored if useProps is true)securityPrincipal
- (ignored if useProps is true)securityCredentials
- (ignored if useProps is true)useNonPersistentMessages
- Flag Delivery Mode as Non persistent if true
javax.jms.JMSException
- if the context could not be initialised, or there was some other error
NamingException
public Publisher(boolean useProps, String initialContextFactory, String providerUrl, String connfactory, String destinationName, boolean useAuth, String securityPrincipal, String securityCredentials, boolean staticDestination, boolean useNonPersistentMessages) throws javax.jms.JMSException, NamingException
useProps
- true if a jndi.properties file is to be usedinitialContextFactory
- the (ignored if useProps is true)providerUrl
- (ignored if useProps is true)connfactory
- destinationName
- useAuth
- (ignored if useProps is true)securityPrincipal
- (ignored if useProps is true)securityCredentials
- (ignored if useProps is true)staticDestination
- true is the destination is not to change between loopsuseNonPersistentMessages
- Flag Delivery Mode as Non persistent if true
javax.jms.JMSException
- if the context could not be initialised, or there was some other error
NamingException
Method Detail |
---|
public javax.jms.TextMessage publish(String text) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.TextMessage publish(String text, String destinationName) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.TextMessage publish(String text, String destinationName, Map<String,String> properties) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.ObjectMessage publish(Serializable contents) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.ObjectMessage publish(Serializable contents, String destinationName) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.ObjectMessage publish(Serializable contents, String destinationName, Map<String,String> properties) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.MapMessage publish(Map<String,Object> map) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.MapMessage publish(Map<String,Object> map, String destinationName) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public javax.jms.MapMessage publish(Map<String,Object> map, String destinationName, Map<String,String> properties) throws javax.jms.JMSException, NamingException
javax.jms.JMSException
NamingException
public void close()
close
in interface Closeable
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |