Package com.softwaremining.mq.smmq
Class MQImpl
java.lang.Object
com.softwaremining.mq.smmq.MQImpl
- All Implemented Interfaces:
MQInterface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
close
(IBaseService baseService, double hcConn, ISMDataType handleObj, double options, ISMNumeric completionCode, ISMNumeric reason) MQCLOSEint
connect
(IBaseService baseService, ISMNumeric hcConn, ISMNumeric completionCode, ISMNumeric reason) MQCONN NOTE: On z/OS, CICS applications do not have to issue this call.int
connect
(IBaseService baseService, String queueManager, ISMNumeric hcConn, ISMNumeric completionCode, ISMNumeric reason) MQCONN NOTE: On z/OS, CICS applications do not have to issue this call.int
disconnect
(IBaseService baseService, double hcConn, ISMNumeric completionCode, ISMNumeric reason) NOTE: On z/OS, CICS applications do not have to issue this call.int
get
(IBaseService baseService, double hcConn, double hObj, ISMDataType queueObjectName, ISMDataType msgOpts, double bufferLength, ISMDataType buffer, ISMNumeric dataLength, ISMNumeric completionCode, ISMNumeric reason) MQGETint
open
(IBaseService baseService, double hcConn, ISMDataType queueObjectName, double options, double objRequestq, ISMNumeric completionCode, ISMNumeric reason) MQOPENint
put
(IBaseService baseService, double hcConn, double hObj, ISMDataType queueObjectName, ISMDataType msgOpts, double bufferLength, String buffer, ISMNumeric completionCode, ISMNumeric reason) MQPUT
-
Constructor Details
-
MQImpl
public MQImpl()
-
-
Method Details
-
connect
public int connect(IBaseService baseService, String queueManager, ISMNumeric hcConn, ISMNumeric completionCode, ISMNumeric reason) Description copied from interface:MQInterface
MQCONN NOTE: On z/OS, CICS applications do not have to issue this call. These applications are connected automatically to the queue manager to which the CICS system is connected. However, the MQCONN and MQDISC calls are still accepted from CICS applications.- Specified by:
connect
in interfaceMQInterface
-
connect
public int connect(IBaseService baseService, ISMNumeric hcConn, ISMNumeric completionCode, ISMNumeric reason) Description copied from interface:MQInterface
MQCONN NOTE: On z/OS, CICS applications do not have to issue this call. These applications are connected automatically to the queue manager to which the CICS system is connected. However, the MQCONN and MQDISC calls are still accepted from CICS applications.- Specified by:
connect
in interfaceMQInterface
-
open
public int open(IBaseService baseService, double hcConn, ISMDataType queueObjectName, double options, double objRequestq, ISMNumeric completionCode, ISMNumeric reason) Description copied from interface:MQInterface
MQOPEN- Specified by:
open
in interfaceMQInterface
- Parameters:
hcConn
-queueObjectName
- - 4 types: Queue (or Namelists, Process definition, Queue Manager) there are 3 types of queues: LOCAL , REMOTE or DYNAMIC. Local and remote queues represent actual queues defined in the queue manager from an administrative prospective. They differ mostly in the way the name of the queue can be specified in the ObjectName field of the MQOD data structureoptions
-objRequestq
-completionCode
-reason
-- Returns:
-
close
public int close(IBaseService baseService, double hcConn, ISMDataType handleObj, double options, ISMNumeric completionCode, ISMNumeric reason) Description copied from interface:MQInterface
MQCLOSE- Specified by:
close
in interfaceMQInterface
-
get
public int get(IBaseService baseService, double hcConn, double hObj, ISMDataType queueObjectName, ISMDataType msgOpts, double bufferLength, ISMDataType buffer, ISMNumeric dataLength, ISMNumeric completionCode, ISMNumeric reason) Description copied from interface:MQInterface
MQGET- Specified by:
get
in interfaceMQInterface
-
put
public int put(IBaseService baseService, double hcConn, double hObj, ISMDataType queueObjectName, ISMDataType msgOpts, double bufferLength, String buffer, ISMNumeric completionCode, ISMNumeric reason) Description copied from interface:MQInterface
MQPUT- Specified by:
put
in interfaceMQInterface
-
disconnect
public int disconnect(IBaseService baseService, double hcConn, ISMNumeric completionCode, ISMNumeric reason) Description copied from interface:MQInterface
NOTE: On z/OS, CICS applications do not have to issue this call. These applications are connected automatically to the queue manager to which the CICS system is connected. However, the MQCONN and MQDISC calls are still accepted from CICS applications.- Specified by:
disconnect
in interfaceMQInterface
-