CN103713982A - Method and device for monitoring return result of remote service - Google Patents

Method and device for monitoring return result of remote service Download PDF

Info

Publication number
CN103713982A
CN103713982A CN201410037539.4A CN201410037539A CN103713982A CN 103713982 A CN103713982 A CN 103713982A CN 201410037539 A CN201410037539 A CN 201410037539A CN 103713982 A CN103713982 A CN 103713982A
Authority
CN
China
Prior art keywords
monitored
remote service
advance
service
setting
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.)
Granted
Application number
CN201410037539.4A
Other languages
Chinese (zh)
Other versions
CN103713982B (en
Inventor
许华琳
王玉梅
夏鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feihu Information Technology Tianjin Co Ltd
Original Assignee
Feihu Information Technology Tianjin Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Feihu Information Technology Tianjin Co Ltd filed Critical Feihu Information Technology Tianjin Co Ltd
Priority to CN201410037539.4A priority Critical patent/CN103713982B/en
Publication of CN103713982A publication Critical patent/CN103713982A/en
Application granted granted Critical
Publication of CN103713982B publication Critical patent/CN103713982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and a device for monitoring a return result of a remote service. The method comprises the steps of loading a Java class library file package, wherein the Java class library file package contains a plurality of class files of the remote service; determining a server to which the remote service attributes according to an IP (internet protocol) address and a port number, and calling the remote service from the server according to a service name of the remote service; extracting a class file of the remote service from the Java class library file package according to a Java reflection mechanism and the service name of the remote service, and extracting the logic of a method from the class file of the remote service according to a method name of the method; running the logic of the method in the remote service according to parameters of the method to obtain the real return result of the remote service; monitoring whether the real return result of the remote service conforms to a preset condition, and determining that the remote service is normal if the real return result conforms to the preset condition, otherwise, determining that the remote service is abnormal. According to the embodiment, the loss of user groups of a website can be avoided.

Description

The method and apparatus that returning results of remote service monitored
Technical field
The present invention relates to distributed system field, particularly relate to returning results of remote service carried out to monitoring method and device.
Background technology
Due to resource sharing, and democratization of information and the demand for development coming into the open, China has entered into great internet century.The companies such as Sohu, Baidu, Sina, Tengxun, Alibaba and Netease respectively on each self-corresponding consumption market in occupation of most market shares, leading the development of China Internet industry, and affecting the process of internet, the world.In day by day fierce market competition, determine the factor of the market share, except web site contents and effect, the stability of website is also increasingly important.
In the operational process of website, impact due to network environment or hardware condition, inevitably there will be client to pass through Java remote method invocation (RMI) (RMI, Remote Method Invocation) phenomenon that the remote service that technology is called on remote service end breaks down, causes user cannot normally use website.Therefore, for Website development business, it needs a kind of method to monitor being positioned at the ruuning situation of the remote service in service end, and when definite remote service operation exception (, when definite remote service breaks down), solve a problem promptly, thereby avoid website user group's loss.
At present, there is the software that monitoring function is much provided for website both at home and abroad, as, zabbix, Nagios and Dotcom-Monitor etc.
Principle of work from these softwares, whether its port that can only monitor remote service exists, still, even if the port of remote service exists, also can not guarantee that this remote service is normal operation, whether correctly also should further monitor returning results of remote service.Therefore, to those skilled in the art, a technical matters urgently to be resolved hurrily is: how returning results of remote service monitored.
Summary of the invention
In order to solve the problems of the technologies described above, the embodiment of the present invention provides the method and apparatus that returning results of remote service monitored, to guarantee Website development business, in the situation that to monitor returning results of remote service wrong, solve a problem promptly, avoid website user group's loss.
The embodiment of the invention discloses following technical scheme:
The method that returning results of remote service monitored, comprising:
Load java class library file bag, in described java class library file bag, include the class file of a plurality of remote service;
According to the IP address and the port numbers that set in advance, determine the server at remote service to be monitored place, and from described server, call remote service to be monitored according to the Service name of the remote service to be monitored setting in advance;
According to Java reflex mechanism, and according to the Service name of the remote service to be monitored setting in advance, from described java class library file bag, extract the class file of described remote service to be monitored, and according to the method name of the method to be monitored setting in advance, from the class file of described remote service to be monitored, extract the logic of method to be monitored;
Logic according to the described method to be monitored in the described remote service to be monitored of parameter operation of the method to be monitored setting in advance, obtains the actual of described remote service to be monitored and returns results;
Monitor the actual condition setting in advance that whether meets that returns results of described remote service to be monitored, if the actual condition setting in advance that meets that returns results of described remote service to be monitored, determine described remote service normal operation to be monitored, otherwise, determine that described remote service operation to be monitored is undesired.
Preferably, also comprise:
When definite described remote service to be monitored, move when undesired, described remote service to be monitored is reported to the police, described warning message at least comprises: method name and the type of error of the Service name of described remote service to be monitored, method to be monitored.
Preferably, whether actual the returning results of the described remote service to be monitored of described monitoring is meeting the condition setting in advance, and is specially:
According to the monitoring time setting in advance, or, according to the monitoring frequency setting in advance, the actual condition setting in advance that whether meets that returns results of remote service to be monitored described in periodic monitoring.
Preferably, described loading java class library file bag, is specially:
When in advance, receive java class library file bag, and while storing described java class library file bag, from memory location, read and load described java class library file bag;
Or,
When in advance, receive maven pom file, and while storing described maven pom file, from memory location, read described maven pom file, according to the title of the java class library file bag comprising in described maven pom file and the download address download setting in advance and loading java class library file bag.
Preferably, the server at described remote service to be monitored place is a server or a server cluster for being comprised of a plurality of servers.
The device that returning results of remote service monitored, comprising:
Loading unit, for loading java class library file bag, includes the class file of a plurality of remote service in described java class library file bag;
Call unit, for according to the IP address and the port numbers that set in advance, determines the server at remote service to be monitored place, and from described server, calls remote service to be monitored according to the Service name of the remote service to be monitored setting in advance;
Extraction unit, be used for according to Java reflex mechanism, and according to the Service name of the remote service to be monitored setting in advance, from described java class library file bag, extract the class file of described remote service to be monitored, and according to the method name of the method to be monitored setting in advance, from the class file of described remote service to be monitored, extract the logic of method to be monitored;
Running unit, for according to the logic of the described method to be monitored of the described remote service to be monitored of parameter operation of the method to be monitored setting in advance, obtains the actual of described remote service to be monitored and returns results;
Monitoring means, for monitoring the actual condition setting in advance that whether meets that returns results of described remote service to be monitored, if the actual condition setting in advance that meets that returns results of described remote service to be monitored, determine described remote service normal operation to be monitored, otherwise, determine that described remote service operation to be monitored is undesired.
Preferably, also comprise:
Alarm unit, when undesired for moving when definite described remote service to be monitored, reports to the police described remote service to be monitored, and described warning message at least comprises: method name and the type of error of the Service name of described remote service to be monitored, method to be monitored.
Preferably, described monitoring means specifically for, according to the monitoring time setting in advance, or, according to the monitoring frequency setting in advance, the actual condition setting in advance that whether meets that returns results of remote service to be monitored described in periodic monitoring.
Preferably, described loading unit specifically for, when in advance, receive java class library file bag, and while storing described java class library file bag, from memory location, read and load described java class library file bag; Or, when in advance, receive maven pom file, and while storing described maven pom file, from memory location, read described maven pom file, according to the title of the java class library file bag comprising in described maven pom file and the download address download setting in advance and loading java class library file bag.
Preferably, the server at described remote service to be monitored place is a server or a server cluster for being comprised of a plurality of servers.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
Analog service is brought in the remote service that operation need to be monitored, and need resulting actual the returning results with correct scope of remote service of monitoring to compare operation, if need resulting actual the returning results in correct scope of remote service of monitoring, the operation that the remote service that this need to be monitored is described is normal, otherwise the operation that the remote service that this need to be monitored is described is abnormal.Like this, for the developer of website, its monitoring result providing according to monitoring equipment just can solve the problem of the remote service in service end in time.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of a kind of method that returning results of remote service monitored that Fig. 1 provides for the embodiment of the present invention one;
Fig. 2 is the part schematic diagram of the java class library file bag in the present invention;
The process flow diagram of the method that Fig. 3 monitors returning results of remote service for the another kind that the embodiment of the present invention two provides;
The structural drawing of a kind of device that returning results of remote service monitored that Fig. 4 provides for the embodiment of the present invention three;
The structural drawing of the device that Fig. 5 monitors returning results of remote service for the another kind that the embodiment of the present invention three provides.
Embodiment
The embodiment of the present invention provides the method and apparatus that returning results of remote service monitored.The core of technical solution of the present invention is, by a special monitoring equipment analog service arranging, bring in the remote service that operation need to be monitored, and need resulting actual the returning results with correct scope of remote service of monitoring to compare operation, if need resulting actual the returning results in correct scope of remote service of monitoring, the operation that the remote service that this need to be monitored is described is normal, otherwise the operation that the remote service that this need to be monitored is described is abnormal.Like this, for the developer of website, its monitoring result providing according to monitoring equipment just can solve the problem of the remote service in service end in time.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Embodiment mono-
Refer to Fig. 1, the process flow diagram of a kind of method that returning results of remote service monitored that it provides for the embodiment of the present invention one, the method comprises the following steps:
Step 101: load java class library file bag, include the class file of a plurality of remote service in described java class library file bag;
For example, if upload java class library file bag to monitoring equipment, monitoring equipment, after receiving this java class library file bag, is first stored this java class library file bag, and is recorded memory location.When starting the monitoring function of monitoring equipment, monitoring equipment reads this java class library file bag from memory location, and loads this java class library file bag.
Another kind of optimal way is, if upload maven pom file to monitoring equipment, and in this maven pom file, include the title of java class library file bag, monitoring equipment is after receiving this maven pom file, first store this maven pom file, and record memory location.When starting the monitoring function of monitoring equipment, monitoring equipment reads this maven pom file from memory location, according to the title of the java class library file bag comprising in maven pom file and the download address setting in advance, download java class library file bag, and load this java class library file bag.
Certainly, if java class library file bag Existence dependency bag also, except any one mode by above-mentioned two kinds of modes loads java class library file bag, also needs to load the dependence bag of this java class library file bag.
Shown in Figure 2, it is the part schematic diagram of the java class library file bag in the present invention.In this java class library file bag, the file of each suffix " class " by name is the class file of a remote service.
Step 102: according to the IP address and the port numbers that set in advance, determine the server at remote service to be monitored place, and call remote service to be monitored according to the Service name of the remote service to be monitored setting in advance from described server;
Wherein, the server at remote service to be monitored place can be a server, a server cluster that also can be comprised of a plurality of servers.
Step 103: according to Java reflex mechanism, and according to the Service name of the remote service to be monitored setting in advance, from described java class library file bag, extract the class file of remote service to be monitored, and according to the method name of the method to be monitored setting in advance, from the class file of described remote server to be monitored, extract the logic of method to be monitored;
Java reflex mechanism, has the function of the method for Dynamic Acquisition information and dynamic call object.In java applet running status, for any one class, can both know all properties and the method for this class, for any one object, can both call its any one method and attribute.
For example, when the service of the default remote service to be monitored arranging is called ApiApplyService, just can from the java class library file bag shown in Fig. 2, extract the class file ApiApplyService.class of this remote service to be monitored.When the method for the method to be detected setting in advance is called getTaoBaoCategoryByVid, can further from class file ApiApplyService.class, extract the logic of method to be monitored.
Step 104: the logic according to the described method to be monitored in the described remote service to be monitored of parameter operation of the method to be monitored setting in advance, obtains the actual of described remote service to be monitored and return results;
It should be noted that, for the method name of the IP address setting in advance, port numbers, the Service name of remote service to be monitored, method to be monitored and the parameter of method to be monitored, can pre-stored database or buffer memory in, when starting monitoring function, from database or buffer memory, read above-mentioned information.
Step 105: monitor the described actual condition setting in advance that whether meets that returns results to be monitored, if so, enter step 106, otherwise, enter step 107;
Step 106: determine described remote service normal operation to be monitored, process ends;
Step 107: determine that described remote service operation to be monitored is undesired, process ends.
Wherein, return results and comprise rreturn value type and rreturn value size.Only, when the rreturn value size of actual rreturn value type and reality all meets the condition setting in advance, could determine remote service normal operation to be monitored, otherwise, will determine that remote service operation to be monitored is undesired.
Rreturn value type generally includes following several: Number, String, Boolean, List, Set, Map, object and null value.
For above-mentioned various rreturn value types, corresponding normal rreturn value scope is set respectively, if actual rreturn value is within the scope of this normal rreturn value, just illustrate that actual rreturn value meets the condition setting in advance.As shown in the table, it defines the normal rreturn value scope corresponding with each rreturn value type by rreturn value condition and threshold value, and a rreturn value type can corresponding a plurality of normal rreturn value scopes.For example, if rreturn value type is Number, its normal rreturn value scope can have four kinds of possibilities, is respectively: be not sky, be more than or equal to minimum threshold, be less than or equal to max-thresholds, and equal some numerical value.Suppose that the normal rreturn value scope setting in advance is for being more than or equal to 50, and actual rreturn value is 55, actual rreturn value meets the condition setting in advance.
Figure BDA0000462500370000071
In addition, as preferred embodiment a kind of, can be according to the monitoring time setting in advance, or, according to the monitoring frequency setting in advance, the actual condition setting in advance that whether meets that returns results of remote service to be monitored described in periodic monitoring.
For example, it is 12:00 that monitoring time can be set, and monitoring equipment can be monitored the once actual condition setting in advance that whether meets that returns results of remote service to be monitored at the 12:00 of every day.It is 30 that monitoring frequency can also be set, and monitoring equipment can be monitored every 30 minutes the once actual condition setting in advance that whether meets that returns results of remote service to be monitored.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
By analog service, bring in the remote service that operation need to be monitored, and need resulting actual the returning results with correct scope of remote service of monitoring to compare operation, if need resulting actual the returning results in correct scope of remote service of monitoring, the operation that the remote service that this need to be monitored is described is normal, otherwise the operation that the remote service that this need to be monitored is described is abnormal.Like this, for the developer of website, its monitoring result providing according to monitoring equipment just can solve the problem of the remote service in service end in time.
Embodiment bis-
The difference of the present embodiment and embodiment mono-is, in definite remote service to be monitored, moves when undesired, further reports to the police, so that Website development business solves a problem promptly.Refer to Fig. 3, the process flow diagram of the method that its another kind providing for the embodiment of the present invention two is monitored returning results of remote service, the method comprises the following steps:
Step 301: load java class library file bag, include the class file of a plurality of remote service in described java class library file bag;
Step 302: according to the IP address and the port numbers that set in advance, determine the server at remote service to be monitored place, and call remote service to be monitored according to the Service name of the remote service to be monitored setting in advance from described server;
Step 303: according to Java reflex mechanism, and according to the Service name of the remote service to be monitored setting in advance, from described java class library file bag, extract the class file of described remote service to be monitored, and according to the method name of the method to be monitored setting in advance, from the class file of described remote service to be monitored, extract the logic of method to be monitored;
Step 304: the logic according to the described method to be monitored in the described remote service to be monitored of parameter operation of the method to be monitored setting in advance, obtains the actual of described remote service to be monitored and return results;
Step 305: monitor the actual condition setting in advance that whether meets that returns results of described remote service to be monitored, if so, enter step 306, otherwise, enter step 307;
Step 306: determine described remote service normal operation to be monitored, process ends
Step 307: determine that described remote service operation to be monitored is undesired;
The concrete implementation of above-mentioned steps 301-307 can, referring to embodiment mono-, repeat no more herein.
Step 308: described remote service to be monitored is reported to the police, and described warning message at least comprises: the Service name of described remote service to be monitored, the method for method to be monitored and type of error, process ends.
For example, can realize warning by the mode of note or mail.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
By analog service, bring in the remote service that operation need to be monitored, and need resulting actual the returning results with correct scope of remote service of monitoring to compare operation, if need resulting actual the returning results in correct scope of remote service of monitoring, the operation that the remote service that this need to be monitored is described is normal, otherwise the operation that the remote service that this need to be monitored is described is abnormal.Like this, for the developer of website, its monitoring result providing according to monitoring equipment just can solve the problem of the remote service in service end in time.
Embodiment tri-
Corresponding with a kind of above-mentioned method that returning results of remote service monitored, the embodiment of the present invention also provides a kind of returning results of remote service has been carried out to monitoring device.Refer to Fig. 4, the structural drawing of a kind of device that returning results of remote service monitored that it provides for the embodiment of the present invention three, this device comprises loading unit 401, call unit 402, extraction unit 403, running unit 404 and monitoring means 405.Principle of work below in conjunction with this device is further introduced its inner structure and annexation.
Loading unit 401, for loading java class library file bag, includes the class file of a plurality of remote service in described java class library file bag;
Call unit 402, for according to the IP address and the port numbers that set in advance, determines the server at remote service to be monitored place, and from described server, calls remote service to be monitored according to the Service name of the remote service to be monitored setting in advance;
Extraction unit 403, be used for according to Java reflex mechanism, and according to the Service name of the remote service to be monitored setting in advance, from described java class library file bag, extract the class file of described remote service to be monitored, and according to the method name of the method to be monitored setting in advance, from the class file of described remote service to be monitored, extract the logic of method to be monitored;
Running unit 404, for according to the logic of the described method to be monitored of the described remote service to be monitored of parameter operation of the method to be monitored setting in advance, obtains the actual of described remote service to be monitored and returns results;
Monitoring means 405, for monitoring the actual condition setting in advance that whether meets that returns results of described remote service to be monitored, if the actual condition setting in advance that meets that returns results of described remote service to be monitored, determine described remote service normal operation to be monitored, otherwise, determine that described remote service operation to be monitored is undesired.
Preferably, as shown in Figure 5, this device also comprises:
Alarm unit 406, when undesired for moving when definite described remote service to be monitored, described remote service to be monitored is reported to the police, and described warning message at least comprises: method name and the type of error of the Service name of described remote service to be monitored, method to be monitored.
Preferably, monitoring means 405 specifically for, according to the monitoring time setting in advance, or, according to the monitoring frequency setting in advance, the actual condition setting in advance that whether meets that returns results of remote service to be monitored described in periodic monitoring.
Preferably, loading unit 401 specifically for, when in advance, receive java class library file bag, and while storing described java class library file bag, from memory location, read and load described java class library file bag; Or, when in advance, receive maven pom file, and while storing described maven pom file, from memory location, read described maven pom file, according to the title of the java class library file bag comprising in described maven pom file and the download address download setting in advance and loading java class library file bag.
Preferably, the server at remote service to be monitored place is a server or a server cluster for being comprised of a plurality of servers.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
Analog service is brought in the remote service that operation need to be monitored, and need resulting actual the returning results with correct scope of remote service of monitoring to compare operation, if need resulting actual the returning results in correct scope of remote service of monitoring, the operation that the remote service that this need to be monitored is described is normal, otherwise the operation that the remote service that this need to be monitored is described is abnormal.Like this, for the developer of website, its monitoring result providing according to monitoring equipment just can solve the problem of the remote service in service end in time.
The technician in described field can be well understood to, and with succinct, the specific works process of the system of foregoing description, device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here for convenience of description.
In several embodiment provided by the present invention, should be understood that disclosed system, apparatus and method can realize by another way.For example, described above to device embodiment be only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can be in conjunction with being maybe integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrical, mechanical or other form.
The described unit as separating component explanation can or can be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and can adopt the form of SFU software functional unit to realize.
It should be noted that, one of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above the method and apparatus that returning results of remote service monitored provided by the present invention is described in detail, applied specific embodiment herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. a method of returning results of remote service being monitored, is characterized in that, comprising:
Load java class library file bag, in described java class library file bag, include the class file of a plurality of remote service;
According to the IP address and the port numbers that set in advance, determine the server at remote service to be monitored place, and from described server, call remote service to be monitored according to the Service name of the remote service to be monitored setting in advance;
According to Java reflex mechanism, and according to the Service name of the remote service to be monitored setting in advance, from described java class library file bag, extract the class file of described remote service to be monitored, and according to the method name of the method to be monitored setting in advance, from the class file of described remote service to be monitored, extract the logic of method to be monitored;
Logic according to the described method to be monitored in the described remote service to be monitored of parameter operation of the method to be monitored setting in advance, obtains the actual of described remote service to be monitored and returns results;
Monitor the actual condition setting in advance that whether meets that returns results of described remote service to be monitored, if the actual condition setting in advance that meets that returns results of described remote service to be monitored, determine described remote service normal operation to be monitored, otherwise, determine that described remote service operation to be monitored is undesired.
2. method according to claim 1, is characterized in that, also comprises:
When definite described remote service to be monitored, move when undesired, described remote service to be monitored is reported to the police, described warning message at least comprises: method name and the type of error of the Service name of described remote service to be monitored, method to be monitored.
3. method according to claim 1 and 2, is characterized in that, whether actual the returning results of the described remote service to be monitored of described monitoring is meeting the condition setting in advance, and is specially:
According to the monitoring time setting in advance, or, according to the monitoring frequency setting in advance, the actual condition setting in advance that whether meets that returns results of remote service to be monitored described in periodic monitoring.
4. method according to claim 1 and 2, is characterized in that, described loading java class library file bag, is specially:
When in advance, receive java class library file bag, and while storing described java class library file bag, from memory location, read and load described java class library file bag;
Or,
When in advance, receive maven pom file, and while storing described maven pom file, from memory location, read described maven pom file, according to the title of the java class library file bag comprising in described maven pom file and the download address download setting in advance and loading java class library file bag.
5. method according to claim 1 and 2, is characterized in that, the server at described remote service to be monitored place is a server or a server cluster for being comprised of a plurality of servers.
6. a device of returning results of remote service being monitored, is characterized in that, comprising:
Loading unit, for loading java class library file bag, includes the class file of a plurality of remote service in described java class library file bag;
Call unit, for according to the IP address and the port numbers that set in advance, determines the server at remote service to be monitored place, and from described server, calls remote service to be monitored according to the Service name of the remote service to be monitored setting in advance;
Extraction unit, be used for according to Java reflex mechanism, and according to the Service name of the remote service to be monitored setting in advance, from described java class library file bag, extract the class file of described remote service to be monitored, and according to the method name of the method to be monitored setting in advance, from the class file of described remote service to be monitored, extract the logic of method to be monitored;
Running unit, for according to the logic of the described method to be monitored of the described remote service to be monitored of parameter operation of the method to be monitored setting in advance, obtains the actual of described remote service to be monitored and returns results;
Monitoring means, for monitoring the actual condition setting in advance that whether meets that returns results of described remote service to be monitored, if the actual condition setting in advance that meets that returns results of described remote service to be monitored, determine described remote service normal operation to be monitored, otherwise, determine that described remote service operation to be monitored is undesired.
7. device according to claim 6, is characterized in that, also comprises:
Alarm unit, when undesired for moving when definite described remote service to be monitored, reports to the police described remote service to be monitored, and described warning message at least comprises: method name and the type of error of the Service name of described remote service to be monitored, method to be monitored.
8. according to the device described in claim 6 or 7, it is characterized in that, described monitoring means specifically for, according to the monitoring time setting in advance, or, according to the monitoring frequency setting in advance, the actual condition setting in advance that whether meets that returns results of remote service to be monitored described in periodic monitoring.
9. according to the device described in claim 6 or 7, it is characterized in that, described loading unit specifically for, when in advance, receive java class library file bag, and while storing described java class library file bag, from memory location, read and load described java class library file bag; Or, when in advance, receive maven pom file, and while storing described maven pom file, from memory location, read described maven pom file, according to the title of the java class library file bag comprising in described maven pom file and the download address download setting in advance and loading java class library file bag.
10. according to the device described in claim 6 or 7, it is characterized in that, the server at described remote service to be monitored place is a server or a server cluster for being comprised of a plurality of servers.
CN201410037539.4A 2014-01-26 2014-01-26 Remote service is returned the method and apparatus that result is monitored Active CN103713982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410037539.4A CN103713982B (en) 2014-01-26 2014-01-26 Remote service is returned the method and apparatus that result is monitored

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410037539.4A CN103713982B (en) 2014-01-26 2014-01-26 Remote service is returned the method and apparatus that result is monitored

Publications (2)

Publication Number Publication Date
CN103713982A true CN103713982A (en) 2014-04-09
CN103713982B CN103713982B (en) 2016-09-14

Family

ID=50406982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410037539.4A Active CN103713982B (en) 2014-01-26 2014-01-26 Remote service is returned the method and apparatus that result is monitored

Country Status (1)

Country Link
CN (1) CN103713982B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260179A (en) * 2015-09-24 2016-01-20 浪潮(北京)电子信息产业有限公司 Method for achieving flex and servlet interaction
CN113779078A (en) * 2020-11-17 2021-12-10 北京沃东天骏信息技术有限公司 Cache data acquisition method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308278A (en) * 2001-02-15 2001-08-15 华中科技大学 IP fault-tolerant method for colony server
CN101902368A (en) * 2010-06-10 2010-12-01 福建升腾资讯有限公司 WEB performance test method based on simulation of bulk thin client operation and test system thereof
CN102063360A (en) * 2010-11-29 2011-05-18 深圳市五巨科技有限公司 Remote server monitoring and warning method and device
CN102571840A (en) * 2010-12-16 2012-07-11 卓望数码技术(深圳)有限公司 Remote terminal test method, system and proxy server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1308278A (en) * 2001-02-15 2001-08-15 华中科技大学 IP fault-tolerant method for colony server
CN101902368A (en) * 2010-06-10 2010-12-01 福建升腾资讯有限公司 WEB performance test method based on simulation of bulk thin client operation and test system thereof
CN102063360A (en) * 2010-11-29 2011-05-18 深圳市五巨科技有限公司 Remote server monitoring and warning method and device
CN102571840A (en) * 2010-12-16 2012-07-11 卓望数码技术(深圳)有限公司 Remote terminal test method, system and proxy server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260179A (en) * 2015-09-24 2016-01-20 浪潮(北京)电子信息产业有限公司 Method for achieving flex and servlet interaction
CN113779078A (en) * 2020-11-17 2021-12-10 北京沃东天骏信息技术有限公司 Cache data acquisition method and device

Also Published As

Publication number Publication date
CN103713982B (en) 2016-09-14

Similar Documents

Publication Publication Date Title
US8055496B2 (en) Ensuring product correctness in a multilingual environment
US20140282370A1 (en) Methods for managing applications using semantic modeling and tagging and devices thereof
EP3446440B1 (en) Multi-stage network discovery
CN108289034B (en) A kind of fault discovery method and apparatus
US9535754B1 (en) Dynamic provisioning of computing resources
US20200159622A1 (en) Rule based failure addressing
CN107491371B (en) Deployment monitoring method and device
CN112766907A (en) Service data processing method and device and server
CN104461747A (en) Distributed type task scheduling system
CN105262835A (en) Data storage method and device of multiple machine rooms
CN104579765A (en) Disaster tolerance method and device for cluster system
CN112099800A (en) Code data processing method and device and server
CN106411970A (en) Fault handling method, device and system based on service call
CN106528415A (en) Software compatibility test method, business platform and system
US10826965B2 (en) Network monitoring to identify network issues
CN103440453A (en) Method for detecting operation environment of browser, client, server and system
CN103713982A (en) Method and device for monitoring return result of remote service
CN108089968A (en) A kind of method of host's machine monitoring virtual-machine data storehouse state
CN110880990A (en) Configuration checking method and device for big data cluster component and computing equipment
CN111399999A (en) Computer resource processing method and device, readable storage medium and computer equipment
CN106649584A (en) Index processing method and device in master-slave database system
WO2020117222A1 (en) Comparisons of application programming interface interactions to determine compatibilities
CN105099753A (en) Network management system and service processing method thereof
CN105808348A (en) Data service scheduling apparatus, system and method
CN103609074A (en) Application specific WEB request routing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant