Skip to content

Commit 0c3b486

Browse files
committed
Update for MQ 9.2
1 parent 61aed18 commit 0c3b486

File tree

13 files changed

+121
-29
lines changed

13 files changed

+121
-29
lines changed

CHANGELOG.md

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

4+
## Jul 23 2020 - v5.1.0
5+
* Update for MQ 9.2.0
6+
* mqmetric - Add explicit client configuration options
7+
* mqmetric - Add counter of how many resource publicatins read per scrape
8+
49
## June 1 2020 - v5.0.0
510
* Migration for Go modules (requires new major number) (#138)
611
* ibmmq - Add all string mapping functions from cmqstrc (#142)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RUN mkdir -p $GOPATH/src $GOPATH/bin $GOPATH/pkg \
5252
# Location of the downloadable MQ client package \
5353
ENV RDURL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist" \
5454
RDTAR="IBM-MQC-Redist-LinuxX64.tar.gz" \
55-
VRMF=9.1.5.0
55+
VRMF=9.2.0.0
5656

5757
# Install the MQ client from the Redistributable package. This also contains the
5858
# header files we need to compile against.

ibmmq/cmqc_aix.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ package ibmmq
3232
****************************************************************
3333
*
3434
* <BEGIN_BUILDINFO>
35-
* Generated on: 3/16/20 3:14 PM
36-
* Build Level: p915-L200316
35+
* Generated on: 7/9/20 2:30 PM
36+
* Build Level: p920-L200709
3737
* Build Type: Production
3838
* <END_BUILDINFO>
3939
*/
@@ -1004,7 +1004,7 @@ const (
10041004
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10051005
MQCMDI_SEC_TIMER_ZERO int32 = 14
10061006
MQCMDI_SEC_UPPERCASE int32 = 21
1007-
MQCMDL_CURRENT_LEVEL int32 = 915
1007+
MQCMDL_CURRENT_LEVEL int32 = 920
10081008
MQCMDL_LEVEL_1 int32 = 100
10091009
MQCMDL_LEVEL_101 int32 = 101
10101010
MQCMDL_LEVEL_110 int32 = 110
@@ -1045,6 +1045,7 @@ const (
10451045
MQCMDL_LEVEL_913 int32 = 913
10461046
MQCMDL_LEVEL_914 int32 = 914
10471047
MQCMDL_LEVEL_915 int32 = 915
1048+
MQCMDL_LEVEL_920 int32 = 920
10481049
MQCMD_ACCOUNTING_MQI int32 = 167
10491050
MQCMD_ACCOUNTING_Q int32 = 168
10501051
MQCMD_ACTIVITY_MSG int32 = 69

ibmmq/cmqc_darwin.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 3/16/20 3:14 PM
34-
* Build Level: p915-L200316
33+
* Generated on: 7/9/20 2:30 PM
34+
* Build Level: p920-L200709
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -1002,7 +1002,7 @@ const (
10021002
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031003
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041004
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 915
1005+
MQCMDL_CURRENT_LEVEL int32 = 920
10061006
MQCMDL_LEVEL_1 int32 = 100
10071007
MQCMDL_LEVEL_101 int32 = 101
10081008
MQCMDL_LEVEL_110 int32 = 110
@@ -1043,6 +1043,7 @@ const (
10431043
MQCMDL_LEVEL_913 int32 = 913
10441044
MQCMDL_LEVEL_914 int32 = 914
10451045
MQCMDL_LEVEL_915 int32 = 915
1046+
MQCMDL_LEVEL_920 int32 = 920
10461047
MQCMD_ACCOUNTING_MQI int32 = 167
10471048
MQCMD_ACCOUNTING_Q int32 = 168
10481049
MQCMD_ACTIVITY_MSG int32 = 69

ibmmq/cmqc_linux_amd64.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 3/16/20 3:14 PM
34-
* Build Level: p915-L200316
33+
* Generated on: 7/9/20 2:30 PM
34+
* Build Level: p920-L200709
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -1002,7 +1002,7 @@ const (
10021002
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031003
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041004
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 915
1005+
MQCMDL_CURRENT_LEVEL int32 = 920
10061006
MQCMDL_LEVEL_1 int32 = 100
10071007
MQCMDL_LEVEL_101 int32 = 101
10081008
MQCMDL_LEVEL_110 int32 = 110
@@ -1043,6 +1043,7 @@ const (
10431043
MQCMDL_LEVEL_913 int32 = 913
10441044
MQCMDL_LEVEL_914 int32 = 914
10451045
MQCMDL_LEVEL_915 int32 = 915
1046+
MQCMDL_LEVEL_920 int32 = 920
10461047
MQCMD_ACCOUNTING_MQI int32 = 167
10471048
MQCMD_ACCOUNTING_Q int32 = 168
10481049
MQCMD_ACTIVITY_MSG int32 = 69

ibmmq/cmqc_linux_ppc64le.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 3/16/20 3:14 PM
34-
* Build Level: p915-L200316
33+
* Generated on: 7/9/20 2:30 PM
34+
* Build Level: p920-L200709
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -1002,7 +1002,7 @@ const (
10021002
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031003
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041004
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 915
1005+
MQCMDL_CURRENT_LEVEL int32 = 920
10061006
MQCMDL_LEVEL_1 int32 = 100
10071007
MQCMDL_LEVEL_101 int32 = 101
10081008
MQCMDL_LEVEL_110 int32 = 110
@@ -1043,6 +1043,7 @@ const (
10431043
MQCMDL_LEVEL_913 int32 = 913
10441044
MQCMDL_LEVEL_914 int32 = 914
10451045
MQCMDL_LEVEL_915 int32 = 915
1046+
MQCMDL_LEVEL_920 int32 = 920
10461047
MQCMD_ACCOUNTING_MQI int32 = 167
10471048
MQCMD_ACCOUNTING_Q int32 = 168
10481049
MQCMD_ACTIVITY_MSG int32 = 69

ibmmq/cmqc_linux_s390x.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 3/16/20 3:14 PM
34-
* Build Level: p915-L200316
33+
* Generated on: 7/9/20 2:30 PM
34+
* Build Level: p920-L200709
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -1002,7 +1002,7 @@ const (
10021002
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031003
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041004
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 915
1005+
MQCMDL_CURRENT_LEVEL int32 = 920
10061006
MQCMDL_LEVEL_1 int32 = 100
10071007
MQCMDL_LEVEL_101 int32 = 101
10081008
MQCMDL_LEVEL_110 int32 = 110
@@ -1043,6 +1043,7 @@ const (
10431043
MQCMDL_LEVEL_913 int32 = 913
10441044
MQCMDL_LEVEL_914 int32 = 914
10451045
MQCMDL_LEVEL_915 int32 = 915
1046+
MQCMDL_LEVEL_920 int32 = 920
10461047
MQCMD_ACCOUNTING_MQI int32 = 167
10471048
MQCMD_ACCOUNTING_Q int32 = 168
10481049
MQCMD_ACTIVITY_MSG int32 = 69

ibmmq/cmqc_windows.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ package ibmmq
3030
****************************************************************
3131
*
3232
* <BEGIN_BUILDINFO>
33-
* Generated on: 3/16/20 3:14 PM
34-
* Build Level: p915-L200316
33+
* Generated on: 7/9/20 2:30 PM
34+
* Build Level: p920-L200709
3535
* Build Type: Production
3636
* <END_BUILDINFO>
3737
*/
@@ -1002,7 +1002,7 @@ const (
10021002
MQCMDI_SEC_SIGNOFF_ERROR int32 = 17
10031003
MQCMDI_SEC_TIMER_ZERO int32 = 14
10041004
MQCMDI_SEC_UPPERCASE int32 = 21
1005-
MQCMDL_CURRENT_LEVEL int32 = 915
1005+
MQCMDL_CURRENT_LEVEL int32 = 920
10061006
MQCMDL_LEVEL_1 int32 = 100
10071007
MQCMDL_LEVEL_101 int32 = 101
10081008
MQCMDL_LEVEL_110 int32 = 110
@@ -1043,6 +1043,7 @@ const (
10431043
MQCMDL_LEVEL_913 int32 = 913
10441044
MQCMDL_LEVEL_914 int32 = 914
10451045
MQCMDL_LEVEL_915 int32 = 915
1046+
MQCMDL_LEVEL_920 int32 = 920
10461047
MQCMD_ACCOUNTING_MQI int32 = 167
10471048
MQCMD_ACCOUNTING_Q int32 = 168
10481049
MQCMD_ACTIVITY_MSG int32 = 69

ibmmq/mqi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ package ibmmq
4646
#cgo windows CFLAGS: -I"C:/Program Files/IBM/MQ/Tools/c/include"
4747
#cgo !windows,!aix,!darwin LDFLAGS: -L/opt/mqm/lib64 -lmqm_r -Wl,-rpath,/opt/mqm/lib64 -Wl,-rpath,/usr/lib64
4848
#cgo darwin LDFLAGS: -L/opt/mqm/lib64 -lmqm_r -Wl,-rpath,/opt/mqm/lib64 -Wl,-rpath,/usr/lib64
49-
#cgo aix LDFLAGS: -L/usr/mqm/lib64 -lmqm_r
49+
#cgo aix LDFLAGS: -L/usr/mqm/lib64 -lmqm_r
5050
#cgo windows LDFLAGS: -L "C:/Program Files/IBM/MQ/bin64" -lmqm
5151
5252
#include <stdlib.h>

ibmmq/mqistr.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,8 @@ func MQItoString(class string, value int) string {
13771377
s = "MQCMDL_LEVEL_914"
13781378
case 915:
13791379
s = "MQCMDL_LEVEL_915"
1380+
case 920:
1381+
s = "MQCMDL_LEVEL_920"
13801382
default:
13811383
s = ""
13821384
}

0 commit comments

Comments
 (0)