CN107729388A - A kind of app server implementation methods based on XML protocol - Google Patents

A kind of app server implementation methods based on XML protocol Download PDF

Info

Publication number
CN107729388A
CN107729388A CN201710846638.0A CN201710846638A CN107729388A CN 107729388 A CN107729388 A CN 107729388A CN 201710846638 A CN201710846638 A CN 201710846638A CN 107729388 A CN107729388 A CN 107729388A
Authority
CN
China
Prior art keywords
node
nodes
app
rule
request
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
CN201710846638.0A
Other languages
Chinese (zh)
Other versions
CN107729388B (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.)
DBAPPSecurity Co Ltd
Original Assignee
DBAPPSecurity 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 DBAPPSecurity Co Ltd filed Critical DBAPPSecurity Co Ltd
Priority to CN201710846638.0A priority Critical patent/CN107729388B/en
Publication of CN107729388A publication Critical patent/CN107729388A/en
Application granted granted Critical
Publication of CN107729388B publication Critical patent/CN107729388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to areas of information technology, it is desirable to provide a kind of app server implementation methods based on XML protocol.App server implementation method of this kind based on XML protocol, for being called management to application program, realizes that step includes:Request analysis, task scheduling, feedback of the information.The present invention realizes app servers in a straightforward manner, and the app servers can be managed to the program of calling, and obtained result is fed back in time, and operation progress is carried out integrating computing and fed back.

Description

A kind of app server implementation methods based on XML protocol
Technical field
The present invention is on areas of information technology, more particularly to a kind of app server implementation methods based on XML protocol.
Background technology
With the development of information technology, distributed and Clustering has obtained more and more extensive utilization, Distributed Calculation Also increasingly it is well known.During Distributed Calculation, it is a critically important link that unit, which calculates scheduling, and it receives Calculating task from dispatch server, result is directly or indirectly fed back to dispatch server after calculating, last reduction and simultaneously Into final result.
In unit calculating process, often a computer can disposably receive multiple in a distributed computing task Subtask.In scheduling, a sub- task-set is merged into appropriate subtask can play the work for simplifying task initialization flow With, while this also shares the partial task scheduling burden of dispatch server to calculation server, improves the utilization rate of resource.
Unit, which calculates, two kinds of forms, first, opening computing development interface by the distributed system of complexity, will be connect for this The program of mouth specification exploitation is deployed to each computer environment by scheduler program, is interacted with distributed system;Another kind is straight Connect and the program in stand-alone environment is deployed to each computer environment, the program is called and managed by the Environment Management module Reason, directly carry out interacting for input and output in system level (such as pipeline, file, network) with it.Second of development cost letter It is single, it is not necessary to understand the compartment system interface of complexity, can be current if any ready-made stand-alone program.To this calculation server, We term it app servers.
Existing similar server has the cloud computing server of web server and major company formation, and web server is such as Apache can realize the calling of application program by functions such as Java, but cataloged procedure is complex;Each major company's cloud service Device build process is also increasingly complex, and this invention is adapted to light weight deployment, changes flexible application scenarios.
The content of the invention
It is a primary object of the present invention to overcome deficiency of the prior art, there is provided one kind can utilize existing stand-alone application journey Sequence, with reference to app service routines and calling rule template, unit is easily calculated to the method for being transformed into Distributed Calculation.For solution Certainly above-mentioned technical problem, solution of the invention are:
A kind of app server implementation methods based on XML protocol are provided, for (there is obvious output such as to application program Console exports and the application program of log) it is called management, the app servers realization side based on XML protocol Method specifically includes following step:
(1) request analysis;
App servers receive scheduling request message (one section of network of XML format of the XML format from dispatch server Data are transmitted, all information for needing user to input when containing app server calls application programs), with regular configuration file To scheduling request message carry out rule match (such as meet specified XPath paths XML node interior perhaps attribute meet specify Canonical matching), extract scheduling request message in key message (path of the application program of required calling, call parameters Deng), form traffic order and application program is scheduled;
The app servers can be communicated with dispatch server, receive the request that dispatch server is sent, and call application Program obtains feeding back after output result and to dispatch server;
The dispatch server is used for the input for receiving user, arranges dispatch request and is sent to app servers, parses app The result of server feedback is simultaneously presented to user;
Several regular group is shown in the regular configuration file, each rule group contains at request matched rule and parameter Reason rule;Request matched rule defines one section of XPath expression formula and regular expression, please in XPath expression formulas pass flag When seeking message, and marking the result to be matched with the regular expression, app servers with this regular group to request at Reason;Parameter processing rule is any XML node, and each node utilizes the processing pair of app servers support according to sequencing The data matched are processed, and processing mode is unlimited, are made a distinction according to node title, and it is (such as right to be realized by app servers The mathematical operation of digital content, make logical operation after carrying out canonical matching to mark content, Formatting Output content is saved in text Part, Formatting Output content are sent to dispatch server, call application program);Different rule groups is used for performing different answer With program, different rules can cooperate the various conventional actions of control application program (such as to start, temporarily in each regular group Stop, stop, continuing executing with) and other special operationals (such as being inputted to the console of application program);Advised in parameter processing In then, if main processing is to obtain its output result by calling application program, there are output processing rule, output processing The output (being exported including but not limited to console output, daily record) of application program of the rule to being called is filtered and processed (including but not limited to notice dispatch server, preserve to file, and this filtering and process and the mistake in parameter processing rule Filter is similar with process);
(2) task scheduling;
When request starts a new application call, app servers are according to the traffic order formed in step (1) Perform application program, and the application specified in the executing rule record execution information (such as process ID) in regular group accorded with Program is called;
To be carrying out or process in suspended state application program carry out special operational (pause, stop, Continue executing with or other special operationals) when, app servers to corresponding program process carry out special operational (hang up or knot Beam or other special operationals), and to dispatch server feedback operation result;
(3) feedback of the information;
When app servers (are retouched according to request matched rule and parameter processing rule in step (1) regular configuration file Request matched rule and the parameter processing rule stated) when filtering out crucial output content, app servers according to the output data and The follow-up output processing rule (the output processing rule i.e. described in step (1) regular configuration file) is handled, and is pressed Need to be fed back to dispatch server.
In the present invention, canonical matching is with marking and xpath matches that (i.e. request analysis, task scheduling and information are anti- Feedback), specifically include following step:
Step (1A):App servers travel through to the request matched rule of each rule group in regular configuration file, use Each x requests matched rule matches to the scheduling request message of XML format, for the request matched rule of first matching Travel through the operation of its subitem;
Step (1B):The realization of matched rule subitem combination app service routines is asked, is marked using request matched rule Data are called application program, access file, logical AND mathematical operation, feedback result;
Step (1C):After the related application program of app server calls task, regular configuration file matched by canonical (mark key content) is extracted and handled in output (pipeline, file, network etc.) to application program, and journey is applied for managing Progress, result and state in sequence scheduling process.
In the present invention, the regular configuration file can be self-defined.
In the present invention, the regular configuration file is XML format, app servers to parameter processing rule and output at The XML nodes of different names have the realization of corresponding function in reason rule, are specially:
Request identification node:App server traversal rules define in file each request identification node under root node, use Its XPath specified matches to the scheduling request message of XML format, if specifying node to exist, to request identification knot The child node of point is handled;Such as<Handler path="/parames [item [@key='act'and text ()=' create']]">…</handler>, app service traversal rules define in file each handler node under root node, The xpath specified with its path attribute matches to the XML message of dispatch request, right if specifying node to exist Handler child node is handled;
Parameter tags node:The node states a parameter (variable of the value from request content), and node is entitled Param, name attribute represent the title of the parameter, and path attributes include XPath expression formulas, for marking the ginseng in request content The particular content of number present position;Such as<Param name=" target " path=" item [@key=' target ']/text ()”/>, using the value of name attributes as title, using the request message node of request identification node mark as current node, with path The path searching that attribute is specified to character (attribute or label value) for value preservation one context variable be easy to subsequent treatment Use, the character for taking this node to get is represented using $ target when subsequently quoting;
Variable declarations node:The node states a variable, the entitled val of node, and name attributes represent the name of the variable Claim, val attributes represent the value of the variable, and wherein val attributes can also use the mode of " " addend word to quote any preamble node and use The content (such as $ 1 represents the Part I content of any preamble node regular expression mark) of regular expression mark, can also make The value of variable defined in any preamble parameter declaration node or variable declarations node is quoted with " $ " plus title mode, if drawing It is not present with content and then replaces with empty content (such as<Val name=" state " val=" running "/>, node preservation One using state as title, running be value variable for subsequent treatment use);
Function call node:The node states that a variate-value derives from the functional operation that app server internals are realized, knot The entitled val of point, attribute name is name variable, call:Fn attributes are the title of institute's call function, and validate is result Legitimate verification (attribute is optional, without the empty expression of the attribute without verification), on_validate_error is obstructed to verify Later the processing node that app servers jump to, the attribute are an XPath expression formula, marked one positioned at rule configuration Node in file;Such as<Val name=" peer " call:Fn=" peername " validate=" .+ " on_ Validate_error="/root/error " errmsg=" peername empty "/>, node calling app servers The function peername realized inside program, and legitimacy verifies are carried out by the canonical matching in validate attributes, if into Work(then saves as peer variables and used for follow-up, otherwise preserves variable actual value if name is not for sky, preserves errmsg and specify Value be value, errmsg be the variable of title for follow-up use, find in rule file using/root/error as xpath paths Node handled;In addition, app servers realize the function of function as needed, and the parameter of function is arranged as required to, Indexing parameter is come with title corresponding to node;
Case and default nodes:In val nodes and param nodes, case nodes can be included and default is tied Point;Case nodes defined variable satisfaction carries out assignment again, node entitled val when specifying canonical matching, reg attributes represent to be somebody's turn to do Regular expression, val attributes represent the value newly covered;Default nodes use it when preamble case nodes at the same level all mismatch The value of val property values covering father node (val or param);Such as<Val name=" verbose " val=" $ enable_ verbose”><The val=" 1 " of case reg=" 1 "/><Default val=" 0 "/></val>, this three nodes settings The value of verbose variables, judge all to set to 0 in addition to 1 according to $ enable_verbose value;
Exec nodes:Exec nodes are that task scheduling realizes the node that configuration processor is called, node entitled exec, cmd Attribute performs the command parameter of application program required for representing, index attributes are marked for the calling of application program, Redirect attributes are an XPath expression formula, and the value have matched a processing node in regular configuration file, app services Device implementation procedure jumps to the node to carry out the processing after application program launching;Such as:<Exec cmd=" ping Www.baidu.com " index=" $ peer " redirect="/root/proc_handle "/>, node calling ping journeys Order parameter is www.baidu.com, and mark this implementation procedure task ID be peer variables value, subsequent treatment for rule at Stdout can be included by managing the child node using/root/proc_handle as the node in xpath paths, its child node in file, Log, on_end and on_index_error node;
Stdout nodes:Stdout nodes processing execution task corresponds to the content of standard output after application program, does not belong to Property, case child nodes can only be included, case child nodes there are reg attributes, and output content is matched and marked with regular expression Note, successful match and markd use $ add sequence number or $ marking titles to be quoted, and app is serviced after successful match Device continues with the output content using the child node of the case nodes;
Log nodes:Log nodes are similar with stdout nodes, but its processing content come from it is defeated in program process The daily record gone out;It must have path attributes to mark log path, the node that log nodes point in an exec nodes redirect Child node in can specify multiple, each path specifies different log path, and stdout can only be one, in addition Two kinds of node features are consistent;
On_end nodes:When each tasks carrying is completed or is stopped, the child node of this on_end node can be performed;
On_index_error nodes:In the task of execution, if task index (index attributes) has repetition, then its The content in the xpath paths specified can be performed;
Progress nodes:The node can specify cur attributes to represent the progress of current task, and max attributes are specified current The maximum of Task Progress, if the multiple subtasks performed simultaneously, app servers can carry out integrating computing;
Report nodes:The node sends result message to dispatch server;Such as:<report><!CDATA[<report >this is a report</report>]]></report>;
Kill nodes:Directly terminate performing for task, with the index of index attribute appointed tasks;
Ref nodes:The node that the node jumps to the flow of execution where the xpath paths that its path attribute specifies, After the completion of perform the follow-up nodes of ref again;
Group nodes:Its all child node is performed when going to this node;
In addition, in addition to recognition node is asked, what any node had a filter attributes has condition selection characteristic, can make thereafter Selective execution is carried out with else nodes;Such as:<Val name=" verbose " filter=" $ enable_verbose " reg =" 1 " val=" 1 "/><else><Val name=" verbose " val=" 0 "></else>If these three node definitions When variable enable_verbose is 1, it is 1 to define verbose, and otherwise verbose is 0.
Compared with prior art, the beneficial effects of the invention are as follows:
The invention provides a kind of easy mode to realize app servers, it is not necessary to which complicated deployment, scheduling rule also may be used Flexibly to make by oneself.
The present invention realizes app servers in a straightforward manner, and the app servers can be managed to the program of calling, right Obtained result is fed back in time, and operation progress is carried out integrating computing and fed back.
Brief description of the drawings
Fig. 1 is the process chart of the present invention.
Embodiment
Firstly the need of explanation, the present invention relates to the application of the software engineerings such as dispatch server, is that computer technology exists A kind of application of internet arena.In the implementation process of the present invention, the application of multiple software function modules can be related to.Application People thinks, existing combining such as after application documents, accurate understanding realization principle and goal of the invention of the invention is read over In the case of known technology, those skilled in the art can use the software programming technical ability of its grasp to realize the present invention completely.It is all Category this category that the present patent application file refers to, applicant will not enumerate.
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings:
A kind of app server implementation methods based on XML protocol as shown in Figure 1, mainly include app servers, call Regular three parts of configuration file and app application program, server program receive the request of XML format, with XML rule configuration texts Xpath identifies request type in part, marks solicited message, calls the output such as specified application, pipeline and daily record to program It is identified and is marked with canonical, and result is fed back to invoking server (its client).
App server implementation methods based on XML protocol specifically include following step:
Step (1A):App servers travel through to the request matched rule of each rule group in regular configuration file, The scheduling request message of XML format is matched with each request matched rule, the request for first matching matches rule Then carry out, travel through the operation of its subitem;
Step (1B):The realization of matched rule subitem combination app service routines is asked, is marked using request matched rule Data are called application program, access file, logical AND mathematical operation, feedback result;
Step (1C):After the related application program of app server calls task, regular configuration file leads to positive processing step Output (pipeline, file, network etc.) to application program is extracted and handled, for during managing application program scheduling Progress, result and state.
It is XML format in regular configuration file, app servers have accordingly to the node of different names in regular configuration file The realization of function, it is specially:
Request identification node:App server traversal rules define in file each request identification node under root node, use The XPath expression formulas that its path attribute is specified match to the scheduling request message of XML format, if specifying node to exist, The child node for then identifying node to request is handled;(such as<Handler path="/parames [item [@key='act' And text ()=' create']] ">…</handler>, app service traversal rules define in file each under root node Handler nodes, the xpath specified with its path attribute match to the XML message of dispatch request, if specifying node to deposit Then handler child node is being handled)
Parameter tags node:The node states a parameter (variable of the value from request content), and node is entitled Param, name attribute represent the title of the parameter, and path attributes include XPath expression formulas, for marking the ginseng in request content The particular content of number present position;(such as<Param name=" target " path=" item [@key=' target ']/ text()”/>, using the value of name attributes as title, using the request message node of request identification node mark as current node, with The path searching that path attributes are specified to character (attribute or label value) for value preservation one context variable be easy to subsequently Processing is used, and the character for taking this node to get is represented using $ target when subsequently quoting)
Variable declarations node:The node states a variable, the entitled val of node, and name attributes represent the name of the variable Claim, val attributes represent the value of the variable, and wherein val attributes can also use the mode of " " addend word to quote any preamble node The content (such as $ 1 represents the Part I content that any preamble node regular expression marks) marked with regular expression, also may be used The mode of " $ " plus title is used to quote the value of variable defined in any preamble parameter declaration node or variable declarations node, if Quote content and the content for then replacing with sky is not present;(such as<Val name=" state " val=" running "/>, the node One is preserved using state as title, running is the variable of value for subsequent treatment use)
Function call node:The node states a variable, and value derives from the functional operation that app server internals are realized, Node entitled val, attribute name are name variable, call:Fn attributes are the title of institute's call function, and validate is knot Fruit legitimate verification (attribute is optional, without the empty expression of the attribute without verification), on_validate_error is to verify not The processing node jumped to by rear app servers, the attribute are an XPath expression formula, marked one and match somebody with somebody positioned at rule Put the node in file;(such as<Val name=" peer " call:Fn=" peername " validate=" .+ " on_ Validate_error="/root/error " errmsg=" peername empty "/>, node calling app servers The function peername realized inside program, and legitimacy verifies are carried out by the canonical matching in validate attributes, if into Work(then saves as peer variables and used for follow-up, otherwise preserves variable actual value if name is not for sky, preserves errmsg and specify Value be value, errmsg be the variable of title for follow-up use, find in rule file using/root/error as xpath paths Node handled;In addition, app servers realize the function of function as needed, and the parameter of function is arranged as required to, Indexing parameter is come with title corresponding to node)
Case and default nodes:In val nodes and param nodes, case nodes can be included and default is tied Point, case nodes defined variable satisfaction carry out assignment again, node entitled val when specifying canonical matching, reg attributes represent to be somebody's turn to do Regular expression, val attributes represent the value newly covered;Default nodes use val when preamble case nodes at the same level all mismatch Attribute covers the value of variable;(such as<Val name=" verbose " val=" $ enable_verbose "><Case reg=" 1 " val=" 1 "/><Default val=" 0 "/></val>, this three nodes set the value of verbose variables, according to $ Enable_verbose value judges all to set to 0 in addition to 1)
Exec nodes:Exec nodes are that task scheduling realizes the node that configuration processor is called, node entitled exec, cmd Attribute performs the command parameter of application program required for representing, index attributes are marked for the calling of application program, Redirect attributes are an XPath expression formula, and the value have matched a processing node in regular configuration file, app services Device implementation procedure jumps to the node to carry out the processing after application program launching;(such as:<Exec cmd=" ping Www.baidu.com " index=" $ peer " redirect="/root/proc_handle "/>, node calling ping journeys Order parameter is www.baidu.com, and mark this implementation procedure task ID be peer variables value, subsequent treatment for rule at Stdout can be included by managing the child node using/root/proc_handle as the node in xpath paths, its child node in file, Log, on_end and on_index_error node)
Stdout nodes:Stdout nodes processing execution task corresponds to the content of standard output after application program, does not belong to Property, case child nodes can only be included, case child nodes there are reg attributes, and output content is matched and marked with regular expression Note, successful match and markd use $ add sequence number or $ marking titles to be quoted, and app is serviced after successful match Device continues with the output content using the child node of the case nodes;
Log nodes:Log nodes are similar with stdout nodes, but its processing content come from it is defeated in program process The daily record gone out;It must have path attributes to mark log path, the node that log nodes point in an exec nodes redirect Child node in can specify multiple, each path specifies different log path, and stdout can only be one, in addition Two kinds of node features are consistent;
On_end nodes:When each tasks carrying is completed or is stopped, the child node of this on_end node can be performed;
On_index_error nodes:In the task of execution, if task index (index attributes) has repetition, then its The content in the xpath paths specified can be performed;
Progress nodes:The node can specify cur attributes to represent the progress of current task, and max attributes are specified current The maximum of Task Progress, if the multiple subtasks performed simultaneously, app servers can carry out integrating computing;
Report nodes:The node sends result message to dispatch server;(such as:<report><!CDATA[< report>this is a report</report>]]></report>)
Kill nodes:Directly terminate performing for task, with the index of index attribute appointed tasks;
Ref nodes:The node that the node jumps to the flow of execution where the xpath paths that its path attribute specifies, After the completion of perform the follow-up nodes of ref again;
Group nodes:Its all child node is performed when going to this node;
In addition, in addition to recognition node is asked, what any node had a filter attributes has condition selection characteristic, can make thereafter Selective execution is carried out with else nodes (such as:<Val name=" verbose " filter=" $ enable_verbose " reg =" 1 " val=" 1 "/><else><Val name=" verbose " val=" 0 "></else>If these three node definitions When variable enable_verbose is 1, it is 1 to define verbose, and otherwise 0) verbose is.
In summary, the XML language that this app server by utilizing readability easily extends, with reference to xpath and the flexible mark of canonical Note, necessary logic flow control and system access function are realized, realize simple app servers.
Finally it should be noted that listed above is only specific embodiment of the invention.It is clear that the invention is not restricted to Above example, there can also be many variations.One of ordinary skill in the art can directly lead from present disclosure All deformations for going out or associating, are considered as protection scope of the present invention.

Claims (4)

1. a kind of app server implementation methods based on XML protocol, for being called management to application program, its feature exists In the app server implementation methods based on XML protocol specifically include following step:
(1) request analysis;
App servers receive the scheduling request message of the XML format from dispatch server, please to scheduling with regular configuration file Ask message to carry out rule match, extract the key message in scheduling request message, form traffic order and application program is adjusted Degree;
The app servers can be communicated with dispatch server, receive the request that dispatch server is sent, and call application program Obtain feeding back after output result and to dispatch server;
The dispatch server is used for the input for receiving user, arranges dispatch request and is sent to app servers, parsing app services The result of device feedback is simultaneously presented to user;
Several regular group is shown in the regular configuration file, each rule group contains request matched rule and parameter processing rule Then;Request matched rule defines one section of XPath expression formula and regular expression, asks to report in XPath expression formulas pass flag Text, and when marking the result to be matched with the regular expression, app servers are handled request with this regular group;Ginseng Number processing rule is any XML node, and the processing that each node is supported according to sequencing using app servers is to matching Data be processed, processing mode is unlimited, is made a distinction according to node title, is realized by app servers;Different regular group For performing different application programs, different rules can cooperate the various routines of control application program in each regular group Action and other special operationals;In parameter processing rule, if main processing is to obtain it by calling application program Output result, then have output processing rule, and the output of application program of the output processing rule to being called is filtered and processed;
(2) task scheduling;
When request starts a new application call, app servers perform according to the traffic order formed in step (1) Application program, and the application program specified in the executing rule record execution information in regular group accorded with is called;
When to be carrying out or process, the application program in suspended state carries out special operational, app servers pair Corresponding program process carries out special operational, and to dispatch server feedback operation result;
(3) feedback of the information;
When app servers go out crucial output content according to request matched rule and parameter processing rule-based filtering, app server roots Handled according to the output data and the follow-up output processing rule, and fed back on demand to dispatch server.
A kind of 2. app server implementation methods based on XML protocol according to claim 1, it is characterised in that it is described just Then matching matches with mark and xpath, specifically includes following step:
Step (1A):App servers travel through to the request matched rule of each rule group in regular configuration file, with each X request matched rules match to the scheduling request message of XML format, are carried out for the request matched rule of first matching Travel through the operation of its subitem;
Step (1B):The realization of matched rule subitem combination app service routines is asked, the data marked using request matched rule It is called application program, accesses file, logical AND mathematical operation, feedback result;
Step (1C):After the related application program of app server calls task, it is corresponding that regular configuration file passes through canonical matching Extracted and handled with the output of program, for managing progress, result and state during application program scheduling.
A kind of 3. app server implementation methods based on XML protocol according to claim 1, it is characterised in that the rule Then configuration file can be self-defined.
A kind of 4. app server implementation methods based on XML protocol according to claim 1, it is characterised in that the rule Then configuration file is XML format, the XML nodes of different names during app servers are regular to parameter processing rule and output processing There is the realization of corresponding function, be specially:
Request identification node:App server traversal rules define in file each request identification node under root node, are referred to it Fixed XPath is matched to the scheduling request message of XML format, if specifying node to exist, node is identified to request Child node is handled;
Parameter tags node:The node states a parameter, the entitled param of node, and name attributes represent the title of the parameter, Path attributes include XPath expression formulas, for marking the particular content of the parameter present position in request content;
Variable declarations node:The node states a variable, the entitled val of node, and name attributes represent the title of the variable, Val attributes represent the value of the variable, and wherein val attributes can also use the mode of " " addend word to quote any preamble node with just The then content of expression formula mark, can also use the mode of " $ " plus title to quote any preamble parameter declaration node or variable declarations The value of variable defined in node, the content of sky is replaced with if quoting content and being not present;
Function call node:The node states that a variate-value derives from the functional operation that app server internals are realized, node name Referred to as val, attribute name are name variable, call:Fn attributes are the title of institute's call function, and validate is result legitimacy Checking, on_validate_error are to verify the obstructed processing node that app servers jump to later, and the attribute is one XPath expression formulas, it marked a node being located in regular configuration file;
Case and default nodes:In val nodes and param nodes, case nodes and default nodes can be included;case Assignment, the entitled val of node, reg attributes represent the canonical table again for progress when node defined variable meets to specify canonical matching Up to formula, val attributes represent the value newly covered;Default nodes are when preamble case nodes at the same level all mismatch with its val attribute The value of value covering father node;
Exec nodes:Exec nodes are that task scheduling realizes the node that configuration processor is called, the entitled exec of node, cmd attributes The command parameter of application program is performed required for representing, index attributes are marked for the calling of application program, redirect category Property be an XPath expression formula, the value have matched one in regular configuration file processing node, app server implementations The node is jumped to carry out the processing after application program launching;
Stdout nodes:Stdout nodes processing execution task correspond to the content of standard output after application program, without attribute, Case child nodes can be included, case child nodes have reg attributes, and output content is matched and marked with regular expression, into Work(matching and markd use $ adds sequence number or $ marking titles to be quoted, and app servers use after successful match The child node of the case nodes continues with the output content;
Log nodes:Log nodes are similar with stdout nodes, but the content of its processing comes from what is exported in program process Daily record;It must have path attributes to mark log path, son of the log nodes in the exec nodes redirect nodes pointed to It can specify multiple in node, each path specifies different log path, and stdout can only be one, in addition two kinds Node feature is consistent;
On_end nodes:When each tasks carrying is completed or is stopped, the child node of this on_end node can be performed;
On_index_error nodes:In the task of execution, if task index has repetition, then its xpath path specified Content can be performed;
Progress nodes:The node can specify the progress of cur attributes expression current task, and max attributes specify current task The maximum of progress, if the multiple subtasks performed simultaneously, app servers can carry out integrating computing;
Report nodes:The node sends result message to dispatch server;
Kill nodes:Directly terminate performing for task, with the index of index attribute appointed tasks;
Ref nodes:The node that the node jumps to the flow of execution where the xpath paths that its path attribute specifies, complete Perform the follow-up nodes of ref again afterwards;
Group nodes:Its all child node is performed when going to this node;
In addition, in addition to recognition node is asked, what any node had a filter attributes has condition selection characteristic, can use thereafter Else nodes carry out selective execution.
CN201710846638.0A 2017-09-19 2017-09-19 XML protocol-based app server implementation method Active CN107729388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710846638.0A CN107729388B (en) 2017-09-19 2017-09-19 XML protocol-based app server implementation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710846638.0A CN107729388B (en) 2017-09-19 2017-09-19 XML protocol-based app server implementation method

Publications (2)

Publication Number Publication Date
CN107729388A true CN107729388A (en) 2018-02-23
CN107729388B CN107729388B (en) 2020-04-28

Family

ID=61207590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710846638.0A Active CN107729388B (en) 2017-09-19 2017-09-19 XML protocol-based app server implementation method

Country Status (1)

Country Link
CN (1) CN107729388B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582776A (en) * 2008-05-15 2009-11-18 浙江大学 Service charging method and service charging system
CN101610265A (en) * 2009-07-24 2009-12-23 深圳市永达电子股份有限公司 A kind of flow process recognition methods of Business Works
CN103559296A (en) * 2013-11-04 2014-02-05 中国电子科技集团公司第四十一研究所 XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments)
CN104618433A (en) * 2014-12-26 2015-05-13 国家电网公司 ECA (Event-Condition-Action) rule based service combination method
CN106101090A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 Operational approach and rule engine system for regulation engine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582776A (en) * 2008-05-15 2009-11-18 浙江大学 Service charging method and service charging system
CN101610265A (en) * 2009-07-24 2009-12-23 深圳市永达电子股份有限公司 A kind of flow process recognition methods of Business Works
CN103559296A (en) * 2013-11-04 2014-02-05 中国电子科技集团公司第四十一研究所 XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments)
CN104618433A (en) * 2014-12-26 2015-05-13 国家电网公司 ECA (Event-Condition-Action) rule based service combination method
CN106101090A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 Operational approach and rule engine system for regulation engine

