CN104077141B - The optimization device and optimization method of Rserve interaction mechanisms - Google Patents

The optimization device and optimization method of Rserve interaction mechanisms Download PDF

Info

Publication number
CN104077141B
CN104077141B CN201410318912.3A CN201410318912A CN104077141B CN 104077141 B CN104077141 B CN 104077141B CN 201410318912 A CN201410318912 A CN 201410318912A CN 104077141 B CN104077141 B CN 104077141B
Authority
CN
China
Prior art keywords
rserve
value
script
result
transmitting terminal
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.)
Active
Application number
CN201410318912.3A
Other languages
Chinese (zh)
Other versions
CN104077141A (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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology 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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201410318912.3A priority Critical patent/CN104077141B/en
Publication of CN104077141A publication Critical patent/CN104077141A/en
Application granted granted Critical
Publication of CN104077141B publication Critical patent/CN104077141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of optimization device of Rserve interaction mechanisms and a kind of optimization method of Rserve interaction mechanisms, wherein, the optimization device of the Rserve interaction mechanisms, including:Setting unit, at least one object of the implementing result for being provided for storing R enforcement engines;Processing unit, after performing request execution completion in the script that the R enforcement engines are sent to order transmitting terminal, the value of at least one object according to updating the implementing result that request is performed to the script;As a result returning unit, for the result return demand sent according to the order transmitting terminal, the value of the object included in the result return demand is sent to the order transmitting terminal.By the present invention program, it can realize that script performs the log information after request is performed, warning message, the dynamic access of chart content, and then allow users to according to the information returned after the demand of oneself selection script execution.

Description

The optimization device and optimization method of Rserve interaction mechanisms
Technical field
The present invention relates to technical field of data processing, in particular to a kind of optimization device of Rserve interaction mechanisms With a kind of optimization method of Rserve interaction mechanisms.
Background technology
At present, R language is increasingly being applied to Data Mining, wherein, the increasing income property of R language, it is open and Scalability is that other Mining Linguistics can not compare, therefore, increasing system by R (be used for statistical analysis, draw Language and operating environment) it is used as the enforcement engine of its excavation.
At present, Rserve (server program of R language) is that the JAVA and R of main flow interacts open source projects, but itself There is also limitation, it is mainly reflected in:Be unable to real-time update daily record and chart-information, and can not return R scripts execution it is defeated Go out content etc..However, in actual application, not only need Rserve to return to the results set object that script is performed, and Require that output result exports content, warning, error message etc. under Console (console) state.
Therefore, how to realize that script performs the log information after request is performed, warning message, the dynamic access of chart content As technical problem urgently to be resolved hurrily.
The content of the invention
The present invention is based on above-mentioned technical problem, it is proposed that a kind of prioritization scheme of new Rserve interaction mechanisms, energy Enough realize that script performs the log information after request is performed, warning message, the dynamic access of chart content, and then enable a user to It is enough that the information that script is returned after performing is selected according to the demand of oneself.
In view of this, the present invention proposes a kind of optimization device of Rserve interaction mechanisms, including:Setting unit, is used for It is provided for storing at least one object of the implementing result of R enforcement engines;Processing unit, in the R enforcement engines pair The script that order transmitting terminal is sent is performed after request execution completion, is updated according to the implementing result that request is performed to the script The value of at least one object;As a result returning unit, for the result return demand sent according to the order transmitting terminal, is incited somebody to action The value of the object included in the result return demand is sent to the order transmitting terminal.
In the technical scheme, by setting at least one object for the implementing result for storing R enforcement engines, and in script Perform after request completion, the value to object is updated so that at least one object of setting can store script exactly Each result after execution, realizes the classification storage of implementing result, such as by log information, warning message, picture file decile Do not store, and then obtain with facilitating user.And by the way that the value of the object included in result return demand is sent to the hair of order Sending end so that user can select the information that script is returned after performing according to the demand of oneself, solve in correlation technique only The result data of script execution can be returned and user can not be met to script execution state information (such as execution journal information, warning Information, picture file) query demand the problem of.
In the above-mentioned technical solutions, it is preferable that the setting unit is additionally operable to:Self-defined letter in R performing environments is set Several and/or multiple flag bits.Perform the operation of initialization R performing environments.
In the above-mentioned technical solutions, it is preferable that the processing unit is additionally operable to:Enter in the value at least one object After row updates, the value of the multiple flag bit is updated.
In the above-mentioned technical solutions, it is preferable that also include:Clearing cell, for inciting somebody to action described in the result returning unit The value of the object included in return demand is sent to the order transmitting terminal, removes at least one described object and the letter Number.Perform the operation of cleaning R performing environments.
In the above-mentioned technical solutions, it is preferable that the object includes:Store variable, the storage warning message of log information Variable or store chart path.
According to another aspect of the present invention, it is also proposed that a kind of optimization method of Rserve interaction mechanisms, including:Set and use In at least one object of the implementing result of storage R enforcement engines;The script sent in the R enforcement engines to order transmitting terminal Execution request is performed after completion, at least one object according to being updated to the implementing result that script execution is asked Value;The result sent according to the order transmitting terminal returns to demand, and the value of the object included in the result return demand is sent out Deliver to the order transmitting terminal.
In the technical scheme, by setting at least one object for the implementing result for storing R enforcement engines, and in script Perform after request completion, the value to object is updated so that at least one object of setting can store script exactly Each result after execution, realizes the classification storage of implementing result, such as by log information, warning message, picture file decile Do not store, and then obtain with facilitating user.And by the way that the value of the object included in result return demand is sent to the hair of order Sending end so that user can select the information that script is returned after performing according to the demand of oneself, solve in correlation technique only The result data of script execution can be returned and user can not be met to script execution state information (such as execution journal information, warning Information, picture file) query demand the problem of.
In the above-mentioned technical solutions, it is preferable that before the R enforcement engines perform the script execution request, also wrap Include:SQL and/or multiple flag bits in R performing environments is set.Perform the operation of initialization R performing environments.
In the above-mentioned technical solutions, it is preferable that after being updated to the value of at least one object, in addition to: Update the value of the multiple flag bit.
In the above-mentioned technical solutions, it is preferable that sent by the value of the object included in the return demand to the life After making transmitting terminal, in addition to:Remove at least one described object and the function.Perform the operation of cleaning R performing environments.
In the above-mentioned technical solutions, it is preferable that the object includes:Store variable, the storage warning message of log information Variable or store chart path.
By above technical scheme, it can realize that script performs the log information after request is performed, warning message, in chart The dynamic access of appearance, and then allow users to according to the information returned after the demand of oneself selection script execution.
Brief description of the drawings
Fig. 1 shows the schematic block diagram of the optimization device of Rserve interaction mechanisms according to an embodiment of the invention;
Fig. 2 shows the schematic flow diagram of the optimization method of Rserve interaction mechanisms according to an embodiment of the invention;
Fig. 3 shows the interaction between Rserve systems according to an embodiment of the invention and R enforcement engines Schematic diagram.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic block diagram of the optimization device of Rserve interaction mechanisms according to an embodiment of the invention.
As shown in figure 1, the optimization device 100 of Rserve interaction mechanisms according to an embodiment of the invention, including:Set single Member 102, at least one object of the implementing result for being provided for storing R enforcement engines;Processing unit 104, in institute State after the script execution request execution completion that R enforcement engines are sent to order transmitting terminal, request is performed according to the script Implementing result update the value of at least one object;As a result returning unit 106, for being sent according to the order transmitting terminal Result return demand, the value of the object included in the result return demand is sent to the order transmitting terminal.
In the technical scheme, by setting at least one object for the implementing result for storing R enforcement engines, and in script Perform after request completion, the value to object is updated so that at least one object of setting can store script exactly Each result after execution, realizes the classification storage of implementing result, such as by log information, warning message, picture file decile Do not store, and then obtain with facilitating user.And by the way that the value of the object included in result return demand is sent to the hair of order Sending end so that user can select the information that script is returned after performing according to the demand of oneself, solve in correlation technique only The result data of script execution can be returned and user can not be met to script execution state information (such as execution journal information, warning Information, picture file) query demand the problem of.
In the above-mentioned technical solutions, it is preferable that the setting unit 102 is additionally operable to:Set self-defined in R performing environments Function and/or multiple flag bits.Perform the operation of initialization R performing environments.
In the above-mentioned technical solutions, it is preferable that the processing unit 104 is additionally operable to:To at least one object After value is updated, the value of the multiple flag bit is updated.
In the above-mentioned technical solutions, it is preferable that also include:Clearing cell 108, in the result returning unit 106 The value of the object included in the return demand is sent to the order transmitting terminal, remove at least one described object and The function.Perform the operation of cleaning R performing environments.
In the above-mentioned technical solutions, it is preferable that the object includes:Store variable, the storage warning message of log information Variable or store chart path.
Fig. 2 shows the schematic flow diagram of the optimization method of Rserve interaction mechanisms according to an embodiment of the invention.
As described in Figure 2, the optimization method of Rserve interaction mechanisms according to an embodiment of the invention, including:Step 202, It is provided for storing at least one object of the implementing result of R enforcement engines;Step 204, order is sent out in the R enforcement engines The script that sending end is sent is performed after request execution completion, according to updating the implementing result that request is performed to the script extremely The value of a few object;Step 206, the result sent according to the order transmitting terminal returns to demand, and the result, which is returned, to be needed The value of the object included in asking is sent to the order transmitting terminal.
In the technical scheme, by setting at least one object for the implementing result for storing R enforcement engines, and in script Perform after request completion, the value to object is updated so that at least one object of setting can store script exactly Each result after execution, realizes the classification storage of implementing result, such as by log information, warning message, picture file decile Do not store, and then obtain with facilitating user.And by the way that the value of the object included in result return demand is sent to the hair of order Sending end so that user can select the information that script is returned after performing according to the demand of oneself, solve in correlation technique only The result data of script execution can be returned and user can not be met to script execution state information (such as execution journal information, warning Information, picture file) query demand the problem of.
In the above-mentioned technical solutions, it is preferable that before the R enforcement engines perform the script execution request, also wrap Include:SQL and/or multiple flag bits in R performing environments is set.Perform the operation of initialization R performing environments.
In the above-mentioned technical solutions, it is preferable that after being updated to the value of at least one object, in addition to: Update the value of the multiple flag bit.
In the above-mentioned technical solutions, it is preferable that sent by the value of the object included in the return demand to the life After making transmitting terminal, in addition to:Remove at least one described object and the function.Perform the operation of cleaning R performing environments.
In the above-mentioned technical solutions, it is preferable that the object includes:Store variable, the storage warning message of log information Variable or store chart path.
With reference to Fig. 3 technical scheme is described in detail so that order transmitting terminal is JAVA servers as an example.
Fig. 3 shows the interaction between Rserve systems according to an embodiment of the invention and R enforcement engines Schematic diagram.
As shown in figure 3, the friendship between Rserve systems 302 according to an embodiment of the invention and R enforcement engines 304 Mutual process, including:
First stage:
Step 310 is performed, initializes in R performing environments, R current execution environments and multiple flag bits is set, daily record, warning is deposited The global variable of storage, the store path of diagram file, various SQLs.
Second stage:
JAVA servers 306 send execution order to Rserve examples 308, and Rserve examples 308 perform step 312, will Script performs request and sent to R enforcement engines 304, and R enforcement engines 304 can distinguish execution species:
(1) script implementing result data are purely returned
(2) perform script, any result is not returned
(3) output (print) content of script implementing result data set, also data set is returned.
(4) it is returned only to the output content of order.
R enforcement engines 304 distinguish (1) and (2) two kinds of contents, and it is returned to phase perform script progress processing The storage information of the object information answered, Update log information, warning message after the completion of script is performed, and chart, and change phase Corresponding flag bit.
Rserve systems 302 can actively perform step 314 after each perform script, that is, pull log information.
Phase III:
Step 316 is performed, cleaning R performing environments (Session) remove various variables, function.
Pass through above technical scheme so that Rserve executive mode more horn of plenty, can simultaneously returning an object value result with Object prints content, you can log information, warning message and picture file for being performed with active pull etc., and can believe daily record The classification storage such as breath, warning message and picture file, has facilitated and has obtained.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that Rserve exists in itself such as can not be real-time The limitation of Update log, chart-information, the execution output content for returning to R scripts etc..Therefore, the present invention proposes a kind of new The prioritization scheme of Rserve interaction mechanisms, can realize that script performs the log information after request is performed, warning message, in chart The dynamic access of appearance, and then allow users to according to the information returned after the demand of oneself selection script execution.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (8)

1. a kind of optimization device of Rserve interaction mechanisms, it is characterised in that including:
Setting unit, at least one object of the implementing result for being provided for storing R enforcement engines;
Processing unit, after performing request execution completion in the script that the R enforcement engines are sent to order transmitting terminal, root The value of at least one object is updated according to the implementing result that request is performed to the script;
As a result returning unit, for the result return demand sent according to the order transmitting terminal, demand is returned by the result In the value of object that includes send to the order transmitting terminal;
The setting unit is additionally operable to:
SQL and/or multiple flag bits in R performing environments is set.
2. the optimization device of Rserve interaction mechanisms according to claim 1, it is characterised in that the processing unit is also used In:
After being updated to the value of at least one object, the value of the multiple flag bit is updated.
3. the optimization device of Rserve interaction mechanisms according to claim 1, it is characterised in that also include:
Clearing cell, for sending the value of the object included in the return demand to the life in the result returning unit Make after transmitting terminal, remove at least one described object and the function.
4. the optimization device of Rserve interaction mechanisms according to any one of claim 1 to 3, it is characterised in that described Object includes:
Store the variable, the variable of storage warning message or the path for storing chart of log information.
5. a kind of optimization method of Rserve interaction mechanisms, it is characterised in that including:
It is provided for storing at least one object of the implementing result of R enforcement engines;
After the script that the R enforcement engines are sent to order transmitting terminal performs request execution completion, according to the script The implementing result for performing request updates the value of at least one object;
The result sent according to the order transmitting terminal returns to demand, and the value of the object included in the result return demand is sent out Deliver to the order transmitting terminal;
Before the R enforcement engines perform the script execution request, in addition to:
SQL and/or multiple flag bits in R performing environments is set.
6. the optimization method of Rserve interaction mechanisms according to claim 5, it is characterised in that to it is described at least one After the value of object is updated, in addition to:
Update the value of the multiple flag bit.
7. the optimization method of Rserve interaction mechanisms according to claim 5, it is characterised in that by the return demand In the value of object that includes send to the order transmitting terminal, in addition to:Remove at least one described object and the letter Number.
8. the optimization method of the Rserve interaction mechanisms according to any one of claim 5 to 7, it is characterised in that described Object includes:
Store the variable, the variable of storage warning message or the path for storing chart of log information.
CN201410318912.3A 2014-07-04 2014-07-04 The optimization device and optimization method of Rserve interaction mechanisms Active CN104077141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410318912.3A CN104077141B (en) 2014-07-04 2014-07-04 The optimization device and optimization method of Rserve interaction mechanisms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410318912.3A CN104077141B (en) 2014-07-04 2014-07-04 The optimization device and optimization method of Rserve interaction mechanisms

Publications (2)

Publication Number Publication Date
CN104077141A CN104077141A (en) 2014-10-01
CN104077141B true CN104077141B (en) 2017-09-29

Family

ID=51598412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410318912.3A Active CN104077141B (en) 2014-07-04 2014-07-04 The optimization device and optimization method of Rserve interaction mechanisms

Country Status (1)

Country Link
CN (1) CN104077141B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550043B (en) * 2015-12-08 2018-03-13 深圳市华讯方舟软件技术有限公司 A kind of data return method, method of reseptance, return mechanism and reception device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369250A (en) * 2008-10-08 2009-02-18 上海闻泰电子科技有限公司 Execution method with log based on Shell
CN102023856A (en) * 2010-10-21 2011-04-20 杭州万格网络科技有限公司 Method for outputting and operating data at server in formatting way according to demands of user
JP5174706B2 (en) * 2009-02-12 2013-04-03 株式会社日立ソリューションズ Test execution system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369250A (en) * 2008-10-08 2009-02-18 上海闻泰电子科技有限公司 Execution method with log based on Shell
JP5174706B2 (en) * 2009-02-12 2013-04-03 株式会社日立ソリューションズ Test execution system
CN102023856A (en) * 2010-10-21 2011-04-20 杭州万格网络科技有限公司 Method for outputting and operating data at server in formatting way according to demands of user

Also Published As

Publication number Publication date
CN104077141A (en) 2014-10-01

Similar Documents

Publication Publication Date Title
US20220078202A1 (en) Rule-based network-threat detection
US9690937B1 (en) Recommending a set of malicious activity detection rules in an automated, data-driven manner
US8938534B2 (en) Automatic provisioning of new users of interest for capture on a communication network
CN106796682B (en) Fill user contact's entry
US20120096145A1 (en) Multi-tier integrated security system and method to enhance lawful data interception and resource allocation
US10841268B2 (en) Methods and apparatus to generate virtual war rooms via social media in enterprise network environments
US9847968B2 (en) Method and system for generating durable host identifiers using network artifacts
US11947614B1 (en) Method and system for centralized multi-instance deployment consolidation
US20170041265A1 (en) Methods and apparatus to manage message delivery in enterprise network environments
CN109669795A (en) Crash info processing method and processing device
CN107896170A (en) Insure the monitoring method and device of application system
CN110362455A (en) A kind of data processing method and data processing equipment
CN114124861A (en) Message group sending method and device, computer equipment and storage medium
CN114116401A (en) Method, device, equipment and medium for tracking and monitoring all links of cluster message
CN106850506A (en) A kind of method and apparatus that WiFi is shared between application good friend
CN112579754A (en) Intelligent robot conversation interaction method and device, and computer equipment
DE112012000305B4 (en) Collaborative recovery from data sources
CN105812432A (en) Cloud file processing method and device
DE202017105979U1 (en) Systems and computer program products for handling formality in translations of text
US11558242B2 (en) Generation of synthetic alerts and unified dashboard for viewing multiple layers of data center simultaneously
CN104077141B (en) The optimization device and optimization method of Rserve interaction mechanisms
US20140172965A1 (en) Unified social graph
US10693731B2 (en) Flow entry management method and device
CN104572945B (en) A kind of file search method and device based on cloud storage space
US9852031B2 (en) Computer system and method of identifying a failure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094 Haidian District North Road, Beijing, No. 68

Applicant after: Yonyou Network Technology Co., Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant before: UFIDA Software Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant