Skip to content

Commit 95e9b8b

Browse files
committed
Update for MQ 9.2.2
1 parent b4a736f commit 95e9b8b

15 files changed

+103
-59
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22
Newest updates are at the top of this file.
33

4+
## Mar 25 2021 - v5.2.0
5+
Scope of mqmetric changes seem to justify new minor number
6+
* Update for MQ 9.2.2
7+
* Add DltMH calls to clarify samples
8+
* mqmetric - Restructure to allow multiple connections & reduce public interfaces
9+
* mqmetric - Deal with discovery of large numbers of queues (#133, #161)
10+
* ibmmq - Add PutDateTime as time.Time field in MQMD, MQDLH. Use of the string forms should be considered deprecated (inspired by #159)
11+
* Add a DEPRECATIONS file for when advance notice might be needed
12+
413
## Dec 04 2020 - v5.1.3
514
* Update for MQ 9.2.1
615

DEPRECATIONS.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ This file lists any deprecated function in the `mq-golang` repository.
33

44
Current API version for the `ibmmq` and `mqmetric` packages is **v5**.
55

6-
Removal of function will only happen with a major version
7-
change.
6+
Removal of function will only happen with a major version change.
87

98
**Note:** There is no date currently planned for a new major release.
109

1110
## In next major version
1211
The following interfaces are planned to be removed:
12+
1313
#### Package ibmmq
1414
* PutDate and PutTime fields in the MQMD and MQDLH structures
1515
* Replacement is the single PutDateTime time.Time type
16+
* The replacement APIs is already available in the v5 stream.
17+
* InqMap - was a temporary route to replace original Inq function
18+
* Replacement is the current Inq function
1619

1720
#### Package mqmetric
1821
* Remove direct access to xxxStatus variables.

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive \
4040
curl \
4141
tar \
4242
bash \
43-
go-dep \
4443
build-essential \
4544
&& rm -rf /var/lib/apt/lists/*
4645

@@ -59,7 +58,7 @@ RUN mkdir -p $GOPATH/src $GOPATH/bin $GOPATH/pkg \
5958
# Location of the downloadable MQ client package \
6059
ENV RDURL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist" \
6160
RDTAR="IBM-MQC-Redist-LinuxX64.tar.gz" \
62-
VRMF=9.2.1.0
61+
VRMF=9.2.2.0
6362

6463
# Install the MQ client from the Redistributable package. This also contains the
6564
# header files we need to compile against. Setup the subset of the package

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ is not available before MQ V9. A limited set of metrics can be monitored for MQ
1212

1313
## Health Warning
1414

15-
This package is provided as-is with no guarantees of support or updates. There are
16-
also no guarantees of compatibility with any future versions of the package; the API
15+
This package is provided as-is with no guarantees of support or updates. You cannot use
16+
IBM formal support channels (Cases/PMRs) for assistance with material in this repository.
17+
18+
There are also no guarantees of compatibility with any future versions of the package; the API
1719
is subject to change based on any feedback. Versioned releases are made in this repository
18-
to assist with using stable APIs.
20+
to assist with using stable APIs. Future versions will follow semver guidance so that breaking changes
21+
will only be done with a new major version number on the module.
22+
23+
See the [DEPRECATIONS](DEPRECATIONS.md) file for any planned changes to the API.
1924

2025
## MQI Description
2126

@@ -233,4 +238,4 @@ in the CLA.
233238

234239
## Copyright
235240

236-
© Copyright IBM Corporation 2016, 2020
241+
© Copyright IBM Corporation 2016, 2021

ibmmq/cmqc_aix.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package ibmmq
1616
* for each value; those can be found in other header files such as
1717
* cmqc.h.
1818
****************************************************************
19-
* Copyright (c) IBM Corporation 1993, 2020
19+
* Copyright (c) IBM Corporation 1993, 2021
2020
*
2121
* Licensed under the Apache License, Version 2.0 (the "License");
2222
* you may not use this file except in compliance with the License.
@@ -32,8 +32,8 @@ package ibmmq
3232
****************************************************************
3333
*
3434
* <BEGIN_BUILDINFO>
35-
* Generated on: 11/12/20 5:27 PM
36-
* Build Level: p921-L201112.1
35+
* Generated on: 3/5/21 5:00 PM
36+
* Build Level: p922-L210305.1
3737
* Build Type: Production
3838
* <END_BUILDINFO>
3939
*/
@@ -343,13 +343,14 @@ const (
343343
MQCACF_LAST_PUB_TIME int32 = 3162
344344
MQCACF_LAST_PUT_DATE int32 = 3128
345345
MQCACF_LAST_PUT_TIME int32 = 3129
346-
MQCACF_LAST_USED int32 = 3210
346+
MQCACF_LAST_USED int32 = 3211
347347
MQCACF_LOCAL_Q_NAMES int32 = 3015
348348
MQCACF_LOG_PATH int32 = 3074
349349
MQCACF_MEDIA_LOG_EXTENT_NAME int32 = 3073
350350
MQCACF_MODEL_Q_NAMES int32 = 3016
351351
MQCACF_MQCB_NAME int32 = 3192
352352
MQCACF_NAMELIST_NAMES int32 = 3013
353+
MQCACF_NHA_INSTANCE_NAME int32 = 3211
353354
MQCACF_NONE int32 = 3171
354355
MQCACF_OBJECT_NAME int32 = 3046
355356
MQCACF_OBJECT_Q_MGR_NAME int32 = 3023
@@ -1004,7 +1005,7 @@ const (
10041005
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10051006
MQCMDI_SEC_TIMER_ZERO int32 = 14
10061007
MQCMDI_SEC_UPPERCASE int32 = 21
1007-
MQCMDL_CURRENT_LEVEL int32 = 921
1008+
MQCMDL_CURRENT_LEVEL int32 = 922
10081009
MQCMDL_LEVEL_1 int32 = 100
10091010
MQCMDL_LEVEL_101 int32 = 101
10101011
MQCMDL_LEVEL_110 int32 = 110
@@ -1047,6 +1048,7 @@ const (
10471048
MQCMDL_LEVEL_915 int32 = 915
10481049
MQCMDL_LEVEL_920 int32 = 920
10491050
MQCMDL_LEVEL_921 int32 = 921
1051+
MQCMDL_LEVEL_922 int32 = 922
10501052
MQCMD_ACCOUNTING_MQI int32 = 167
10511053
MQCMD_ACCOUNTING_Q int32 = 168
10521054
MQCMD_ACTIVITY_MSG int32 = 69
@@ -4204,6 +4206,7 @@ const (
42044206
MQRQ_OPEN_NOT_AUTHORIZED int32 = 2
42054207
MQRQ_Q_MGR_QUIESCING int32 = 6
42064208
MQRQ_Q_MGR_STOPPING int32 = 5
4209+
MQRQ_REPLICA_ACTIVATED int32 = 33
42074210
MQRQ_SSL_CIPHER_SPEC_ERROR int32 = 14
42084211
MQRQ_SSL_CLIENT_AUTH_ERROR int32 = 15
42094212
MQRQ_SSL_HANDSHAKE_ERROR int32 = 13
@@ -4937,6 +4940,7 @@ const (
49374940
MQ_MSG_TOKEN_LENGTH int32 = 16
49384941
MQ_NAMELIST_DESC_LENGTH int32 = 64
49394942
MQ_NAMELIST_NAME_LENGTH int32 = 48
4943+
MQ_NHA_INSTANCE_NAME_LENGTH int32 = 48
49404944
MQ_OBJECT_INSTANCE_ID_LENGTH int32 = 24
49414945
MQ_OBJECT_NAME_LENGTH int32 = 48
49424946
MQ_OPERATOR_MESSAGE_LENGTH int32 = 4

ibmmq/cmqc_darwin.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package ibmmq
1414
* for each value; those can be found in other header files such as
1515
* cmqc.h.
1616
****************************************************************
17-
* Copyright (c) IBM Corporation 1993, 2020
17+
* Copyright (c) IBM Corporation 1993, 2021
1818
*
1919
* Licensed under the Apache License, Version 2.0 (the "License");
2020
* you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 11/12/20 5:27 PM
34-
* Build Level: p921-L201112.1
33+
* Generated on: 3/5/21 5:00 PM
34+
* Build Level: p922-L210305.1
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -341,13 +341,14 @@ const (
341341
MQCACF_LAST_PUB_TIME int32 = 3162
342342
MQCACF_LAST_PUT_DATE int32 = 3128
343343
MQCACF_LAST_PUT_TIME int32 = 3129
344-
MQCACF_LAST_USED int32 = 3210
344+
MQCACF_LAST_USED int32 = 3211
345345
MQCACF_LOCAL_Q_NAMES int32 = 3015
346346
MQCACF_LOG_PATH int32 = 3074
347347
MQCACF_MEDIA_LOG_EXTENT_NAME int32 = 3073
348348
MQCACF_MODEL_Q_NAMES int32 = 3016
349349
MQCACF_MQCB_NAME int32 = 3192
350350
MQCACF_NAMELIST_NAMES int32 = 3013
351+
MQCACF_NHA_INSTANCE_NAME int32 = 3211
351352
MQCACF_NONE int32 = 3171
352353
MQCACF_OBJECT_NAME int32 = 3046
353354
MQCACF_OBJECT_Q_MGR_NAME int32 = 3023
@@ -1002,7 +1003,7 @@ const (
10021003
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031004
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041005
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 921
1006+
MQCMDL_CURRENT_LEVEL int32 = 922
10061007
MQCMDL_LEVEL_1 int32 = 100
10071008
MQCMDL_LEVEL_101 int32 = 101
10081009
MQCMDL_LEVEL_110 int32 = 110
@@ -1045,6 +1046,7 @@ const (
10451046
MQCMDL_LEVEL_915 int32 = 915
10461047
MQCMDL_LEVEL_920 int32 = 920
10471048
MQCMDL_LEVEL_921 int32 = 921
1049+
MQCMDL_LEVEL_922 int32 = 922
10481050
MQCMD_ACCOUNTING_MQI int32 = 167
10491051
MQCMD_ACCOUNTING_Q int32 = 168
10501052
MQCMD_ACTIVITY_MSG int32 = 69
@@ -4202,6 +4204,7 @@ const (
42024204
MQRQ_OPEN_NOT_AUTHORIZED int32 = 2
42034205
MQRQ_Q_MGR_QUIESCING int32 = 6
42044206
MQRQ_Q_MGR_STOPPING int32 = 5
4207+
MQRQ_REPLICA_ACTIVATED int32 = 33
42054208
MQRQ_SSL_CIPHER_SPEC_ERROR int32 = 14
42064209
MQRQ_SSL_CLIENT_AUTH_ERROR int32 = 15
42074210
MQRQ_SSL_HANDSHAKE_ERROR int32 = 13
@@ -4935,6 +4938,7 @@ const (
49354938
MQ_MSG_TOKEN_LENGTH int32 = 16
49364939
MQ_NAMELIST_DESC_LENGTH int32 = 64
49374940
MQ_NAMELIST_NAME_LENGTH int32 = 48
4941+
MQ_NHA_INSTANCE_NAME_LENGTH int32 = 48
49384942
MQ_OBJECT_INSTANCE_ID_LENGTH int32 = 24
49394943
MQ_OBJECT_NAME_LENGTH int32 = 48
49404944
MQ_OPERATOR_MESSAGE_LENGTH int32 = 4

ibmmq/cmqc_linux_amd64.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package ibmmq
1414
* for each value; those can be found in other header files such as
1515
* cmqc.h.
1616
****************************************************************
17-
* Copyright (c) IBM Corporation 1993, 2020
17+
* Copyright (c) IBM Corporation 1993, 2021
1818
*
1919
* Licensed under the Apache License, Version 2.0 (the "License");
2020
* you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 11/12/20 5:27 PM
34-
* Build Level: p921-L201112.1
33+
* Generated on: 3/5/21 5:00 PM
34+
* Build Level: p922-L210305.1
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -341,13 +341,14 @@ const (
341341
MQCACF_LAST_PUB_TIME int32 = 3162
342342
MQCACF_LAST_PUT_DATE int32 = 3128
343343
MQCACF_LAST_PUT_TIME int32 = 3129
344-
MQCACF_LAST_USED int32 = 3210
344+
MQCACF_LAST_USED int32 = 3211
345345
MQCACF_LOCAL_Q_NAMES int32 = 3015
346346
MQCACF_LOG_PATH int32 = 3074
347347
MQCACF_MEDIA_LOG_EXTENT_NAME int32 = 3073
348348
MQCACF_MODEL_Q_NAMES int32 = 3016
349349
MQCACF_MQCB_NAME int32 = 3192
350350
MQCACF_NAMELIST_NAMES int32 = 3013
351+
MQCACF_NHA_INSTANCE_NAME int32 = 3211
351352
MQCACF_NONE int32 = 3171
352353
MQCACF_OBJECT_NAME int32 = 3046
353354
MQCACF_OBJECT_Q_MGR_NAME int32 = 3023
@@ -1002,7 +1003,7 @@ const (
10021003
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031004
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041005
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 921
1006+
MQCMDL_CURRENT_LEVEL int32 = 922
10061007
MQCMDL_LEVEL_1 int32 = 100
10071008
MQCMDL_LEVEL_101 int32 = 101
10081009
MQCMDL_LEVEL_110 int32 = 110
@@ -1045,6 +1046,7 @@ const (
10451046
MQCMDL_LEVEL_915 int32 = 915
10461047
MQCMDL_LEVEL_920 int32 = 920
10471048
MQCMDL_LEVEL_921 int32 = 921
1049+
MQCMDL_LEVEL_922 int32 = 922
10481050
MQCMD_ACCOUNTING_MQI int32 = 167
10491051
MQCMD_ACCOUNTING_Q int32 = 168
10501052
MQCMD_ACTIVITY_MSG int32 = 69
@@ -4202,6 +4204,7 @@ const (
42024204
MQRQ_OPEN_NOT_AUTHORIZED int32 = 2
42034205
MQRQ_Q_MGR_QUIESCING int32 = 6
42044206
MQRQ_Q_MGR_STOPPING int32 = 5
4207+
MQRQ_REPLICA_ACTIVATED int32 = 33
42054208
MQRQ_SSL_CIPHER_SPEC_ERROR int32 = 14
42064209
MQRQ_SSL_CLIENT_AUTH_ERROR int32 = 15
42074210
MQRQ_SSL_HANDSHAKE_ERROR int32 = 13
@@ -4935,6 +4938,7 @@ const (
49354938
MQ_MSG_TOKEN_LENGTH int32 = 16
49364939
MQ_NAMELIST_DESC_LENGTH int32 = 64
49374940
MQ_NAMELIST_NAME_LENGTH int32 = 48
4941+
MQ_NHA_INSTANCE_NAME_LENGTH int32 = 48
49384942
MQ_OBJECT_INSTANCE_ID_LENGTH int32 = 24
49394943
MQ_OBJECT_NAME_LENGTH int32 = 48
49404944
MQ_OPERATOR_MESSAGE_LENGTH int32 = 4

ibmmq/cmqc_linux_ppc64le.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package ibmmq
1414
* for each value; those can be found in other header files such as
1515
* cmqc.h.
1616
****************************************************************
17-
* Copyright (c) IBM Corporation 1993, 2020
17+
* Copyright (c) IBM Corporation 1993, 2021
1818
*
1919
* Licensed under the Apache License, Version 2.0 (the "License");
2020
* you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 11/12/20 5:27 PM
34-
* Build Level: p921-L201112.1
33+
* Generated on: 3/5/21 5:00 PM
34+
* Build Level: p922-L210305.1
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -341,13 +341,14 @@ const (
341341
MQCACF_LAST_PUB_TIME int32 = 3162
342342
MQCACF_LAST_PUT_DATE int32 = 3128
343343
MQCACF_LAST_PUT_TIME int32 = 3129
344-
MQCACF_LAST_USED int32 = 3210
344+
MQCACF_LAST_USED int32 = 3211
345345
MQCACF_LOCAL_Q_NAMES int32 = 3015
346346
MQCACF_LOG_PATH int32 = 3074
347347
MQCACF_MEDIA_LOG_EXTENT_NAME int32 = 3073
348348
MQCACF_MODEL_Q_NAMES int32 = 3016
349349
MQCACF_MQCB_NAME int32 = 3192
350350
MQCACF_NAMELIST_NAMES int32 = 3013
351+
MQCACF_NHA_INSTANCE_NAME int32 = 3211
351352
MQCACF_NONE int32 = 3171
352353
MQCACF_OBJECT_NAME int32 = 3046
353354
MQCACF_OBJECT_Q_MGR_NAME int32 = 3023
@@ -1002,7 +1003,7 @@ const (
10021003
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031004
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041005
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 921
1006+
MQCMDL_CURRENT_LEVEL int32 = 922
10061007
MQCMDL_LEVEL_1 int32 = 100
10071008
MQCMDL_LEVEL_101 int32 = 101
10081009
MQCMDL_LEVEL_110 int32 = 110
@@ -1045,6 +1046,7 @@ const (
10451046
MQCMDL_LEVEL_915 int32 = 915
10461047
MQCMDL_LEVEL_920 int32 = 920
10471048
MQCMDL_LEVEL_921 int32 = 921
1049+
MQCMDL_LEVEL_922 int32 = 922
10481050
MQCMD_ACCOUNTING_MQI int32 = 167
10491051
MQCMD_ACCOUNTING_Q int32 = 168
10501052
MQCMD_ACTIVITY_MSG int32 = 69
@@ -4202,6 +4204,7 @@ const (
42024204
MQRQ_OPEN_NOT_AUTHORIZED int32 = 2
42034205
MQRQ_Q_MGR_QUIESCING int32 = 6
42044206
MQRQ_Q_MGR_STOPPING int32 = 5
4207+
MQRQ_REPLICA_ACTIVATED int32 = 33
42054208
MQRQ_SSL_CIPHER_SPEC_ERROR int32 = 14
42064209
MQRQ_SSL_CLIENT_AUTH_ERROR int32 = 15
42074210
MQRQ_SSL_HANDSHAKE_ERROR int32 = 13
@@ -4935,6 +4938,7 @@ const (
49354938
MQ_MSG_TOKEN_LENGTH int32 = 16
49364939
MQ_NAMELIST_DESC_LENGTH int32 = 64
49374940
MQ_NAMELIST_NAME_LENGTH int32 = 48
4941+
MQ_NHA_INSTANCE_NAME_LENGTH int32 = 48
49384942
MQ_OBJECT_INSTANCE_ID_LENGTH int32 = 24
49394943
MQ_OBJECT_NAME_LENGTH int32 = 48
49404944
MQ_OPERATOR_MESSAGE_LENGTH int32 = 4

0 commit comments

Comments
 (0)