Also Published As

Publication number Publication date
CN107729388B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
EP3502896B1 (en) Generation of an adapters configuration user interface using a data structure
CN106529673B (en) Deep learning network training method and device based on artificial intelligence
US11922094B2 (en) Database systems and methods for conversation-driven dynamic updates
EP3011442B1 (en) Method and apparatus for customized software development kit (sdk) generation
CN110968325B (en) Applet conversion method and device
US20130117064A1 (en) Business process analysis combining modeling, simulation and collaboration with web and cloud delivery
US20070011650A1 (en) Computer method and apparatus for developing web pages and applications
US20140075242A1 (en) Testing rest api applications
CN106897153B (en) Method and system for calling application programming interface
CN108134690B (en) Network service deployment process control method, device and system
CN112612452B (en) API platform realization method, device, equipment and storage medium
CN110321283B (en) Interface test case generation method and device, computer device and storage medium
US20180276060A1 (en) System and method for interoperable cloud dsl to orchestrate multiple cloud platforms and services
CN108574590A (en) A kind of opening network element method and apparatus and computer readable storage medium
JP2022027490A (en) Method for task generation, system, and non-transitory computer-readable medium
WO2020207105A1 (en) Destination message determination method and apparatus, storage medium and electronic apparatus
CN115827084A (en) Data processing method, device, equipment and storage medium
CN115934097A (en) Method, device, storage medium and electronic device for generating executable statement
WO2017087822A1 (en) Service activation system
EP3912058A1 (en) Profile data store automation via bots
CN107729388A (en) A kind of app server implementation methods based on XML protocol
Biehl GraphQL API Design
JP2022027493A (en) Method and system for task execution
CN104598223B (en) A kind of network modelling language analysis method and device
CN107506299A (en) A kind of code analysis methods and terminal device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310051 No. 188 Lianhui Street, Xixing Street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: DBAPPSECURITY Ltd.

Address before: Zhejiang Zhongcai Building No. 68 Binjiang District road Hangzhou City, Zhejiang Province, the 310051 and 15 layer

Applicant before: DBAPPSECURITY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant