|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.MQeProperties
This class provides an implementation of the MQePropertyProvider interface It is used to pass parameters into the system, where the nature of the parameters is unknown to intermediate classes in MQe. An example of this is when passing parameters to the adapter to be used by a listener. The parameter set contains different parameters for a TCP/IP adapter to those for an infra red adapter. The MQeAdministrator interface should not need to know about these differences, and so the property provider is used as a generalised parameter passing mechanism. Parameters are passed as name/value pairs, where the name and the value are both represented as instances of java.lang.String. Property values are retrieved by name.
Field Summary | |
static short[] |
version
MQe Version. |
Constructor Summary | |
MQeProperties()
Default constructor. |
|
MQeProperties(MQeFields mqeFields)
Construct from MQe fields. |
Method Summary | |
static java.lang.String |
getGlobalProperty(java.lang.String key)
Retrieve a value from the MQe global property table. |
static java.util.Enumeration |
getGlobalPropertyNames()
Retreive an enumeration of the names of the properties stored in the receiver. |
java.lang.String |
getProperty(java.lang.String key)
Retrieve a value from the receiver. |
java.util.Enumeration |
getPropertyNames()
Retreive an enumeration of the names of the properties stored in the receiver. |
static void |
setGlobalProperty(java.lang.String key,
java.lang.String value)
Set the value of a MQe global property. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Set the value of a property. |
MQeFields |
toMQeFields()
Convert the receivers specific properties (not the global ones) to an MQeFields representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
Constructor Detail |
public MQeProperties()
public MQeProperties(MQeFields mqeFields)
Method Detail |
public static final java.lang.String getGlobalProperty(java.lang.String key)
key
- (java.lang.String) the name of the property value to retrieve
public static final void setGlobalProperty(java.lang.String key, java.lang.String value)
key
- (java.lang.String) the name of the property value to setvalue
- (java.lang.String) the property value to set
public static final java.util.Enumeration getGlobalPropertyNames()
public final java.lang.String getProperty(java.lang.String key)
getProperty
in interface MQePropertyProvider
key
- (java.lang.String) the name of the property value to retrieve
If no property has been specifically set in the receiver, then the value will
be retrieved from the MQe global properties.
public final void setProperty(java.lang.String key, java.lang.String value)
key
- (java.lang.String) the name of the property value to setvalue
- (java.lang.String) the property value to set
public final java.util.Enumeration getPropertyNames()
public final MQeFields toMQeFields()
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |