com.ibm.mq.jms
Class MQConnectionMetaData
- java.lang.Object
-
- com.ibm.mq.jms.MQRoot
-
- com.ibm.mq.jms.MQConnectionMetaData
-
- All Implemented Interfaces:
- JmsConnectionMetaData, JmsPropertyContext, JmsReadablePropertyContext, java.io.Serializable, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.ConnectionMetaData
public class MQConnectionMetaData extends MQRoot implements javax.jms.ConnectionMetaData, JmsConnectionMetaData
MQConnectionMetaData provides information that describes the connection. Instance of this object should be obtained from the connection, and not created directly. Use the com.ibm.msg.client.jms.Version API to obtain static version information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MQConnectionMetaData()Deprecated.Please obtain the ConnectionMetaData from the Connection in question or use the Version API to obtain static version information Constructor which uses bindings connection.MQConnectionMetaData(int conntype)Deprecated.Please obtain the ConnectionMetaData from the Connection in question or use the Version API to obtain static version information Constructor which permits a choice of connection types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleangetBooleanProperty(java.lang.String name)getBooleanPropery override for values not stored as propertiesintgetJMSMajorVersion()Gets the JMS major version number.intgetJMSMinorVersion()Gets the JMS minor version number.java.lang.StringgetJMSProviderName()Gets the JMS provider name.java.lang.StringgetJMSVersion()Gets the JMS API version.java.util.Enumeration<?>getJMSXPropertyNames()Gets an enumeration of the JMSX property names.intgetProviderMajorVersion()Unless the provider version has been defined by the user this method gets the JMS provider version's major number for the mode of operation with the following values: 8 - normal mode 7 - normal mode with restrictions 6 - migration modeintgetProviderMinorVersion()Gets the JMS provider minor version number.java.lang.StringgetProviderVersion()Gets the JMS provider version.java.lang.StringtoString()Returns a string representation of the object.-
Methods inherited from class com.ibm.mq.jms.MQRoot
clear, containsKey, containsValue, entrySet, equals, get, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, size, values
-
Methods inherited from interface com.ibm.msg.client.jms.JmsPropertyContext
setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toJson
-
Methods inherited from interface com.ibm.msg.client.jms.JmsReadablePropertyContext
getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, stringifyMe
-
-
-
-
Constructor Detail
-
MQConnectionMetaData
public MQConnectionMetaData()
Deprecated. Please obtain the ConnectionMetaData from the Connection in question or use the Version API to obtain static version information Constructor which uses bindings connection.
-
MQConnectionMetaData
public MQConnectionMetaData(int conntype)
Deprecated. Please obtain the ConnectionMetaData from the Connection in question or use the Version API to obtain static version information Constructor which permits a choice of connection types.- Parameters:
conntype- connection type. Valid types are:
-
-
Method Detail
-
getJMSMajorVersion
public int getJMSMajorVersion()
Gets the JMS major version number.- Specified by:
getJMSMajorVersionin interfacejavax.jms.ConnectionMetaData- Returns:
- the JMS major version number
-
getJMSMinorVersion
public int getJMSMinorVersion()
Gets the JMS minor version number.- Specified by:
getJMSMinorVersionin interfacejavax.jms.ConnectionMetaData- Returns:
- the JMS minor version number
-
getJMSProviderName
public java.lang.String getJMSProviderName()
Gets the JMS provider name.- Specified by:
getJMSProviderNamein interfacejavax.jms.ConnectionMetaData- Returns:
- the JMS provider name
-
getJMSVersion
public java.lang.String getJMSVersion()
Gets the JMS API version.- Specified by:
getJMSVersionin interfacejavax.jms.ConnectionMetaData- Returns:
- the JMS API version
-
getJMSXPropertyNames
public java.util.Enumeration<?> getJMSXPropertyNames() throws javax.jms.JMSExceptionGets an enumeration of the JMSX property names.- Specified by:
getJMSXPropertyNamesin interfacejavax.jms.ConnectionMetaData- Returns:
- an enumeration of the JMSX property names
- Throws:
javax.jms.JMSException
-
getProviderMajorVersion
public int getProviderMajorVersion()
Unless the provider version has been defined by the user this method gets the JMS provider version's major number for the mode of operation with the following values:- 8 - normal mode
- 7 - normal mode with restrictions
- 6 - migration mode
- Specified by:
getProviderMajorVersionin interfacejavax.jms.ConnectionMetaData- Returns:
- the JMS provider version's major number.
-
getProviderMinorVersion
public int getProviderMinorVersion()
Gets the JMS provider minor version number.- Specified by:
getProviderMinorVersionin interfacejavax.jms.ConnectionMetaData- Returns:
- the JMS provider minor version number.
-
getProviderVersion
public java.lang.String getProviderVersion()
Gets the JMS provider version.- Specified by:
getProviderVersionin interfacejavax.jms.ConnectionMetaData- Returns:
- the JMS provider version.
-
toString
public java.lang.String toString()
Returns a string representation of the object.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of the object.
-
getBooleanProperty
public boolean getBooleanProperty(java.lang.String name) throws javax.jms.JMSExceptiongetBooleanPropery override for values not stored as properties- Specified by:
getBooleanPropertyin interfaceJmsReadablePropertyContext- Overrides:
getBooleanPropertyin classMQRoot- Parameters:
name- of property- Returns:
trueorfalse- Throws:
javax.jms.JMSException
-
-