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 Detail

      • MQCD

        public MQCD()
    • 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
      • 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 class java.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 class java.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 class java.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
      • 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
      • 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
      • 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 interface com.ibm.mq.jmqi.internal.MqiStructure
        Overrides:
        getVersion in class com.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 interface com.ibm.mq.jmqi.internal.MqiStructure
        Overrides:
        setupForTest in class com.ibm.mq.jmqi.internal.AbstractMqiStructure
        Parameters:
        ptrSize -
      • getFirstVersion

        public int getFirstVersion()
        Specified by:
        getFirstVersion in interface com.ibm.mq.jmqi.internal.MqiStructure
        Overrides:
        getFirstVersion in class com.ibm.mq.jmqi.internal.AbstractMqiStructure
        Returns:
        the first version
      • getCurrentVersion

        public int getCurrentVersion()
        Specified by:
        getCurrentVersion in interface com.ibm.mq.jmqi.internal.MqiStructure
        Overrides:
        getCurrentVersion in class com.ibm.mq.jmqi.internal.AbstractMqiStructure
        Returns:
        the current version
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.