com.ibm.mq.exits
Class MQCD
- java.lang.Object
-
- com.ibm.mq.jmqi.JmqiObject
-
- com.ibm.mq.jmqi.internal.AbstractMqiStructure
-
- com.ibm.mq.exits.MQCD
-
- All Implemented Interfaces:
- com.ibm.mq.jmqi.internal.MqiStructure, java.lang.Cloneable
public class MQCD extends com.ibm.mq.jmqi.internal.AbstractMqiStructure implements java.lang.Cloneable
MQCD structure
-
-
Constructor Summary
Constructors Constructor and Description MQCD()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.Object
clone()
Clone this object.boolean
equals(java.lang.Object x)
Compare two client MQCD structures to determine if they point at the same requested destination, with the same client connection parameters.int
getBatchDataLimit()
int
getBatchHeartbeat()
Get the batch heartbeatint
getBatchInterval()
Get the batch intervalint
getBatchSize()
Get the batch sizejava.lang.String
getCertificateLabel()
int
getChannelMonitoring()
Get the channel monitoring valuejava.lang.String
getChannelName()
Get the channel nameint
getChannelStatistics()
get the channel statisticsint
getChannelType()
Get the channel typeint
getClientChannelWeight()
Get the client channel weightint
getClustersDefined()
Get the clusters defined valueint
getClwlChannelPriority()
get the clwlChannelPriority valueint
getClwlChannelRank()
Get the clwlChannelRank valueint
getClwlChannelWeight()
get the clwlChannelWeight valueint
getConnectionAffinity()
Get connection affinityjava.lang.String
getConnectionName()
Get the connection nameint
getCurrentVersion()
int
getDataConversion()
Get the data conversion valueint
getDefReconnect()
java.lang.String
getDesc()
Get the descriptionint
getDiscInterval()
Get the Discinterval valueint
getExitDataLength()
Get the exitint
getExitNameLength()
Get the exitNameLengthint
getFirstVersion()
int[]
getHdrCompList()
Get the hdrCompListint
getHeartbeatInterval()
Get the heartbeat intervalint
getKeepAliveInterval()
Get the keepAlive intervaljava.lang.String
getLocalAddress()
Get the local addressint
getLongRetryCount()
Get the long retry countint
getLongRetryInterval()
Get the long retry intervalint
getMaxInstances()
get maxInstancesint
getMaxInstancesPerClient()
get maxInstances per clientint
getMaxMsgLength()
Get the maximum message lengthjava.lang.String
getMcaName()
Get the MCA namebyte[]
getMcaSecurityId()
Get the MCA SecurityIdint
getMcaType()
Get the MCA typejava.lang.String
getMcaUserIdentifier()
Get the MCA UserIdentifierjava.lang.String
getModeName()
Get the mode nameint[]
getMsgCompList()
Get the list of supported Message Compressorsjava.lang.String
getMsgExit()
Get the Message exitjava.lang.String
getMsgExitPtr()
Get the message exit pointerint
getMsgExitsDefined()
Get the msgExitsDefined fieldint
getMsgRetryCount()
Get the Message retry countjava.lang.String
getMsgRetryExit()
Get the msgRetryExit fieldint
getMsgRetryInterval()
Get the message retry intervaljava.lang.String
getMsgRetryUserData()
Get the msgRetryUserDatajava.lang.String
getMsgUserData()
Get the msgUserDatajava.lang.String
getMsgUserDataPtr()
Get the msgUserDataPtrint
getNetworkPriority()
Get the network priorityint
getNonPersistentMsgSpeed()
Get the msgRetryUserDatajava.lang.String
getPassword()
Get the passwordint
getPropertyControl()
Get propertyControlint
getPutAuthority()
Get the putAuthorityjava.lang.String
getQMgrName()
Get the Queue Manager namejava.lang.String
getReceiveExit()
Get the receiveExitjava.lang.String
getReceiveExitPtr()
Get the receiveExitPtrint
getReceiveExitsDefined()
Get the receiveExitsDefined countjava.lang.String
getReceiveUserData()
Get the receiveUserDatajava.lang.String
getReceiveUserDataPtr()
get the receiveUserDataPtrjava.lang.String
getRemotePassword()
Get the remote passwordbyte[]
getRemoteSecurityId()
Get the remoteSecurityIdjava.lang.String
getRemoteUserIdentifier()
Get the remoteUserIdentifierjava.lang.String
getSecurityExit()
Get the securityExitjava.lang.String
getSecurityUserData()
Get the securityUserDatajava.lang.String
getSendExit()
Get the sendExitjava.lang.String
getSendExitPtr()
Get the sendExitPtrint
getSendExitsDefined()
Get the sendExitsDefined countjava.lang.String
getSendUserData()
Get the sendUserDatajava.lang.String
getSendUserDataPtr()
Get the sendUserDataPtrint
getSeqNumberWrap()
Get the sequence number wrap valueint
getSharingConversations()
Get the sharingConversations valueint
getShortRetryCount()
Get the short retry countint
getShortRetryInterval()
Get the short retry intervalstatic int
getSizeV11(int ptrSize)
static int
getSizeV12(int ptrSize)
int
getSPLProtection()
java.lang.String
getSslCipherSpec()
Get the ssl cipher specint
getSslClientAuth()
Get the sslClientAuth valuejava.lang.String
getSslPeerName()
Get the ssl peer nameint
getStrucLength()
Deprecated.int[]
getSupportedMsgCompList()
Get the filtered list of supported Message Compressorsjava.lang.String
getTpName()
Get the tp nameint
getTransportType()
Get the transport typejava.lang.String
getUserIdentifier()
Get the user identifierint
getVersion()
Get the structure versionjava.lang.String
getXmitQName()
Get the transmit queue nameint
hashCode()
Generate a hashcode.void
setBatchDataLimit(int batchDataLimit)
void
setCertificateLabel(java.lang.String certificateLabel)
void
setSPLProtection(int splProtection)
void
setupForTest(int ptrSize)
-
-
-
Method Detail
-
getSizeV11
public static int getSizeV11(int ptrSize)
- Parameters:
ptrSize
-- Returns:
- The size of the Version 11 fields, including the end-of-structure alignment
-
getSizeV12
public static int getSizeV12(int ptrSize)
- Parameters:
ptrSize
-- Returns:
- The size of the Version 12 fields, including the end-of-structure alignment
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Clone this object. This method clones only those fields required when comparing two client MQCD structures to determine if they point at the same requested destination. e.g. newMQCD.equals(oldMQCD) == true Need to take a copy of the byte array data, otherwise the cloned object will reference the same byte array. Taking copies of the data means that if ones is updated, the other is untouched. This is useful when the MQCD is cloned for the negotiated channel in the RemoteConnection.- Overrides:
clone
in classjava.lang.Object
- Returns:
- a clone of the original object
- Throws:
java.lang.CloneNotSupportedException
-
hashCode
public int hashCode()
Generate a hashcode. This hashcode is unique based upon the fields that are compared when comparing two client MQCD structures to determine if they point at the same requested destination.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashcode
- See Also:
equals(Object)
-
equals
public boolean equals(java.lang.Object x)
Compare two client MQCD structures to determine if they point at the same requested destination, with the same client connection parameters. This is intended specifically to determine if an existing connection is suitable for a new conversation to be multiplexed over. Certain fields - maxMsgLength, heartbeatInterval and sharingConversations - are excluded as they don't preclude multiplexing- Overrides:
equals
in classjava.lang.Object
- Parameters:
x
- the MQCD object against which to compare- Returns:
- 'true' if the objects are equal
-
getBatchHeartbeat
public int getBatchHeartbeat()
Get the batch heartbeat- Returns:
- the batchHeartbeat
-
getBatchInterval
public int getBatchInterval()
Get the batch interval- Returns:
- batch interval
-
getBatchSize
public int getBatchSize()
Get the batch size- Returns:
- the batch size
-
getChannelMonitoring
public int getChannelMonitoring()
Get the channel monitoring value- Returns:
- channel monitoring
-
getChannelName
public java.lang.String getChannelName()
Get the channel name- Returns:
- channel name
-
getChannelStatistics
public int getChannelStatistics()
get the channel statistics- Returns:
- channel statistics
-
getChannelType
public int getChannelType()
Get the channel type- Returns:
- channel type
-
getClustersDefined
public int getClustersDefined()
Get the clusters defined value- Returns:
- clusters defined value
-
getClwlChannelPriority
public int getClwlChannelPriority()
get the clwlChannelPriority value- Returns:
- the clwlChannelPriority
-
getClwlChannelRank
public int getClwlChannelRank()
Get the clwlChannelRank value- Returns:
- the clwlChannelRank
-
getClwlChannelWeight
public int getClwlChannelWeight()
get the clwlChannelWeight value- Returns:
- the clwlChannelWeight
-
getConnectionName
public java.lang.String getConnectionName()
Get the connection name- Returns:
- connection name
-
getDataConversion
public int getDataConversion()
Get the data conversion value- Returns:
- the data conversion
-
getDefReconnect
public int getDefReconnect()
- Returns:
- the defReconnect
-
getDesc
public java.lang.String getDesc()
Get the description- Returns:
- the description
-
getDiscInterval
public int getDiscInterval()
Get the Discinterval value- Returns:
- the discInterval
-
getHdrCompList
public int[] getHdrCompList()
Get the hdrCompList- Returns:
- the hdrCompList
-
getHeartbeatInterval
public int getHeartbeatInterval()
Get the heartbeat interval- Returns:
- heartbeat interval
-
getKeepAliveInterval
public int getKeepAliveInterval()
Get the keepAlive interval- Returns:
- keepAlive Interval
-
getLocalAddress
public java.lang.String getLocalAddress()
Get the local address- Returns:
- the local address
-
getLongRetryCount
public int getLongRetryCount()
Get the long retry count- Returns:
- long retry count
-
getLongRetryInterval
public int getLongRetryInterval()
Get the long retry interval- Returns:
- long retry interval
-
getMaxMsgLength
public int getMaxMsgLength()
Get the maximum message length- Returns:
- maximum message length
-
getMcaName
public java.lang.String getMcaName()
Get the MCA name- Returns:
- MCA name
-
getMcaSecurityId
public byte[] getMcaSecurityId()
Get the MCA SecurityId- Returns:
- MCA SecurityId
-
getMcaType
public int getMcaType()
Get the MCA type- Returns:
- MCA type
-
getMcaUserIdentifier
public java.lang.String getMcaUserIdentifier()
Get the MCA UserIdentifier- Returns:
- MCA UserIdentifier
-
getModeName
public java.lang.String getModeName()
Get the mode name- Returns:
- mode name
-
getSupportedMsgCompList
public int[] getSupportedMsgCompList()
Get the filtered list of supported Message Compressors- Returns:
- tmsgCompList
-
getMsgCompList
public int[] getMsgCompList()
Get the list of supported Message Compressors- Returns:
- tmsgCompList
-
getMsgExitsDefined
public int getMsgExitsDefined()
Get the msgExitsDefined field- Returns:
- msgExitsDefined
-
getMsgRetryCount
public int getMsgRetryCount()
Get the Message retry count- Returns:
- msgRetryCount
-
getMsgRetryExit
public java.lang.String getMsgRetryExit()
Get the msgRetryExit field- Returns:
- msgRetryExit
-
getMsgRetryInterval
public int getMsgRetryInterval()
Get the message retry interval- Returns:
- msgRetryInterval
-
getMsgRetryUserData
public java.lang.String getMsgRetryUserData()
Get the msgRetryUserData- Returns:
- msgRetryUserData
-
getNetworkPriority
public int getNetworkPriority()
Get the network priority- Returns:
- networkPriority
-
getNonPersistentMsgSpeed
public int getNonPersistentMsgSpeed()
Get the msgRetryUserData- Returns:
- msgRetryUserData
-
getPassword
public java.lang.String getPassword()
Get the password- Returns:
- password
-
getPutAuthority
public int getPutAuthority()
Get the putAuthority- Returns:
- the putAuthority
-
getQMgrName
public java.lang.String getQMgrName()
Get the Queue Manager name- Returns:
- qMgrName
-
getReceiveExitsDefined
public int getReceiveExitsDefined()
Get the receiveExitsDefined count- Returns:
- the receiveExitsDefined
-
getRemotePassword
public java.lang.String getRemotePassword()
Get the remote password- Returns:
- remotePassword
-
getRemoteSecurityId
public byte[] getRemoteSecurityId()
Get the remoteSecurityId- Returns:
- remoteSecurityId
-
getRemoteUserIdentifier
public java.lang.String getRemoteUserIdentifier()
Get the remoteUserIdentifier- Returns:
- remoteUserIdentifier
-
getSecurityExit
public java.lang.String getSecurityExit()
Get the securityExit- Returns:
- securityExit
-
getSecurityUserData
public java.lang.String getSecurityUserData()
Get the securityUserData- Returns:
- securityUserData
-
getSendExitsDefined
public int getSendExitsDefined()
Get the sendExitsDefined count- Returns:
- the sendExitsDefined
-
getSeqNumberWrap
public int getSeqNumberWrap()
Get the sequence number wrap value- Returns:
- the seqNumberWrap
-
getShortRetryCount
public int getShortRetryCount()
Get the short retry count- Returns:
- the shortRetryCount
-
getShortRetryInterval
public int getShortRetryInterval()
Get the short retry interval- Returns:
- the shortRetryInterval
-
getSPLProtection
public int getSPLProtection()
- Parameters:
shortRetryInterval
-- exclude
- Set the shortRetryInterval
-
setSPLProtection
public void setSPLProtection(int splProtection)
-
getSslCipherSpec
public java.lang.String getSslCipherSpec()
Get the ssl cipher spec- Returns:
- the sslCipherSpec
-
getSslClientAuth
public int getSslClientAuth()
Get the sslClientAuth value- Returns:
- the sslClientAuth
-
getSslPeerName
public java.lang.String getSslPeerName()
Get the ssl peer name- Returns:
- the sslPeerName
-
getStrucLength
public int getStrucLength()
Deprecated.Get the structure length- Returns:
- strucLength
-
getTpName
public java.lang.String getTpName()
Get the tp name- Returns:
- the tpName
-
getTransportType
public int getTransportType()
Get the transport type- Returns:
- the transportType
-
getUserIdentifier
public java.lang.String getUserIdentifier()
Get the user identifier- Returns:
- the userIdentifier
-
getVersion
public int getVersion()
Get the structure version- Specified by:
getVersion
in interfacecom.ibm.mq.jmqi.internal.MqiStructure
- Overrides:
getVersion
in classcom.ibm.mq.jmqi.internal.AbstractMqiStructure
- Returns:
- the version
-
getXmitQName
public java.lang.String getXmitQName()
Get the transmit queue name- Returns:
- thexmitQName
-
getMsgExit
public java.lang.String getMsgExit()
Get the Message exit- Returns:
- the msgExit
-
getMsgExitPtr
public java.lang.String getMsgExitPtr()
Get the message exit pointer- Returns:
- the msgExitPtr
-
getMsgUserData
public java.lang.String getMsgUserData()
Get the msgUserData- Returns:
- the msgUserData
-
getMsgUserDataPtr
public java.lang.String getMsgUserDataPtr()
Get the msgUserDataPtr- Returns:
- the msgUserDataPtr
-
getReceiveExit
public java.lang.String getReceiveExit()
Get the receiveExit- Returns:
- the receiveExit
-
getReceiveExitPtr
public java.lang.String getReceiveExitPtr()
Get the receiveExitPtr- Returns:
- the receiveExitPtr
-
getReceiveUserData
public java.lang.String getReceiveUserData()
Get the receiveUserData- Returns:
- the receiveUserData
-
getReceiveUserDataPtr
public java.lang.String getReceiveUserDataPtr()
get the receiveUserDataPtr- Returns:
- the receiveUserDataPtr
-
getSendExit
public java.lang.String getSendExit()
Get the sendExit- Returns:
- the sendExit
-
getSendExitPtr
public java.lang.String getSendExitPtr()
Get the sendExitPtr- Returns:
- the sendExitPtr
-
getSendUserData
public java.lang.String getSendUserData()
Get the sendUserData- Returns:
- the sendUserData
-
getSendUserDataPtr
public java.lang.String getSendUserDataPtr()
Get the sendUserDataPtr- Returns:
- the sendUserDataPtr
-
getExitDataLength
public int getExitDataLength()
Get the exit- Returns:
- the exitDataLength
-
getExitNameLength
public int getExitNameLength()
Get the exitNameLength- Returns:
- the exitNameLength
-
getSharingConversations
public int getSharingConversations()
Get the sharingConversations value- Returns:
- Returns the sharingConversations.
-
getClientChannelWeight
public int getClientChannelWeight()
Get the client channel weight- Returns:
- clientChannelWeight
-
getConnectionAffinity
public int getConnectionAffinity()
Get connection affinity- Returns:
- connectionAffinity
-
getBatchDataLimit
public int getBatchDataLimit()
- Returns:
- Get the BatchDataLimit
-
setBatchDataLimit
public void setBatchDataLimit(int batchDataLimit)
- Parameters:
batchDataLimit
-
-
getMaxInstances
public int getMaxInstances()
get maxInstances- Returns:
- maxInstances
-
getMaxInstancesPerClient
public int getMaxInstancesPerClient()
get maxInstances per client- Returns:
- maxInstances
-
getPropertyControl
public int getPropertyControl()
Get propertyControl- Returns:
- propertyControl
-
getCertificateLabel
public java.lang.String getCertificateLabel()
- Returns:
- certificateLabel (already trimmed, and ""->null)
-
setCertificateLabel
public void setCertificateLabel(java.lang.String certificateLabel)
- Parameters:
certificateLabel
-
-
setupForTest
public void setupForTest(int ptrSize)
- Specified by:
setupForTest
in interfacecom.ibm.mq.jmqi.internal.MqiStructure
- Overrides:
setupForTest
in classcom.ibm.mq.jmqi.internal.AbstractMqiStructure
- Parameters:
ptrSize
-
-
getFirstVersion
public int getFirstVersion()
- Specified by:
getFirstVersion
in interfacecom.ibm.mq.jmqi.internal.MqiStructure
- Overrides:
getFirstVersion
in classcom.ibm.mq.jmqi.internal.AbstractMqiStructure
- Returns:
- the first version
-
getCurrentVersion
public int getCurrentVersion()
- Specified by:
getCurrentVersion
in interfacecom.ibm.mq.jmqi.internal.MqiStructure
- Overrides:
getCurrentVersion
in classcom.ibm.mq.jmqi.internal.AbstractMqiStructure
- Returns:
- the current version
-
-