|
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.MQe | +--com.ibm.mqe.MQeFields | +--com.ibm.mqe.MQeMsgObject | +--com.ibm.mqe.MQeAdminMsg | +--com.ibm.mqe.mqbridge.MQeBridgeResourceAdminMsg | +--com.ibm.mqe.mqbridge.MQePersistentBridgeResourceAdminMsg | +--com.ibm.mqe.mqbridge.MQeMQQMgrProxyAdminMsg
This message is created by the application doing the administration and is used to encapsulate an administration command that acts on the MQeMQQMgrProxy object.
Field Summary |
Fields inherited from class com.ibm.mqe.MQeAdminMsg |
Action_AddAlias, Action_Create, Action_Delete, Action_Inquire, Action_InquireAll, Action_RemoveAlias, Action_Start, Action_Stop, Action_Unknown, Action_Update, Admin_Action, Admin_Class, Admin_Errors, Admin_MaxAttempts, Admin_Name, Admin_Parms, Admin_RC, Admin_Reason, Admin_TargetQMgr, RC_Fail, RC_Mixed, RC_Success |
Fields inherited from class com.ibm.mqe.MQeFields |
ArraySeparator, TypeArrayElements, TypeAscii, TypeBoolean, TypeByte, TypeDouble, TypeFields, TypeFloat, TypeInt, TypeLong, TypeShort, TypeUnicode, TypeUnTyped |
Constructor Summary | |
MQeMQQMgrProxyAdminMsg()
This simple constructor creates and initializes a default MQeMQQMgrProxyAdminMsg. |
|
MQeMQQMgrProxyAdminMsg(java.lang.String bridgeName,
java.lang.String nameOfMQQMgrProxy,
boolean affectChildren)
This constructor includes the WebSphere MQ Everyplace queue manager name, the name of the Websphere MQ-bridge, and the name of the proxy. |
Method Summary | |
MQeFields |
characteristics()
Creates an WebSphere MQ Everyplace fields object containing all the fields required for an administration message of this type. |
java.lang.String |
getBridgeName()
Gets the bridge name from the administered object. |
java.lang.String |
getMQQMgrProxyName()
Gets the Websphere MQ queue manager proxy name from the administered object. |
java.lang.String |
getName()
Gets the name of the administered object to be created. |
void |
putBridgeName(java.lang.String bridgeName)
Puts the bridgeName field in an MQeField in the MQeFields administration message object. |
void |
putMQQMgrProxyName(java.lang.String mqQMgrProxyName)
Puts the Websphere MQ queue manager proxy name in a field in the MQeFields administration message object. |
void |
setName(java.lang.String bridgeName,
java.lang.String mqQMgrProxyName)
Puts the name information in a field in the MQeFields administration message object. |
Methods inherited from class com.ibm.mqe.mqbridge.MQePersistentBridgeResourceAdminMsg |
create, delete |
Methods inherited from class com.ibm.mqe.mqbridge.MQeBridgeResourceAdminMsg |
start, start, start, stop, stop |
Methods inherited from class com.ibm.mqe.MQeAdminMsg |
delete, duplicate, getAction, getErrorFields, getFieldInError, getInputFields, getMaxAttempts, getOutputFields, getRC, getReason, getTargetQMgr, inquire, inquireAll, setAction, setMaxAttempts, setName, setTargetQMgr, update |
Methods inherited from class com.ibm.mqe.MQeMsgObject |
getMsgUIDFields, getOriginQMgr, getTimeStamp, putOriginQMgr, resetMsgUIDFields, unwrapMsgObject |
Methods inherited from class com.ibm.mqe.MQe |
abbreviate, alias, asciiToByte, byteToAscii, byteToHex, byteToHex, byteToInt, byteToLong, byteToShort, byteToUnicode, fileSeparator, getEventLogHandler, hexToAscii, hexToByte, intToByte, isCLDC, loadClass, loadObject, log, setEventLogHandler, setLoader, sliceByteArray, type, unicodeToByte, uniqueValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MQeMQQMgrProxyAdminMsg() throws java.lang.Exception
This simple constructor creates and initializes a default MQeMQQMgrProxyAdminMsg.
java.lang.Exception
MQeMQQMgrProxyAdminMsg msg = new MQeMQQMgrProxyAdminMsg();
public MQeMQQMgrProxyAdminMsg(java.lang.String bridgeName, java.lang.String nameOfMQQMgrProxy, boolean affectChildren) throws java.lang.Exception
This constructor includes the WebSphere MQ Everyplace queue manager name, the name of the Websphere MQ-bridge, and the name of the proxy.
affectChildren
- A boolean flag indicating whether or not this
administration message affects the children of the MQeMQBridges object.
true means it is allowed to affect the children, false indicates that the children should not be affected.
java.lang.Exception
- If any fields could not be set or if the
Websphere MQ queue manager name is invalid.MQeMQQMgrProxyAdminMsg msg; msg = new MQeMQQMgrProxyAdminMsg("MQBridgeV100", "lizzieQM", true);
Method Detail |
public void setName(java.lang.String bridgeName, java.lang.String mqQMgrProxyName) throws java.lang.Exception
Puts the name information in a field in the MQeFields administration message object.
java.lang.Exception
- If any fields could not be set or if the
Websphere MQ queue manager name is invalid.MQeMQQMgrProxyAdminMsg msg = new MQeMQQMgrProxyAdminMsg(); msg.setName("MQBridgeV100", "lizzieQM");
public void putMQQMgrProxyName(java.lang.String mqQMgrProxyName) throws java.lang.Exception
Puts the Websphere MQ queue manager proxy name in a field in the MQeFields administration message object.
java.lang.Exception
- If any fields could not be set or if the
Websphere MQ queue manager name is invalid.MQeMQQMgrProxyAdminMsg msg = new MQeMQQMgrProxyAdminMsg(); msg.putMQQMgrProxyName("lizzieQM");
public java.lang.String getMQQMgrProxyName() throws java.lang.Exception
Gets the Websphere MQ queue manager proxy name from the administered object.
This method also checks the field for validity. It can be issued against an MQeMQQMgrProxyAdminMsg or one of its descendants.
java.lang.Exception
- If the get fails.MQeMQQMgrProxyAdminMsg msg; msg = new MQeMQQMgrProxyAdminMsg("MQBridgeV100", "lizzieQM", true); String proxyName = msg.getMQQMgrProxyName(); return proxyName;
public void putBridgeName(java.lang.String bridgeName) throws java.lang.Exception
Puts the bridgeName field in an MQeField in the MQeFields administration message object.
A helper function to add the bridge name to the admin message.
bridgeName
- A String containing the bridgeName.
java.lang.Exception
- If the set operation fails.MQeMQBridgeAdminMsg msg = new MQeMQBridgeAdminMsg(); msg.putBridgeName("MQBridgeV100");
public java.lang.String getBridgeName() throws java.lang.Exception
Gets the bridge name from the administered object.
java.lang.Exception
- if the get fails.MQeMQBridgeAdminMsg msg = new MQeMQBridgeAdminMsg("MQBridgeV100", true); String bridgeName = msg.getBridgeName(); return bridgeName;
public MQeFields characteristics() throws java.lang.Exception
Creates an WebSphere MQ Everyplace fields object containing all the fields required for an administration message of this type.
Returns a fields object containing the characteristics of the resource.
The complete set of field names and types for the resource can be determined
from the resulting fields object.
Overrides characteristics() in class
MQeMQBridgeAdminMsg
.
characteristics
in class MQeBridgeResourceAdminMsg
MQeFields
object containing the characteristics
of the resource.
java.lang.Exception
- If the MQeFields
object cannot
be created.MQeMQQMgrProxyAdminMsg msg; msg = new MQeMQQMgrProxyAdminMsg("MQBridgeV100", "lizzieQM", true); MQeFields proxyChars = msg.characteristics(); return proxyChars;
public java.lang.String getName()
Gets the name of the administered object to be created.
Returns the name of the current administration object. When issued against an object of this class it is identical to getMQQMgrProxyName().
Overrides getName() in class
MQeMQBridgeAdminMsg
.
getName
in class MQeBridgeResourceAdminMsg
none
MQeMQQMgrProxyAdminMsg msg; String proxyName = null; try { msg = new MQeMQQMgrProxyAdminMsg("MQBridgeV100", "lizzieQM", true); proxyName = msg.getName(); } catch (Exception e) { System.err.println("Failure ! " + e.toString()); } return proxyName;
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |