Specific embodiment
To keep the purposes, technical schemes and advantages of this specification clearer, it is embodied below in conjunction with this specification
Technical scheme is clearly and completely described in example and corresponding attached drawing.Obviously, described embodiment is only this Shen
Please a part of the embodiment, instead of all the embodiments.Based on the embodiment in specification, those of ordinary skill in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 2 is a kind of process for transmission information that specification embodiment provides, and specifically be can comprise the following steps that
S100: by the interface of each equipment obtained in advance, status query request is sent to each equipment respectively.
In this specification one or more embodiment, which is to the chain road for being related to interacting in many ways
The scene of each side's transmission information.For example, sending information to chain road each side shown in FIG. 1.
In the present specification, it can be held by either one equipment (e.g., server, PC etc.) provided on service link
The process of the row transmission information, the equipment can be equipment (e.g., the setting dedicated for transmission information independently of the service link
It is standby).Certainly, this specification is not especially limited the equipment, subsequent to execute the transmission information with server for convenience of describing
It is illustrated for process.
Specifically, the server can be service link since ordinary business practice is initiated from service link upstream
The server of upstream, alternatively, the server is also possible to dominate the server for the business side that the service link executes business, this theory
Bright book does not limit this.
In the present specification, when the server, which determines, meets specified requirements, each equipment obtained in advance can be passed through
Interface sends status query request to each equipment respectively.Wherein, which can be hypertext transfer protocol (HyperText
Transfer Protocol, http) interface, then the status query request specifically can be post request, be for query facility
No normal starting.
In addition, request whether query facility normally starts by post in the present specification, it specifically can be by respectively setting
The method of standby middle configuration middleware, receives post request by the middleware, and request whether just to determine the machine according to the post
Often starting.
Further, which can also be as needed, by the way that different codes is arranged, realizes more detailed equipment state
Inquiry.For example, server can also be by sending the post when test case is stored the designated position in equipment by each side's agreement
Request makes middleware in each equipment can be by test case, and whether detection device can normal processing business, etc..
Further, the interface is also possible to socket Socket interface in the present specification, then the server can be with
Each equipment establishes Socket communication connection one by one, and sends inquiry request by Socket communication connection.
In this specification one or more embodiment, the server can determine meet specified requirements when, then to each
Equipment sends status query request.Wherein, which includes at least: preset time interval, determination are detected
One of.
Specifically, server can be according to the preset time interval, poll when specified requirements is preset time interval
Each equipment.For example, it is assumed that time interval is 5 minutes, then the server can send status query request to each equipment in every 5 minutes.
When specified requirements is to determine that, due to the equipment that the server can be Business Initiator, server can when being detected
When determination needs to be implemented business, first detected, and when determining that each equipment is normal, then initiate business.
It should be noted that not limiting the interface how the service implement body obtains each equipment in this specification, specifically
Process can be set as needed, such as can be and be related to each side by business and be supplied to the server, or according to each business side
Between arrange, determined and stored by the server.
S102: each equipment is received according to the status query request and determines equipment state.
In the present specification, after server sends status query request to each equipment, for each equipment, which can
As previously described: middleware according to the pre-stored data carries out inquiring determining equipment state, and equipment state is returned to the server.In
It is that server can receive the equipment state that each equipment returns.
In addition, in the present specification, since possibly the status query request can not be received, therefore not when equipment delay machine
Meeting returning equipment state, then server can determine whether the equipment state of the equipment is normal according to the state that post is requested.For example,
Judge whether post request sends success, if so, the equipment state for waiting the equipment to return, if not, it is determined that the equipment
Equipment state is abnormal.
Further, in the present specification, when equipment break down when, it is also possible to occur can not returning equipment state feelings
Condition.For example, the middleware of equipment is unable to run or network failure etc..Then be directed to each equipment, server can determine to
After the equipment sends status query request, when not receiving the equipment state of return within the waiting time of setting, the equipment is determined
Equipment state be abnormal.
S104: when it is abnormal for determining any appliance state, prompt information is sent by instant messaging application.
In the present specification, when server determines that any appliance state received is abnormal, Instant Messenger can be passed through
The maintenance side of news application each equipment into step S100 sends prompt information, is set with existing on prompt participation each side's service link
The equipment of standby abnormal state improves working efficiency to avoid the need for the problem of manually checking equipment state.
Specifically, server does not have to send prompt information when server determines that each equipment state received is normal.
And when any appliance state that server receives is abnormal, server can determine the equipment of chain road, and there are problems, can
Prompt information is sent to each participant of chain road.
In this specification one or more embodiment, server can also be determined also each when determining the interface of each equipment
The corresponding relationship of each participant, each equipment and each interface identifier is established and stored to the interface identifier of interface.Such as table 1.
Table 1
After interface equipment state, can by table 1 determine be specifically which equipment equipment state and this open
Hair equipment is the equipment of which participant, and server is allowed to send accurate prompt information.
Server can first determine that abnormal equipment state is corresponding by stored corresponding relationship in the present specification
Equipment and participant, then can by the participant send include facility information prompt information, with prompt the participant its
There is exception in which equipment of maintenance, exclude abnormal efficiency to be turned up.
In addition, in the present specification, since multilateral business usually requires to be coordinated between each participant, usually
Each participant can be established by the group management function of instant messaging application and be contacted, therefore server can be by instant messaging application
Function is mass-sended, mass-sends the prompt information to each participant.On the one hand equipment state can be made to there is abnormal participant according to mentioning
Show that information is debugged, other participants on the other hand can be prompted abnormal reason occur, other exploitation sides is avoided to exclude
Using the failure Expenses Cost of, network etc..
Based on transmission information process described in Fig. 2, by the interface of each development equipment obtained in advance, allow to pass through
Status query request is sent to each equipment, to determine the equipment state of each equipment.And when it is abnormal for determining any appliance state,
Prompt information is sent by instant messaging application side.The drawbacks of avoiding the equipment state of existing artificial investigation equipment, improves
Working efficiency.
In addition, in the present specification, after server sends prompt information, also can determine whether that all participants are all read
It has taken the prompt information, and when there is the unread prompt information of participant, has been sent and prompted using other communication modes.
Specifically, whether server can judge the prompt information in preset time period for each prompt information sent
It is inside read, if so, subsequent operation is not executed, if it is not, then sending prompt using other communication modes, wherein other communications
Mode includes at least: at least one of phone, fax, short message.
For example, it is assumed that server after sending prompt information to participant A, B, C by instant messaging application, is determined pre-
If the still unread prompt information of participant B, then server can be by dialing participant B's in the period (e.g., 5 minutes)
The mode of phone sends the corresponding audio of content of prompt information to participant B.It is assumed that prompt information is the clothes of participant A
Being engaged in, device x1 starting is abnormal, then server can be made a phone call to participant B, and audio " prompt: participant is played after closing of the circuit
The server x1 of A starts exception, causes so-and-so business to occur exception at this stage, please know ".
Certainly, since the prior art can accomplish whether determining receiving party reads by timely communications applications
Information, therefore this specification is repeated no more for how to determine whether prompt information is read.In addition, other of each participant are logical
Letter mode can be that server obtains in advance as the equipment interface of each participant.Similarly, for how to obtain other
Communication mode, this specification is also without limitation.
Further, in the present specification, when server determines that each equipment is normal, also can be transmitted prompt equipment without
Abnormal information, so that each participant determines failure not in equipment.
Further, in the present specification, when server is determining that any appliance state is abnormal, and pass through Instant Messenger
After news application sends prompt information, status query request can also be sent to each equipment respectively according to preset time interval.
And when the equipment state for determining each equipment is normal, each equipment letter without exception is sent again by instant messaging application
Breath.
It should be noted that the executing subject of each step of this specification embodiment institute providing method may each be same and set
It is standby, alternatively, this method is also by distinct device as executing subject.For example, the executing subject of step S100 and step S102 can be with
For equipment 1, the executing subject of step S102 can be equipment 2;Alternatively, the executing subject of step S100 can be equipment 1, step
The executing subject of S102 and step S104 can be equipment 2;Etc..It is above-mentioned that this specification specific embodiment is described.
Other embodiments are within the scope of the appended claims.In some cases, the movement or step recorded in detail in the claims
Suddenly it can be executed according to the sequence being different from embodiment and desired result still may be implemented.In addition, in the accompanying drawings
The process of description not necessarily requires the particular order shown or consecutive order and is just able to achieve desired result.In certain embodiment party
In formula, multitasking and parallel processing are also possible or may be advantageous.
Based on transmission information approach described in Fig. 2, this specification embodiment also provides a kind of transmission massaging device, such as Fig. 3
It is shown.
Fig. 3 is a kind of structural schematic diagram for transmission massaging device that this specification embodiment provides, comprising:
Sending module 200 sends status query request to each equipment respectively by the interface of each equipment obtained in advance;
Receiving module 202 receives the equipment state that each equipment is determined according to the status query request;
Execution module 204 sends prompt information by instant messaging application when it is abnormal for determining any appliance state.
For each equipment, the open interface of the equipment is hypertext transfer protocol http interface, the sending module
200, post request is sent to the http interface of each equipment respectively, wherein whether the post request is normal for query facility
Starting.
The sending module 200 sends status query request to each equipment respectively when determination meets specified requirements,
In, the specified requirements includes at least: preset time interval determines and one of detect.
The sending module 200 obtains the interface of the equipment of each participant, and determines each interface identifier, establishes each participation
The square corresponding relationship between each interface identifier, and store.
The execution module 204 determines that equipment state is the interface identifier of abnormal equipment, according to each participant with
Corresponding relationship between each interface identifier, determines that the equipment state is the abnormal corresponding participant of equipment, is by described
When communications applications pocket transmission news function, send prompt information to each participant, wherein the prompt information includes described
Equipment state is the information of abnormal equipment.
The execution module 204 when determining that the prompt information is not read out, is adopted for each prompt information of transmission
Sent and prompted with other communication modes, wherein other described communication modes include at least: phone, fax, in short message at least
It is a kind of
Based on transmission information approach shown in Fig. 2, this specification embodiment also provides a kind of server, as shown in figure 4, its
In, the server includes: one or more processors and memory, and memory is stored with program, and is configured to by one
A or multiple processors execute following steps:
By the interface of each equipment obtained in advance, status query request is sent to each equipment respectively;
Receive the equipment state that each equipment is determined according to the status query request;
When it is abnormal for determining any appliance state, prompt information is sent by instant messaging application.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.