|
JTR 5.0 API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjtr.config.jms.JMSConnection
public class JMSConnection
This class is the object oriented representation of the
connection element you can find inside the
jtr.xml configuration file.
It is logically mapped to a javax.jms.Connection. A
JMSConnection holds one or more JMSSessions.
| Field Summary | |
|---|---|
static java.lang.String |
QUEUE_CONNECTION
|
static java.lang.String |
TOPIC_CONNECTION
|
static java.lang.String |
XA_QUEUE_CONNECTION
|
static java.lang.String |
XA_TOPIC_CONNECTION
|
| Constructor Summary | |
|---|---|
JMSConnection()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addSession(JMSSession session)
Every connection can have multiple sessions. |
java.lang.String |
getClientId()
Get the clientID for the current javax.jms.Connection. |
java.lang.String |
getPassword()
Get the password required to establish this javax.jms.Connection. |
java.lang.String |
getProperty()
Get the name of the property of the concrete runner that will hold the actual Connection instance. |
java.util.Collection<JMSSession> |
getSessions()
Returns all the configured sessions. |
java.lang.String |
getType()
Get the type of the connection. |
java.lang.String |
getUserName()
Get the user name required to establish this javax.jms.Connection. |
static boolean |
isQueueConnection(JMSConnection jmsConn)
States whether the given JMSConnection is a queue
connection or not |
boolean |
isShared()
Is this javax.jms.Connection shareable? |
static boolean |
isTopicConnection(JMSConnection jmsConn)
States whether the given JMSConnection is a topic
connection or not |
static boolean |
isXaQueueConnection(JMSConnection jmsConn)
States whether the given JMSConnection is an XA queue
connection or not |
static boolean |
isXaTopicConnection(JMSConnection jmsConn)
States whether the given JMSConnection is an XA topic
connection or not |
void |
setClientId(java.lang.String cid)
Set the clientID for the current javax.jms.Connection. |
void |
setPassword(java.lang.String passw)
Set the password required to establish this javax.jms.Connection. |
void |
setProperty(java.lang.String property)
Set the name of the property of the concrete runner that will hold the actual Connection instance. |
void |
setShared(boolean val)
Set whether this javax.jms.Connection is shareable or not. |
void |
setType(java.lang.String type)
Set the type of the connection. |
void |
setUserName(java.lang.String name)
Set the user name required to establish this javax.jms.Connection. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String QUEUE_CONNECTION
public static final java.lang.String TOPIC_CONNECTION
public static final java.lang.String XA_QUEUE_CONNECTION
public static final java.lang.String XA_TOPIC_CONNECTION
| Constructor Detail |
|---|
public JMSConnection()
| Method Detail |
|---|
public void setType(java.lang.String type)
queue | topic.
type - One of the following two values: queue | topicpublic java.lang.String getType()
queue | topic.
queue | topicpublic void setProperty(java.lang.String property)
Connection instance.
property - The propertypublic java.lang.String getProperty()
Connection instance.
public void setUserName(java.lang.String name)
javax.jms.Connection.
name - The user namepublic java.lang.String getUserName()
javax.jms.Connection.
public void setPassword(java.lang.String passw)
javax.jms.Connection.
passw - The passwordpublic java.lang.String getPassword()
javax.jms.Connection.
public void setClientId(java.lang.String cid)
javax.jms.Connection.
cid - The clientIDpublic java.lang.String getClientId()
javax.jms.Connection.
public void setShared(boolean val)
javax.jms.Connection is shareable or not.
val - booleanpublic boolean isShared()
javax.jms.Connection shareable?
public void addSession(JMSSession session)
session - The sessionpublic java.util.Collection<JMSSession> getSessions()
Collection of JMSSessionspublic static boolean isQueueConnection(JMSConnection jmsConn)
JMSConnection is a queue
connection or not
jmsConn - The JMSConnection to be analized
true iff it is a queue connectionpublic static boolean isTopicConnection(JMSConnection jmsConn)
JMSConnection is a topic
connection or not
jmsConn - The JMSConnection to be analized
true iff it is a topic connectionpublic static boolean isXaQueueConnection(JMSConnection jmsConn)
JMSConnection is an XA queue
connection or not
jmsConn - The JMSConnection to be analized
true iff it is an XA queue connectionpublic static boolean isXaTopicConnection(JMSConnection jmsConn)
JMSConnection is an XA topic
connection or not
jmsConn - The JMSConnection to be analized
true iff it is an XA topic connectionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
The JTR Project is licensed under GPL version 2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||