Commands and Configuration # ################################################# //Create local queue Q define qlocal (q) // Set the maximum depth of local queue Q to 5 ALTER qlocal (q) MAXDEPTH (5) //recreate local queue Q if q already exists, reset all its properties to the default properties DEFINE qlocal (q) replace//Create remote queue DEFINE QREMOTE (qrname) rname (AAA) rqmname (qmgrname) XMITQ (qtname) //Create transmission queue DEFINE qlocal (clv_hq_ TRAN) Usage (XMITQ) INITQ (SYST
(REV_CLV) Trigtype (every) TRIGGER REPLACECreating a receive-side channel CDEFINE CHANNEL (C) chltype (RCVR)Create the sender channel C, connecting the other IP to the 10.10.10.10 port for the 1414-channel connection to the transmit queue XQDEFINE CHANNEL (C) chltype (SDR) CONNAME (' 10.10.10.10 (1414) ') XMITQ (XQ)Create requester ChannelDEFINE CHANNEL (D) chltype (rqstr) CONNAME (' 10.10.10.10 (1414) ')Create a server channelDEFINE CHANNEL (D) chlt
(qtname)// Create a transmission queueDefine qlocal (clv_hq_tran) usage (xmitq) initq (system. Channel. initq) trigdata (rev_clv) trigtype (every) trigger replace// Create the receiver channel CDefine channel (c) chltype (rcvr)// Create the sender channel C. the IP address of the connection peer is 10.10.10.10, and the transmission queue of the 1414 channel connection is XQ.Define channel (c) chltype (SDR) conname ('10. 10.10.10 (1414) ') xmitq (XQ)/
as follows:
1234567
Type Response struct {Servicemethod string//echoes that of the RequestSeq UInt64//echoes that of the requestError string//error, if any.Contains filtered or unexported fields}
The message body is the serialized value of the reply type.
The server also provides two methods for registering services:
12
Func (server *server) Register (RCVR interface{}) errorFunc (server *server) registerna
the program to find a problem, because I used to record the conversion content is a list table, if the direct print is not conducive to reading, continue to consult the data after the discovery join () function can implement list to string conversion, so the official code is as follows:1Code ='g FMNC WMS Bgblr RPYLQJYRC gr ZW fylb. Rfyrq ufyr amknsrcpq ypc dmp.2 bmgle GR GL ZW fylb GQ glcddgagclr ylb rfyrq UFW rfgq rcvr GQ QM Jmle.3 sqgle QRPGLE.KYIC
Remote Queue name.
Rname (AAA)---- Indicates the name of the local queue at the receiving end.
Rqmname (qmgrname)----- Receiver Queue Manager name
Xmitq (qtname )---------Local Transmission queue name
(5) define a local transmission queue
Define qlocal (qtname) usage (xmitq) defpsist (yes) initq (system. Channel. initq) process (processname) replace
Eg:
(6) create a process definition
Define process (proname) descr ('string') appltype (WindowsNT) applicid ('runmqchlorophyll-C sdr_test-m qm _ te
The first level can be resolved after the first pass.Looks like a mysterious look. But that is to turn the letter K into M, o into Q, E to G. The ASCII value of the letter corresponding to +2 is OK.1 #-*-coding:utf-8-*-2 #code versions are Python 3.5.13 #Level 14str ="g FMNC WMS Bgblr RPYLQJYRC gr ZW fylb. Rfyrq ufyr amknsrcpq ypc dmp. Bmgle GR GL ZW fylb GQ glcddgagclr ylb rfyr ' q UFW RFGQ RCVR GQ QM Jmle. Sqgle QRPGLE.KYICRPYLQ () GQ PCAMKKCLBCB. L
("Receivertracker already star Ted ") } if (!receiverinputstreams.isempty) { endpoint = Ssc.env.rpcEnv.setupEndpoint ( " Receivertracker ", New Receivertrackerendpoint (SSC.ENV.RPCENV)) if (!skipreceiverlaunch) launchreceivers () Loginfo ("Receivertracker started") Trackerstate = Started The Start method sends a message to start receiverPrivate Def launchreceivers (): Unit = { val receivers = Receiverinputstreams.map (NIS = { val
In spark streaming, for Receiverinputdstream, it's a real receiver, used to receive data. Receiver can have many and run on a different worker node. These receiver are managed by Receivertracker.In the Start method of Receivertracker, a message communication body Receivertrackerendpoint is created:/** Start The endpoint and receiver execution thread. */def start (): Unit = synchronized {if (istrackerstarted) {throw new Sparkexception ("Receivertracker already started ")} if (!receiverinputstream
Section o offUsing Python to calculate 2 * * 38, replace the URL to1th PassReally covered, and finally Google a bit, only to understand that all the letter displacement >> two-bitImport= Str.maketrans ('abcdefghijklmnopqrstuvwxyz',' Cdefghijklmnopqrstuvwxyzab')print("'g fmnc wms Bgblr RPYLQJYRC GR ZW fylb. RFYRQ Ufyr AMKNSRCPQ ypc DMP. Bmgle GR GL ZW fylb GQ glcddgagclr ylb rfyr ' q UFW rfgq rcvr GQ QM Jmle. Sqgle QRPGLE.KYICRPYLQ () GQ PCAMKKCLBCB.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.