CN110347520A - Method, apparatus, electronic equipment and the medium of message distribution - Google Patents
Method, apparatus, electronic equipment and the medium of message distribution Download PDFInfo
- Publication number
- CN110347520A CN110347520A CN201910577390.1A CN201910577390A CN110347520A CN 110347520 A CN110347520 A CN 110347520A CN 201910577390 A CN201910577390 A CN 201910577390A CN 110347520 A CN110347520 A CN 110347520A
- Authority
- CN
- China
- Prior art keywords
- message
- test
- sent
- application
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Abstract
This application discloses a kind of method, apparatus of message distribution, electronic equipment and media.Wherein, in the application, after obtaining test request, the test request can be parsed, and then at least one first message is sent to message queue and by the environmental labels by the first message for generating at least one and corresponding environmental labels, again by message queue, first message is sent in target detection environment.By the technical solution of application the application, the corresponding test environmental labels of message can be added in test request, and the corresponding consumer tested in environment is directly sent a message to according to the mark by a producer.And then the drawbacks of consuming hardware resource caused by the corresponding producer is equipped with for each consumer can be needed to avoid in mostly test environment message queue.
Description
Technical field
Data processing technique involved in the application, especially a kind of method, apparatus of message distribution, electronic equipment and Jie
Matter.
Background technique
Message queue is the container that message is saved in the transmission process of message.Message queue manager can be by message
Transfer is carried out when being sent to target side from source.The main purpose of queue is to provide routing and guarantees the transmitting of message;If hair
The business of target side or service (can be described as " consumer ", in contrast, the business or service for producing message can be described as when sending message
" producer ") unavailable, message queue meeting reservation message, until can successfully transmit it.
In multi-environment test, a message queue is usually shared by each test environment, wherein by the life in message queue
Production person is delivered at consumer.Consumer starts " to consume " message after receiving the message.In the related technology, each
It usually requires to be equipped with a producer under a consumer environment, to guarantee the transmission of message in message queue.
However, can additionally increase hardware cost and maintenance equipped with the message queue of multiple producers in the related technology
Cost.
Summary of the invention
The embodiment of the present invention provides method, apparatus, electronic equipment and the medium of a kind of message distribution.
Wherein, according to the one aspect of the embodiment of the present application, a kind of method of the message distribution provided, which is characterized in that
Include:
Test request is obtained, includes at least one first message in the test request;
The test request is parsed, the first message and the corresponding test environmental labels of the first message are obtained;
Based on the test environmental labels, the first message is sent to target message queue;
By the target message queue, the first message is sent to target detection environment.
Optionally, in another embodiment based on the application above method, the parsing test request is also wrapped
It includes: obtaining the corresponding destination service mark of the first message;And
It is described by the target message queue, the first message is sent to target detection environment, comprising: be based on institute
Environmental labels and destination service mark are stated, the first message is sent to the target detection environment.
Optionally, in another embodiment based on the application above method, it is described based on the environmental labels and
The destination service mark, is sent to the target detection environment for the first message, comprising:
It is identified, is judged in the corresponding test environment of the environmental labels with the presence or absence of the target based on the destination service
The corresponding destination service of service identifiers;
Based on judging result, the first message is sent to the target detection environment.
Optionally, in another embodiment based on the application above method, Xiang Suoshu destination service sends prompt and disappears
Breath, to prompt the destination service to handle the first message.
Optionally, in another embodiment based on the application above method, further includes:
Store the corresponding relationship of the first message and the test environmental labels;
After getting second message, detect whether the second message and the first message are identical message;
If so, being based on the corresponding relationship, it is corresponding described that the second message is sent to the target message queue
In target detection environment.
According to the other side of the embodiment of the present application, a kind of device of the message distribution provided, comprising:
Module is obtained, is configured as obtaining test request, includes at least one first message in the test request;
Parsing module is configured as parsing the test request, obtains the first message and the first message pair
The test environmental labels answered;
First sending module is configured as that the first message is sent to target and is disappeared based on the test environmental labels
Cease queue;
Second sending module is configured as that the first message is sent to target and is surveyed by the target message queue
Test ring border.
According to the another aspect of the embodiment of the present application, a kind of electronic equipment that provides, comprising:
Memory, for storing executable instruction;And
Processor completes any of the above-described described disappear for showing with the memory to execute the executable instruction
Cease the operation of the method for distribution.
According to the still another aspect of the embodiment of the present application, a kind of computer readable storage medium provided, based on storing
The instruction that calculation machine can be read, described instruction are performed the operation for executing the method for any of the above-described message distribution.
In the application, after obtaining test request, which can be parsed, and then generate at least one
First message and corresponding environmental labels at least one first message is sent to message team and by the environmental labels
Column, then by message queue, first message is sent in target detection environment.It, can by the technical solution of application the application
To add the corresponding test environmental labels of message in test request, and directly message is sent out according to the mark by a producer
The consumer being sent in corresponding test environment.And then it can need to be every to avoid in mostly test environment message queue
The drawbacks of one consumer is equipped with consuming hardware resource caused by the corresponding producer.
Below by drawings and examples, the technical solution of the application is described in further detail.
Detailed description of the invention
The attached drawing for constituting part of specification describes embodiments herein, and together with description for explaining
The principle of the application.
The application can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 is the system architecture schematic diagram of the method for the application message distribution.
Fig. 2 is the flow chart of another embodiment of the method for the application message distribution.
Fig. 3 is the flow chart of another embodiment of the method for the application message distribution.
Fig. 4 is the flow diagram of the message distributing method in the application comprising environmental labels.
Fig. 5 is the structural schematic diagram of the device of the application message distribution.
Fig. 6 is that the application shows electronic devices structure schematic diagram.
Specific embodiment
The various exemplary embodiments of the application are described in detail now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of application.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality
Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, not as to the application and
Its any restrictions applied or used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present application
In explaining in relative positional relationship, the motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if should
When particular pose changes, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being such as related to " first ", " second " in this application is used for description purposes only, and should not be understood as
Its relative importance of indication or suggestion or the quantity for implicitly indicating indicated technical characteristic.Define as a result, " first ",
The feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present application, " multiples' " contains
Justice is at least two, such as two, three etc., unless otherwise specifically defined.
In this application unless specifically defined or limited otherwise, term " connection ", " fixation " etc. shall be understood in a broad sense,
For example, " fixation " may be a fixed connection, it may be a detachable connection, or integral;It can be mechanical connection, be also possible to
Electrical connection;It can be directly connected, the connection inside two elements or two can also be can be indirectly connected through an intermediary
The interaction relationship of a element, unless otherwise restricted clearly.It for the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term in this application.
It in addition, the technical solution between each embodiment of the application can be combined with each other, but must be general with this field
Based on logical technical staff can be realized, it will be understood that when the combination of technical solution appearance is conflicting or cannot achieve this
The combination of technical solution is not present, also not this application claims protection scope within.
It is described below with reference to Fig. 1 to Fig. 4 according to the application illustrative embodiments for carrying out the side of message distribution
Method.It should be noted that following application scenarios are merely for convenience of understanding spirit herein and principle and showing, the application's
Embodiment is unrestricted in this regard.On the contrary, presently filed embodiment can be applied to applicable any scene.
The application also proposes method, apparatus, target terminal and the medium of a kind of message distribution.
Fig. 1 schematically shows a kind of flow diagram of the method for message distribution according to the application embodiment.
As shown in Fig. 2, this method comprises:
S101 obtains test request, includes at least one first message in test request.
Firstly the need of explanation, the producer in the application can be the producer in message queue.Wherein, message team
Column are a kind of technologies of exchange information between Distributed Application.Message queue can reside on memory or disk, queue stores messages
Until they are consumed by consumer.
In addition, message queue provides decoupling method to construct the Distributed Application realized in a manner of either synchronously or asynchronously,
It can be with executing multiple functions in the application, for example require service, exchange information or asynchronous process etc..Wherein, pass through message team
Column middleware, it can be ensured that the safety storage of message, Message Queuing Middleware store message until it is handled by application program.Such as
Fruit does not have message-oriented middleware to complete information exchange, and application developer is in order to transmit data, it is necessary to learn how with network and behaviour
The function of making system software writes corresponding application program to send and receive information, and exchange information does not have standard method, often
A application must carry out specifically programming to communicate with one or more application multi-platform, under varying environment.
Further, the producer in the message queue in the application is for generating information and sending message to message queue
Consumer in some test environment of middleware.
Optionally, the test request for carrying first message can be obtained in the application by the producer in message queue.
It should be noted that being different from the prior art, the message queue under multiple test environment is needed equipped with multiple producers
Technical solution.The application can only be equipped with the producer for being used for dispatch messages in multi-environment message queue.
Further, the first message in the application be the producer transfer to Message Queuing Middleware transmit data be
Message.It should be noted that the first message in the application consists of two parts: first, message descriptor (Message
Discription or Message Header), for describing the feature of message, such as: priority, life cycle, the message of message
(IdIDentity) etc.;Second, message body (Message Body), i.e. user data part.In addition, in Message Queuing Middleware
In, message is divided into two types, non-permanent (non-persistent) message and permanent (persistent) message.It is non-forever
Long property message is stored in memory, is to design to improve performance, when system is powered down or Message Queuing Middleware pipe
It, will be irrecoverable when managing device restarting.And permanent message is stored on hard disk, and notes down data logging, is had
High reliability can ensure that message will not lose when network and system jam.Wherein, the application is not to first
Message is specifically limited, such as first message can be various types of data files of user, and first message may be use
Processing request that family is sent to other application etc..
S102 parses test request, obtains first message and the corresponding test environmental labels of first message.
Optionally, the application can further parse the test request after obtaining test request, and thus
Obtain the first message carried in test request and the corresponding test environmental labels of first message.
Firstly the need of explanation, in the message queue in the application, it can be deployed with more set test environment simultaneously.Its
In, test environment is when carrying out application and development and test, it is necessary first to the steady testing environment of deployment.Testing can be in environment
It disposes and receives the producer of test request, the application of full dose, Message Queuing Middleware and distributed cluster system etc..Whenever
According to business demand, when starting a project, so that it may which project disposes an individual project testing environment thus, therefore, together
Multiple test environment can be existed simultaneously in one message queue.
Wherein, the corresponding test environmental labels of the first message can be used for distinguishing different test environment.For example, when disappearing
When including 3 test environment in breath queue, each test environment is corresponding with the test environment for being specific to the test environment
Mark.Respectively first test environment is corresponding with test environmental labels 1, and the second test environment is corresponding with test environmental labels 2, the
Test environmental labels 3 are corresponding with when three test environment.It should be understood that when carrying first message and test in test request
When environmental labels 1, that is, the test request is represented as the test request based on the first test environment generation.Likewise, when test is asked
When carrying first message and test environmental labels 2 in asking, that is, the test request is represented as based on the second test environment generation
Test request.When carrying first message and test environmental labels 3 in test request, that is, the test request is represented as base
In the test request of third test environment generation.
First message is sent to target message queue based on test environmental labels by S103.
It optionally,, can be with after obtaining first message and the corresponding test environmental labels of first message in the application
Further the first message is sent in the corresponding target detection environment of test environmental labels.
First message is sent to target detection environment by target message queue by S104.
Equally in S102 for example, such as when by parsing test request, obtain first message and test environment
When identifying 1, that is, the test request is represented as the test request based on the first test environment generation.The test environment can be then based on
Mark 1, sends first message in the first test environment.So that the consumer being located in the first test environment receives and consumes
First message.It again it will be understood that, when passing through parsing test request, when obtaining first message and test environmental labels 2, i.e.,
The test request is represented as the test request based on the second test environment generation.The test environmental labels 2 can be then based on, by the
One message is sent in the second test environment.So that the consumer being located in the second test environment receives and consumes first message.
And so on, the application repeats no more.
In the application, after obtaining test request, which can be parsed, and then generate at least one
First message and corresponding test environmental labels at least one first message is sent and by the test environmental labels
To message queue, then by message queue, first message is sent in target detection environment.Pass through the technology of application the application
Scheme can add the corresponding test test environmental labels of message in test request, and by a producer according to the mark
Directly send a message to the consumer in corresponding test environment.And then it can be to avoid in mostly test environment message queue
In, need the drawbacks of consuming hardware resource caused by the corresponding producer is equipped with for each consumer.
It is further alternative, in a kind of embodiment of the application, (test request is obtained, the test is asked in S101
Ask including at least one first message) after, it further include a kind of specific embodiment, as shown in Figure 2, comprising:
S201 obtains test request.
S202 parses test request, obtains first message, the corresponding test environmental labels of first message and consumer's mark
Know.
Optionally, in the application after parsing test request, in order to further avoid the dispatch messages in message queue
There is mistake, can also further obtain the corresponding test environmental labels of first message, first message and first message pair
The consumer identification answered.So that the producer can complete according to test environmental labels and consumer identification to first message
Accurate distribution.
First message is sent to message queue based on test environmental labels and consumer identification by S203.
Wherein, the application can disappear by the producer according to test environmental labels and consumer identification to carrying first
The test environment that the test request of breath carries out destination carries out dual confirmation, so that first message is accurately sent to message team
In target detection environment in column.
In a kind of possible embodiment of the application, based on test environmental labels and consumer identification, by first
Message is sent in the target detection environment in message queue, can be accomplished by the following way:
Based on test environmental labels, target detection environment is determined;
Firstly, can determine the corresponding target detection environment of test environmental labels based on test environmental labels in the application.
Wherein it is determined that the method for the corresponding target detection environment of test environmental labels in S102 due to referring to, details are not described herein.
In a kind of possible embodiment of the application, the application, can be further after determining target detection environment
It sends into the target detection environment for confirming whether the corresponding consumer of consumer identification is located in target detection environment
Query information.It should be understood that when the consumer identification is located in target detection environment, it is determined that this carries first message
Test request purpose environment address be target detection environment.When the consumer identification is not located in target detection environment,
Then can not exact p-value request purpose environment address be target detection environment, and need again to test request send confirmation mesh
Environment address message.
It is identified based on destination service, judges to correspond in the corresponding test environment of environmental labels with the presence or absence of destination service mark
Destination service;
Based on judging result, first message is sent to target detection environment.
Optionally, as the above-mentioned, when the target consumer received based on query information is located in target detection environment
Return information when, then determine that this carries the purpose environment address of the test request of first message as target detection environment.Into
One step, then the first message is sent in the target detection environment in message queue, so as to be located at target detection environment
Target consumer consumes the first message.
First message is sent to target detection environment by target message queue by S204.
In the application, after obtaining test request, which can be parsed, and then generate corresponding survey
Environmental labels and consumer identification are tried, and by the environment and consumer identification, first message is sent to message queue
In target detection environment in.By the technical solution of application the application, the corresponding survey of message can be added in test request
Examination test environmental labels and consumer identification, and directly sent a message to according to two marks by a producer corresponding
Test the consumer in environment.And then accurately message can be transmitted at the corresponding consumer of environment message queue.
It is further alternative, in one of embodiment of the application, (based on test environmental labels, incited somebody to action in S103
First message is sent to the target detection environment in message queue) after, it further include a kind of specific embodiment, such as Fig. 3 institute
Show, comprising:
S301 obtains test request.
S302 parses test request, obtains first message and the corresponding test environmental labels of first message.
S303, storage first message and the corresponding relationship for testing environmental labels.
S304, after getting second message, whether detection second message and first message are identical message.
Second message is sent in the target detection environment in message queue by S305 if so, being based on corresponding relationship.
It optionally, can be after obtaining first message and corresponding test environmental labels, further in the application
Corresponding relationship between the two is saved, so that subsequent when receiving second message identical with first message again, Ke Yigen
According to the corresponding relationship of the preservation, directly the second message is sent at corresponding consumer.It is surveyed to save parsing again
The operation of request is tried, efficiency of transmission is reinforced.
It should be understood that if the above-mentioned corresponding consumer of second message referred to is not consumption identical with first message
When person, it can be back to the producer after the consumer receives the second message, then by the second message, and again by the producer
Secondary parsing carries the test request of second message, and according to the test environmental labels in the test request, second message is sent
At to corresponding consumer.
First message is sent to target message queue based on test environmental labels by S306.
First message is sent to target detection environment by target message queue by S307.
S308 sends prompting message to target consumer, and prompting message is used to that target consumer to be prompted to consume first message,
Target consumer is the consumer under target detection environment.
Optionally, based on test environmental labels, by first message be sent to the target detection environment in message queue it
Afterwards, in order to avoid at consumer due to heavy traffic etc. caused by fail the problem of handling the first message in time, this
Application can also further send the prompting message for prompting target consumer to consume first message to the consumer.It can be with
Understand, which is the consumer under target detection environment.
In a kind of possible embodiment of the application, as shown in figure 4, for the stream of the message distributing method referred in the application
Journey schematic diagram receives the test request that carry test environmental labels, including survey as seen from Figure 4 first at the producer
Environmental labels 1, test environmental labels 2, test environmental labels 3 are tried, further, the test request can parsed and obtained pair
After the test environmental labels answered, according to the test environmental labels, each information intelligent is routed to corresponding consumption in message queue
At person.It is specifically as follows, tests at 1 corresponding messaging to consumer 1 of environmental labels, environmental labels 2 is corresponding disappears for test
Breath is sent at consumer 2, is tested at 3 corresponding messaging to consumer 3 of environmental labels.It is produced to realize by one
The test environmental labels that person carries according to each request, the method that each message is transmitted.
In the application, after obtaining test request, which can be parsed, so according to parsing after
Environmental labels are tested, first message is sent in the target detection environment in message queue, and is disappeared to first message is corresponding
The person of expense sends prompt information.By the technical solution of application the application, directly can will by a producer according to the mark
Message is sent to after the consumer in corresponding test environment, reminds it that consumption should in time to reach by sending prompt information
The purpose of message.And then it cannot can be handled in time to avoid in mostly test environment message queue when consumer's heavy traffic
The drawbacks of message.
In another embodiment of the application, as shown in figure 5, the application also provides a kind of dress of message distribution
It sets, which includes obtaining module 401, parsing module 402, the first sending module 403, wherein
Module 401 is obtained, is configured as obtaining test request, includes at least one first message in the test request;
Parsing module 402 is configured as parsing the test request, obtains the first message and the first message
Corresponding test environmental labels;
First sending module 403 is configured as that the first message is sent to target based on the test environmental labels
Message queue;
Second sending module 404 is configured as that the first message is sent to target by the target message queue
Test environment.
In the application, after obtaining test request, which can be parsed, and then generate at least one
First message and corresponding test environmental labels at least one first message is sent and by the test environmental labels
To message queue, then by message queue, first message is sent in target detection environment.Pass through the technology of application the application
Scheme can add the corresponding test test environmental labels of message in test request, and by a producer according to the mark
Directly send a message to the consumer in corresponding test environment.And then it can be to avoid in mostly test environment message queue
In, need the drawbacks of consuming hardware resource caused by the corresponding producer is equipped with for each consumer.
Optionally, in the another embodiment of the application, parsing module 402 further includes resolution unit, is sent single
Member, in which:
Resolution unit, is configured as described by the target message queue, and the first message is sent to target survey
Test ring border, comprising: identified based on the environmental labels and the destination service, the first message is sent to the target
Test environment.
In the another embodiment of the application, parsing module 402 further includes determination unit, query unit, in which:
Determination unit is configured as being identified based on the destination service, judges the corresponding test environment of the environmental labels
In with the presence or absence of the destination service identify corresponding destination service;
Query unit is configured as that the first message is sent to the target detection environment based on judging result.
It in the another embodiment of the application, further include that Xiang Suoshu destination service sends prompting message, to prompt
It states destination service and handles the first message.
It in the another embodiment of the application, further include memory module 405, in which:
Memory module 405 is configured as storing the corresponding relationship of the first message and the test environmental labels;
Memory module 405 is configured as after getting second message, detects the second message and the first message
It whether is identical message;
If so, being based on the corresponding relationship, it is corresponding described that the second message is sent to the target message queue
In target detection environment.
Fig. 6 is the logical construction block diagram of a kind of electronic equipment shown according to an exemplary embodiment.For example, electronic equipment
500 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, and medical treatment is set
It is standby, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, electronic equipment 500 may include following one or more components: processor 501 and memory 502.
Processor 501 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 501 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 501 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 501 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 501 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 502 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 502 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 502 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 501 for realizing this Shen
Please in embodiment of the method provide interaction special efficacy scaling method.
In some embodiments, electronic equipment 500 is also optional includes: peripheral device interface 503 and at least one periphery
Equipment.It can be connected by bus or signal wire between processor 501, memory 502 and peripheral device interface 503.It is each outer
Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 503.Specifically, peripheral equipment includes: to penetrate
At least one in frequency circuit 504, touch display screen 505, camera 506, voicefrequency circuit 507, positioning component 508 and power supply 509
Kind.
Peripheral device interface 503 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 501 and memory 502.In some embodiments, processor 501, memory 502 and peripheral equipment
Interface 503 is integrated on same chip or circuit board;In some other embodiments, processor 501, memory 502 and outer
Any one or two in peripheral equipment interface 503 can realize on individual chip or circuit board, the present embodiment to this not
It is limited.
Radio circuit 504 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates
Frequency circuit 504 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 504 turns electric signal
It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 504 wraps
It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip
Group, user identity module card etc..Radio circuit 504 can be carried out by least one wireless communication protocol with other terminals
Communication.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), wireless office
Domain net and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 504 may be used also
To include the related circuit of NFC (Near Field Communication, wireless near field communication), the application is not subject to this
It limits.
Display screen 505 is for showing UI (User Interface, user interface).The UI may include figure, text, figure
Mark, video and its their any combination.When display screen 505 is touch display screen, display screen 505 also there is acquisition to show
The ability of the touch signal on the surface or surface of screen 505.The touch signal can be used as control signal and be input to processor
501 are handled.At this point, display screen 505 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or
Soft keyboard.In some embodiments, display screen 505 can be one, and the front panel of electronic equipment 500 is arranged;In other realities
It applies in example, display screen 505 can be at least two, be separately positioned on the different surfaces of electronic equipment 500 or in foldover design;?
In still other embodiments, display screen 505 can be flexible display screen, is arranged on the curved surface of electronic equipment 500 or folds
On face.Even, display screen 505 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 505 can be adopted
With LCD (Liquid Crystal Display, liquid crystal display), (Organic Light-Emitting Diode, has OLED
Machine light emitting diode) etc. materials preparation.
CCD camera assembly 506 is for acquiring image or video.Optionally, CCD camera assembly 506 include front camera and
Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One
In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively
Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle
Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped
Camera shooting function.In some embodiments, CCD camera assembly 506 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp,
It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not
With the light compensation under colour temperature.
Voicefrequency circuit 507 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will
Sound wave, which is converted to electric signal and is input to processor 501, to be handled, or is input to radio circuit 504 to realize voice communication.
For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of electronic equipment 500 to be multiple.
Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 501 or radio frequency will to be come from
The electric signal of circuit 504 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking
Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action
Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 507 can be with
Including earphone jack.
Positioning component 508 is used for the current geographic position of Positioning Electronic Devices 500, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 508 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union
The positioning component of Galileo system.
Power supply 509 is used to be powered for the various components in electronic equipment 500.Power supply 509 can be alternating current, direct current
Electricity, disposable battery or rechargeable battery.When power supply 509 includes rechargeable battery, which can support wired
Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, electronic equipment 500 further includes having one or more sensors 510.The one or more passes
Sensor 510 includes but is not limited to: acceleration transducer 511, gyro sensor 512, pressure sensor 513, fingerprint sensor
514, optical sensor 515 and proximity sensor 516.
Acceleration transducer 511 can detecte the acceleration in three reference axis of the coordinate system established with electronic equipment 500
Spend size.For example, acceleration transducer 511 can be used for detecting component of the acceleration of gravity in three reference axis.Processor
The 501 acceleration of gravity signals that can be acquired according to acceleration transducer 511, control touch display screen 505 with transverse views or
Longitudinal view carries out the display of user interface.Acceleration transducer 511 can be also used for game or the exercise data of user
Acquisition.
Gyro sensor 512 can detecte body direction and the rotational angle of electronic equipment 500, gyro sensor
512 can cooperate with acquisition user to act the 3D of electronic equipment 500 with acceleration transducer 511.Processor 501 is according to gyroscope
The data that sensor 512 acquires, may be implemented following function: action induction (for example changed according to the tilt operation of user
UI), image stabilization, game control and inertial navigation when shooting.
The lower layer of side frame and/or touch display screen 505 in electronic equipment 500 can be set in pressure sensor 513.When
When the side frame of electronic equipment 500 is arranged in pressure sensor 513, user can detecte to the gripping signal of electronic equipment 500,
Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 513 acquires by processor 501.Work as pressure sensing
When the lower layer of touch display screen 505 is arranged in device 513, grasped by processor 501 according to pressure of the user to touch display screen 505
Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control,
At least one of icon control, menu control.
Fingerprint sensor 514 is used to acquire the fingerprint of user, collected according to fingerprint sensor 514 by processor 501
The identity of fingerprint recognition user, alternatively, by fingerprint sensor 514 according to the identity of collected fingerprint recognition user.It is identifying
When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 501
Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Electronics can be set in fingerprint sensor 514
Front, the back side or the side of equipment 500.When being provided with physical button or manufacturer Logo on electronic equipment 500, fingerprint sensor
514 can integrate with physical button or manufacturer Logo.
Optical sensor 515 is for acquiring ambient light intensity.In one embodiment, processor 501 can be according to optics
The ambient light intensity that sensor 515 acquires controls the display brightness of touch display screen 505.Specifically, when ambient light intensity is higher
When, the display brightness of touch display screen 505 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 505 is bright
Degree.In another embodiment, the ambient light intensity that processor 501 can also be acquired according to optical sensor 515, dynamic adjust
The acquisition parameters of CCD camera assembly 506.
Proximity sensor 516, also referred to as range sensor are generally arranged at the front panel of electronic equipment 500.Proximity sensor
516 for acquiring the distance between the front of user Yu electronic equipment 500.In one embodiment, when proximity sensor 516 is examined
When measuring the distance between the front of user and electronic equipment 500 and gradually becoming smaller, touch display screen 505 is controlled by processor 501
Breath screen state is switched to from bright screen state;When proximity sensor 516 detect between user and the front of electronic equipment 500 away from
When from becoming larger, touch display screen 505 being controlled by processor 501 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that structure shown in Fig. 6 does not constitute the restriction to electronic equipment 500, it can
To include perhaps combining certain components than illustrating more or fewer components or being arranged using different components.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of electronic equipment 500 to complete above-mentioned message point
The method of hair includes at least one first message in the test request this method comprises: obtaining test request;Described in parsing
Test request obtains the first message and the corresponding test environmental labels of the first message;Based on the test environment
Mark, is sent to target message queue for the first message;By the target message queue, the first message is sent
To target detection environment.Optionally, above-metioned instruction can also be executed by the processor 520 of electronic equipment 500 to complete above-mentioned show
Other steps involved in example property embodiment.For example, the non-transitorycomputer readable storage medium can be ROM, with
Machine access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
In the exemplary embodiment, a kind of application program/computer program product is additionally provided, including one or more refers to
It enables, which can be executed by the processor 520 of electronic equipment 500, the method to complete above-mentioned message distribution,
It include at least one first message in the test request this method comprises: obtaining test request;The test request is parsed,
Obtain the first message and the corresponding test environmental labels of the first message;Based on the test environmental labels, by institute
It states first message and is sent to target message queue;By the target message queue, the first message is sent to target and is surveyed
Test ring border.Optionally, above-metioned instruction can also be executed by the processor 520 of electronic equipment 500 to complete above-mentioned example implementation
Other steps involved in example.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
Claims (8)
1. a kind of method of message distribution characterized by comprising
Test request is obtained, includes at least one first message in the test request;
The test request is parsed, the first message and the corresponding test environmental labels of the first message are obtained;
Based on the test environmental labels, the first message is sent to target message queue;
By the target message queue, the first message is sent to target detection environment.
2. the method as described in claim 1, which is characterized in that the parsing test request, further includes: obtain described the
The corresponding destination service mark of one message;And
It is described by the target message queue, the first message is sent to target detection environment, comprising: be based on the ring
Border mark and destination service mark, are sent to the target detection environment for the first message.
3. method according to claim 2, which is characterized in that described to be based on the environmental labels and the destination service mark
Know, the first message be sent to the target detection environment, comprising:
It is identified, is judged in the corresponding test environment of the environmental labels with the presence or absence of the destination service based on the destination service
Identify corresponding destination service;
Based on judging result, the first message is sent to the target detection environment.
4. method as claimed in claim 3, which is characterized in that further include: Xiang Suoshu destination service sends prompting message, to mention
Show that the destination service handles the first message.
5. the method as described in claim 1, which is characterized in that further include:
Store the corresponding relationship of the first message and the test environmental labels;
After getting second message, detect whether the second message and the first message are identical message;
If so, being based on the corresponding relationship, the second message is sent to the corresponding target of the target message queue
It tests in environment.
6. a kind of device of message distribution characterized by comprising
Module is obtained, is configured as obtaining test request, includes at least one first message in the test request;
Parsing module is configured as parsing the test request, obtains the first message and the first message is corresponding
Test environmental labels;
First sending module is configured as that the first message is sent to target message team based on the test environmental labels
Column;
Second sending module is configured as that the first message is sent to target detection ring by the target message queue
Border.
7. a kind of electronic equipment characterized by comprising
Memory, for storing executable instruction;And
It is any in claim 1-5 to complete to execute the executable instruction for showing with the memory for processor
The operation of the method for the message distribution.
8. a kind of computer readable storage medium, for storing computer-readable instruction, which is characterized in that described instruction quilt
Perform claim requires the operation of the method for any message distribution in 1-5 when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910577390.1A CN110347520A (en) | 2019-06-28 | 2019-06-28 | Method, apparatus, electronic equipment and the medium of message distribution |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910577390.1A CN110347520A (en) | 2019-06-28 | 2019-06-28 | Method, apparatus, electronic equipment and the medium of message distribution |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110347520A true CN110347520A (en) | 2019-10-18 |
Family
ID=68177077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910577390.1A Pending CN110347520A (en) | 2019-06-28 | 2019-06-28 | Method, apparatus, electronic equipment and the medium of message distribution |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347520A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459819A (en) * | 2020-03-31 | 2020-07-28 | 北京百度网讯科技有限公司 | Software testing method and device, electronic equipment and computer readable medium |
CN112015563A (en) * | 2020-09-02 | 2020-12-01 | 中国平安财产保险股份有限公司 | Message queue switching method and device, electronic equipment and storage medium |
CN113015203A (en) * | 2021-03-22 | 2021-06-22 | Oppo广东移动通信有限公司 | Information acquisition method, device, terminal, system and storage medium |
CN113076208A (en) * | 2021-06-04 | 2021-07-06 | 上海燧原科技有限公司 | Multi-event synchronization circuit, method and computing chip |
CN113254235A (en) * | 2021-06-08 | 2021-08-13 | 行吟信息科技(武汉)有限公司 | Message transmission method and device under multi-test environment |
CN113342595A (en) * | 2021-05-26 | 2021-09-03 | 北京奇艺世纪科技有限公司 | Gray scale verification method, device, equipment and storage medium |
CN113419841A (en) * | 2021-08-24 | 2021-09-21 | 北京每日优鲜电子商务有限公司 | Message scheduling method and device, electronic equipment and computer readable medium |
CN113704117A (en) * | 2021-08-31 | 2021-11-26 | 北京三快在线科技有限公司 | Algorithm testing system, method and device |
CN113742112A (en) * | 2021-09-15 | 2021-12-03 | 武汉联影智融医疗科技有限公司 | Electrocardio image generation method and system and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9354998B2 (en) * | 2012-05-04 | 2016-05-31 | Aegis.Net, Inc. | Automated conformance and interoperability test lab |
US9542175B2 (en) * | 2005-06-24 | 2017-01-10 | Oracle International Corporation | Continuous deployment |
CN107590072A (en) * | 2017-08-30 | 2018-01-16 | 深圳乐信软件技术有限公司 | A kind of application and development and the method and apparatus of test |
CN108009028A (en) * | 2017-11-29 | 2018-05-08 | 中国平安人寿保险股份有限公司 | Message treatment method, device, equipment and computer-readable recording medium |
CN109388504A (en) * | 2018-09-26 | 2019-02-26 | 平安科技(深圳)有限公司 | Messageization docks processing method, device, computer equipment and storage medium |
-
2019
- 2019-06-28 CN CN201910577390.1A patent/CN110347520A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9542175B2 (en) * | 2005-06-24 | 2017-01-10 | Oracle International Corporation | Continuous deployment |
US9354998B2 (en) * | 2012-05-04 | 2016-05-31 | Aegis.Net, Inc. | Automated conformance and interoperability test lab |
CN107590072A (en) * | 2017-08-30 | 2018-01-16 | 深圳乐信软件技术有限公司 | A kind of application and development and the method and apparatus of test |
CN108009028A (en) * | 2017-11-29 | 2018-05-08 | 中国平安人寿保险股份有限公司 | Message treatment method, device, equipment and computer-readable recording medium |
CN109388504A (en) * | 2018-09-26 | 2019-02-26 | 平安科技(深圳)有限公司 | Messageization docks processing method, device, computer equipment and storage medium |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459819A (en) * | 2020-03-31 | 2020-07-28 | 北京百度网讯科技有限公司 | Software testing method and device, electronic equipment and computer readable medium |
CN111459819B (en) * | 2020-03-31 | 2023-08-29 | 北京百度网讯科技有限公司 | Software testing method and device, electronic equipment and computer readable medium |
CN112015563B (en) * | 2020-09-02 | 2023-07-07 | 中国平安财产保险股份有限公司 | Message queue switching method and device, electronic equipment and storage medium |
CN112015563A (en) * | 2020-09-02 | 2020-12-01 | 中国平安财产保险股份有限公司 | Message queue switching method and device, electronic equipment and storage medium |
CN113015203A (en) * | 2021-03-22 | 2021-06-22 | Oppo广东移动通信有限公司 | Information acquisition method, device, terminal, system and storage medium |
CN113342595B (en) * | 2021-05-26 | 2023-07-25 | 北京奇艺世纪科技有限公司 | Gray scale verification method, device, equipment and storage medium |
CN113342595A (en) * | 2021-05-26 | 2021-09-03 | 北京奇艺世纪科技有限公司 | Gray scale verification method, device, equipment and storage medium |
CN113076208A (en) * | 2021-06-04 | 2021-07-06 | 上海燧原科技有限公司 | Multi-event synchronization circuit, method and computing chip |
CN113076208B (en) * | 2021-06-04 | 2021-08-31 | 上海燧原科技有限公司 | Multi-event synchronization circuit, method and computing chip |
CN113254235A (en) * | 2021-06-08 | 2021-08-13 | 行吟信息科技(武汉)有限公司 | Message transmission method and device under multi-test environment |
CN113419841B (en) * | 2021-08-24 | 2021-11-23 | 北京每日优鲜电子商务有限公司 | Message scheduling method and device, electronic equipment and computer readable medium |
CN113419841A (en) * | 2021-08-24 | 2021-09-21 | 北京每日优鲜电子商务有限公司 | Message scheduling method and device, electronic equipment and computer readable medium |
CN113704117A (en) * | 2021-08-31 | 2021-11-26 | 北京三快在线科技有限公司 | Algorithm testing system, method and device |
CN113742112A (en) * | 2021-09-15 | 2021-12-03 | 武汉联影智融医疗科技有限公司 | Electrocardio image generation method and system and electronic device |
CN113742112B (en) * | 2021-09-15 | 2024-04-16 | 武汉联影智融医疗科技有限公司 | Electrocardiogram image generation method, system and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110347520A (en) | Method, apparatus, electronic equipment and the medium of message distribution | |
CN110532170A (en) | Build method, apparatus, electronic equipment and the medium of test environment | |
CN110046018A (en) | Show method, apparatus, electronic equipment and the medium of message | |
CN110493626B (en) | Video data processing method and device | |
CN110049525A (en) | Method for connecting network, device, electronic equipment and medium | |
CN110784370B (en) | Method and device for testing equipment, electronic equipment and medium | |
CN110007981A (en) | Start method, apparatus, electronic equipment and the medium of application program | |
CN109711832A (en) | The methods, devices and systems paid | |
CN110321228A (en) | Call method, device, equipment and the computer readable storage medium of Native method | |
CN108920606A (en) | map data processing method, device, terminal device and storage medium | |
CN110334736A (en) | Image-recognizing method, device, electronic equipment and medium | |
CN110147380A (en) | Data-updating method, device, server and storage medium | |
CN110535820A (en) | For the classification method of malice domain name, device, electronic equipment and medium | |
CN110288689A (en) | The method and apparatus that electronic map is rendered | |
CN111106997B (en) | Message reminding method, device, equipment and storage medium | |
CN110290191B (en) | Resource transfer result processing method, device, server, terminal and storage medium | |
CN110109770A (en) | Adjustment method, device, electronic equipment and medium | |
CN111131392A (en) | Method, device, electronic equipment and medium for processing message | |
CN110334823A (en) | Reserving method, device, electronic equipment and medium | |
CN109933594A (en) | Obtain method, apparatus, electronic equipment and the medium of data | |
CN112991439B (en) | Method, device, electronic equipment and medium for positioning target object | |
CN110781032A (en) | Data transmission method, device, electronic equipment and medium | |
CN110597840A (en) | Partner relationship establishing method, device, equipment and storage medium based on block chain | |
CN110110142A (en) | Method for processing video frequency, device, electronic equipment and medium | |
CN109240823A (en) | The method, apparatus and readable storage medium storing program for executing of multiterminal linkage processing task |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |