CN109408197A - A kind of implementation method and device of edge calculations engine - Google Patents

A kind of implementation method and device of edge calculations engine Download PDF

Info

Publication number
CN109408197A
CN109408197A CN201811146579.7A CN201811146579A CN109408197A CN 109408197 A CN109408197 A CN 109408197A CN 201811146579 A CN201811146579 A CN 201811146579A CN 109408197 A CN109408197 A CN 109408197A
Authority
CN
China
Prior art keywords
micro
kernel
edge calculations
class
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811146579.7A
Other languages
Chinese (zh)
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.)
Shanghai Ideal Information Industry Group Co Ltd
Original Assignee
Shanghai Ideal Information Industry Group 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 Shanghai Ideal Information Industry Group Co Ltd filed Critical Shanghai Ideal Information Industry Group Co Ltd
Priority to CN201811146579.7A priority Critical patent/CN109408197A/en
Publication of CN109408197A publication Critical patent/CN109408197A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45587Isolation or security of virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses the implementation methods and device of a kind of edge calculations engine, and described method includes following steps: step S1, load starting micro-kernel bootstrap using JAVA virtual machine;Step S2 calls edge application License Manager verifying license information to prompt more new permit if licensing is invalid and terminate, if licensing is effective, enter step S3 using the micro-kernel bootstrap;Step S3 using the micro-kernel boot program loads core class libraries, and starts the main bootstrap program in core class libraries;Step S4 successively starts the Dynamic Class Loading device in the core class libraries using the main bootstrap program, class explains scanner, database access code generator and remote call service;Step S5 monitors whether receive edge calculations engine shutdown signal, if receiving edge calculations engine shutdown signal, carries out step S6;Otherwise continue to monitor;Step S6 discharges resource.

Description

A kind of implementation method and device of edge calculations engine
Technical field
The present invention relates to industry internet technical fields, more particularly to the implementation method and dress of a kind of edge calculations engine It sets.
Background technique
Currently, the critical period that enterprise's industry internet platform is expanded all in scale both at home and abroad, undoubtedly, industry is mutually Networked platforms have become the important handgrip for pushing manufacturing industry and the Internet converged development.It is with China Telecom's industry internet platform Example, China Telecom's industry internet platform are to construct a base from completely new cloud computing platform, big data service angle In the information physical development and application service platform of cloud architecture, get through between the equipment of industrial enterprise, system and enterprise and enterprise Data flow between industry.China Telecom's industry internet platform provides Complete Open formula industrial data for industrial circle corporate client Service platform constructs perfect industry internet ecosystem, while towards developer or affiliate, providing and being simple and efficient Application development tool, provide strong support for Internet of Things intelligence, serve country's net networking development strategy.
However, the Edge intelligence equipment of each manufacturer's production is widely different at present, and edge is answered for industry internet It realizes also ununified running environment, therefore provides unified side for industry internet field isomery Edge intelligence equipment Edge application runtime environment realizes that micro-kernel guidance, safety encryption, licensing control, using the edges such as lifecycle management meter Core function is calculated, the abilities such as lightweight, low-resource demand, efficient, stable is provided simultaneously with, is one and is difficult solution but urgently solves Complicated technical problem certainly.
Summary of the invention
In order to overcome the deficiencies of the above existing technologies, purpose of the present invention is to provide a kind of realities of edge calculations engine Existing method and device, with for industry internet field provide a kind of light weight, efficient, stabilization, safety, low-resource requirement edge answer With running environment, edge calculations engine is provided for various isomery Edge intelligence equipment.
In order to achieve the above object, the present invention proposes a kind of implementation method of edge calculations engine, include the following steps:
Step S1 loads starting micro-kernel bootstrap using JAVA virtual machine;
Step S2 calls edge application License Manager to verify license information using the micro-kernel bootstrap, If licensing is invalid, prompts more new permit and terminate, if licensing is effective, enter step S3;
Step S3 using the micro-kernel boot program loads core class libraries, and starts the main boot journey in core class libraries Sequence;
Step S4 successively starts the Dynamic Class Loading device in the core class libraries using the main bootstrap program, class is explained Scanner, database access code generator and remote call service;
Step S5 monitors whether receive edge calculations engine shutdown signal, if receiving edge calculations engine closes letter Number, then carry out step S6;Otherwise continue to monitor;
Step S6 discharges resource.
Preferably, in step S1, start-up parameter includes but is not limited to: JAVA virtual machine parameter, remote call service ginseng Number, the list of core class libraries, micro-kernel bootstrap entrance, main bootstrap program entrance, licensing Key, license file.
Preferably, in step S2, license file is decrypted by core classes file encryption module and licensing Key, Get a license information, and whether judge licensing according to the license information of acquisition invalid, if licensing is invalid, prompts to update Licensing simultaneously terminates, if licensing is effective, enters step S3.
Preferably, step S3 further comprises:
Step S300, the micro-kernel bootstrap call core classes file encryption module and licensing Key to decrypt core Class libraries, and load core class libraries and enter memory;
Step S301 utilizes the main bootstrap program in the micro-kernel boot program loads core class libraries.
Preferably, the core class libraries includes but is not limited to: Dynamic Class Loading device, class explain scanner, database access Code generator, remote call service, edge application License Manager, edge application micro-kernel.
Preferably, in step S301, according to the main bootstrap program entrance that step S1 is passed to, the micro-kernel bootstrap The main bootstrap program is loaded by the reflection mechanism of JAVA.
Preferably, step S4 further comprises:
Step S400 starts Dynamic Class Loading device using the main bootstrap program and loads all services into memory;
Step S401 explains scanner parsing using main bootstrap program starting class and explains and according to the life of the classification of note At different service class lists;
Step S402 parses data base configuration file using main bootstrap program log-on data library fetcher code generator Generate database access code;
Step 403, start remote call service using the main bootstrap program, monitor edge device remote call service and ask It asks.
Preferably, each edge device calls the service in the edge calculations engine by edge application micro-kernel, according to The classification of calling, edge application micro-kernel send service invocation request and receive and return the result to different edge calculations engines.
Preferably, in step S6, the release resource includes but is not limited to close remote call service, Dynamic Class Loading Device, class explain scanner, discharge corresponding resource.
In order to achieve the above objectives, the present invention also provides a kind of realization devices of edge calculations engine, comprising:
Micro-kernel bootstrap start unit, for utilizing JAVA virtual machine load starting micro-kernel bootstrap;
License Authentication unit, for calling the verifying of edge application License Manager to be permitted using the micro-kernel bootstrap Information can be demonstrate,proved, if licensing is invalid, more new permit is prompted and terminates, if licensing is effective, starts the load of core class libraries Unit;
Core class libraries loading unit for utilizing the micro-kernel boot program loads core class libraries, and starts core classes Main bootstrap program in library;
Core class libraries start unit, for successively starting the Dynamic Class Loading device in the core class libraries, class explains scanning Device, database access code generator and remote call service;
Processing unit is monitored, for monitoring whether receive edge calculations engine shutdown signal, if receiving edge meter Engine shutdown signal is calculated, then starts resource releasing unit, otherwise continues to monitor;
Resource releasing unit, for discharging resource.
Compared with prior art, a kind of implementation method of edge calculations engine of the present invention and device by micro-kernel guidance, Safety encryption, licensing control, using the edge calculations core function such as lifecycle management, are the various isomery sides of industrial circle Edge smart machine provides unified edge application running environment, provides standardization for the exploitation, test, deployment of edge application Process and standard, can effectively promote edge calculations in the Rapid Popularization in the fields such as industrial information, Internet of Things.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the implementation method of edge calculations engine of the present invention;
Fig. 2 is a kind of system architecture diagram of the realization device of edge calculations engine of the present invention;
Fig. 3 is a kind of system architecture diagram of the realization device of edge calculations engine of the present invention
Fig. 4 is the implementation configuration diagram of the embodiment of the present invention.
Specific embodiment
Below by way of specific specific example and embodiments of the present invention are described with reference to the drawings, those skilled in the art can Understand further advantage and effect of the invention easily by content disclosed in the present specification.The present invention can also pass through other differences Specific example implemented or applied, details in this specification can also be based on different perspectives and applications, without departing substantially from Various modifications and change are carried out under spirit of the invention.
Fig. 1 is a kind of step flow chart of the implementation method of edge calculations engine of the present invention.As shown in Figure 1, the present invention one The implementation method of kind edge calculations engine, comprising:
Step S1 loads starting micro-kernel bootstrap using JAVA virtual machine.
In the present invention, the edge calculations engine is supported cross-platform using JAVA virtual machine as basic running environment Operation, therefore starting JAVA virtual machine is first had to, start-up parameter includes but is not limited to: JAVA virtual machine parameter, far call clothes Business parameter, the list of core class libraries, micro-kernel bootstrap entrance, main bootstrap program entrance, licensing Key, license file etc., Then start micro-kernel bootstrap using the JAVA virtual machine, the micro-kernel bootstrap includes Main function JAVA program can be loaded by JAVA virtual machine and be started, and specifically, the JAVA virtual machine load micro-kernel bootstrap enters Memory, and by start-up parameter (such as remote call service parameter, the list of core class libraries, micro-kernel bootstrap entrance, main boot Program entry, licensing Key and license file) pass to micro-kernel bootstrap.
Step S2 calls edge application License Manager to verify license information using the micro-kernel bootstrap, If licensing is invalid, more new permit is prompted, process terminates, if licensing is effective, enters step S3.
Specifically, the micro-kernel bootstrap reads licensing Key and license file, calls edge application licensing Manager verifies license information, and step S2 further comprises:
Step S201 decrypts license file by core classes file encryption module and licensing Key, gets a license Information, the license information includes but is not limited to: title, type, organization id, and organization name, issue date, has MAC Address Imitate date, date created, some or all of in special parameter;
Whether invalid step S202 judges licensing according to the license information of acquisition, if licensing is invalid, prompts more New permit terminates guidance, if licensing is effective, S3 is entered step, specifically, if according to the license in the license information Card type approval MAC Address, validity date terminate to guide if license information is invalid;If license information is effective, Then carry out step S3.
Step S3 using the micro-kernel boot program loads core class libraries, and starts the main boot journey in core class libraries Sequence.In the specific embodiment of the invention, core class libraries is encrypted using core classes file encryption module, and specifically, step S3 is into one Step includes:
Step S300, the micro-kernel bootstrap call core classes file encryption module and licensing Key to decrypt core Class libraries, and load core class libraries and enter memory.The list of core class libraries is passed to by the start-up parameter of step S1, the core class libraries packet Include but be not limited to: Dynamic Class Loading device, class are explained scanner, database access code generator, remote call service, edge and are answered With License Manager, edge application micro-kernel, in the specific embodiment of the invention, the core classes file encryption module can be with Using a variety of enciphering and deciphering algorithms such as symmetrical, asymmetric, such as core classes file encryption module uses PBEWithMD5AndDES Algorithm encryption and decryption licensing and core class libraries
Step S301 utilizes the main bootstrap program in the micro-kernel boot program loads core class libraries.Have in the present invention In body embodiment, according to the main bootstrap program entrance that step S1 is passed to, the micro-kernel bootstrap passes through the reflection machine of JAVA System load main bootstrap program.
Step S4 successively starts the Dynamic Class Loading device in the core class libraries, class explains scanner, database access generation Code generator and remote call service.Specifically, step S4 further comprises:
Step S400 starts Dynamic Class Loading device using the main bootstrap program and loads all services into memory.? In the specific embodiment of the invention, the main bootstrap program starts Dynamic Class Loading device, is read and is configured by the Dynamic Class Loading device The storing directory that class is serviced in file, loads all service classes under the catalogue (including subdirectory) into memory.
Step S401 is parsed using main bootstrap program starting class note scanner and is handled all service classes and explains. In the specific embodiment of the invention, the main bootstrap program starting class explains scanner, explains scanner parsing note by the class It solves and generates different service class lists according to the classification of note.
Step S402 parses data base configuration file using main bootstrap program log-on data library fetcher code generator Generate database access code.In the specific embodiment of the invention, main bootstrap program log-on data library fetcher code is generated Device parses configuration file by the database access code generator, creates database connection pool, generates database access code And mapping class, provide database access ability for service class, the database access code generator can be used MyBatis, The multitype databases such as Hibernate access frame.
Step 403, start remote call service using the main bootstrap program, monitor edge device remote call service and ask It asks.In the specific embodiment of the invention, the main bootstrap program is according to the ginseng in the step S1 parameter being passed to and configuration file Number starts remote call service, monitors far call request, calls the service class object in service list to handle request, and return Processing result is returned, a variety of far call agreements such as RMI, JMS can be used in the remote call service.Correspondingly, in the present invention In specific embodiment, edge device calls the service in edge calculations engine by edge application micro-kernel, according to the class of calling Not, edge application micro-kernel sends service invocation request and receives and returns the result to different edge calculations engines.
Step S5 monitors whether receive edge calculations engine shutdown signal, if receiving the closing of edge calculations engine Signal then carries out step S6;Otherwise continue to monitor.In the specific embodiment of the invention, edge is monitored by the main bootstrap program Computing engines shutdown signal enters step S6 if listening to the triggering of edge calculations engine shutdown signal.
Step S6 discharges resource.The release resource includes but is not limited to close remote call service, Dynamic Class Loading Device, class explain scanner etc., discharge corresponding resource.
Fig. 2 is the step flow chart of the implementation method of the edge calculations engine of the specific embodiment of the invention.As shown in Fig. 2, In the specific embodiment of the invention, the implementation method of the edge calculations engine is as follows:
Step 1, start JAVA virtual machine: the edge calculations engine is realized based on JAVA language, supports cross-platform deployment, In the specific embodiment of the invention, start-up parameter include: JAVA virtual machine parameter, remote call service parameter, the list of core class libraries, Micro-kernel bootstrap entrance, main bootstrap program entrance, licensing Key, license file.
Step 2, JAVA virtual machine starts micro-kernel bootstrap: JAVA virtual machine loads in the entrance of micro-kernel bootstrap It deposits, and (remote call service parameter, the list of core class libraries, micro-kernel bootstrap entrance, main bootstrap program enter by start-up parameter Mouth, license file) pass to micro-kernel bootstrap.
Step 3, license validation: micro-kernel bootstrap reads licensing Key and license file, calls edge application License Manager verifies license information, specific as follows:
1) license file is decrypted by core classes file encryption module and licensing Key, the information of licensing includes: Title, type, organization id, organization name, MAC Address, issue date, validity date, date created, special parameter;
2) according to the type approval MAC Address of licensing, validity date, if license information is invalid, terminate to guide; If license information is effective, step 4 is carried out.
Step 4, micro-kernel boot program loads core class libraries:
In the specific embodiment of the invention, core class libraries is encrypted using core classes file encryption module, micro-kernel bootstrap It calls core classes file encryption module and licensing Key to decrypt core class libraries, and loads core class libraries and enter memory (core class libraries List is passed to by the start-up parameter of step 1, and core class libraries includes: Dynamic Class Loading device, class note scanner, database access generation Code generator, remote call service, edge application License Manager, edge application micro-kernel).
Step 5, the main bootstrap program in micro-kernel boot program loads core class libraries: the main program being passed to according to step 1 Entrance is guided, micro-kernel bootstrap loads main bootstrap program by the reflection mechanism of JAVA.
Step 6, main bootstrap program starts Dynamic Class Loading device: Dynamic Class Loading device, which is read, services depositing for class in configuration file Catalogue is put, loads all service classes under the catalogue (including subdirectory) into memory.
Step 7, main bootstrap program starting class explains scanner: class is explained scanner parsing and is explained and according to the classification of note Generate different service class lists.
Step 8, main bootstrap program log-on data library fetcher code generator: database access code generator parsing configuration File creates database connection pool, generates database access code and mapping class, provides database access ability for service class.
Step 9, main bootstrap program start remote call service: remote call service according to step 1 be passed to parameter and Parameter in configuration file starts remote call service, monitors far call request, calls the service class object in service list Processing request, and return to processing result.
Step 10, the signal whether closed monitored and carries out step if receiving shutdown signal for edge calculations engine 11;Otherwise continue to monitor.
Step 11, it discharges resource: closing remote call service, Dynamic Class Loading device, class and explain scanner etc., release is corresponding Resource.
Step 12, edge device calls the service in edge calculations engine by edge application micro-kernel, according to calling Classification, edge application micro-kernel send service invocation request and receive and return the result to different edge calculations engines.
Fig. 3 is a kind of system architecture diagram of the realization device of edge calculations engine of the present invention.As shown in figure 3, the present invention one The realization device of kind edge calculations engine, comprising:
Micro-kernel bootstrap start unit 301, for utilizing JAVA virtual machine load starting micro-kernel bootstrap.
In the present invention, cross-platform operation is supported, therefore micro-kernel draws as basic running environment using JAVA virtual machine Lead sequence start unit 301 first has to starting JAVA virtual machine, and start-up parameter includes but is not limited to: JAVA virtual machine parameter, remote Journey calls service parameter, the list of core class libraries, micro-kernel bootstrap entrance, main bootstrap program entrance, licensing Key, license File etc. is demonstrate,proved, then starts micro-kernel bootstrap using the JAVA virtual machine, the micro-kernel bootstrap is to include The JAVA program of Main function can be loaded by JAVA virtual machine and be started, and specifically, the JAVA virtual machine load micro-kernel draws Lead sequence enters memory, and by start-up parameter (such as remote call service parameter, the list of core class libraries, micro-kernel bootstrap Entrance, main bootstrap program entrance, licensing Key and license file) pass to micro-kernel bootstrap.
License Authentication unit 302, for calling edge application License Manager to test using the micro-kernel bootstrap Card license information prompts more new permit and terminates if licensing is invalid, if licensing is effective, starts core class libraries Loading unit 303.
Specifically, the License Authentication unit 302 reads licensing Key and licensing using the micro-kernel bootstrap File calls edge application License Manager to verify license information, and the License Authentication unit 302 is specifically used for:
License file is decrypted by core classes file encryption module and licensing Key, get a license information, described License information includes but is not limited to: title, type, organization id, organization name, MAC Address, issue date, validity date, wound Build the date, some or all of in special parameter;
It is whether invalid that licensing is judged according to the license information of acquisition, if licensing is invalid, prompts more new permit, Terminate guidance, if licensing is effective, starts core class libraries loading unit 303, specifically, if according in the license information License type verifying MAC Address, validity date terminate to guide if license information is invalid;If license information has Effect, then start core class libraries loading unit 303.
Core class libraries loading unit 303 for utilizing the micro-kernel boot program loads core class libraries, and starts core Main bootstrap program in class libraries.In the specific embodiment of the invention, core class libraries is encrypted using core classes file encryption module, tool Body, core class libraries loading unit 303 further comprises:
Decryption unit calls core classes file encryption module and licensing Key to decrypt using the micro-kernel bootstrap Core class libraries, and load core class libraries and enter memory.The list of core class libraries by micro-kernel bootstrap start unit 301 starting Parameter is incoming, and the core class libraries includes but is not limited to: Dynamic Class Loading device, class explain scanner, the life of database access code It grows up to be a useful person, remote call service, edge application License Manager, edge application micro-kernel, in the specific embodiment of the invention, institute Stating core classes file encryption module can be used a variety of enciphering and deciphering algorithms such as symmetrical, asymmetric, such as the core classes file encryption Module uses PBEWithMD5AndDES algorithm encryption and decryption licensing and core class libraries
Main bootstrap program loading unit, for utilizing the main boot journey in the micro-kernel boot program loads core class libraries Sequence.In the specific embodiment of the invention, according to the main bootstrap program entrance that micro-kernel bootstrap start unit 301 is passed to, institute It states micro-kernel bootstrap and main bootstrap program is loaded by the reflection mechanism of JAVA.
Core class libraries start unit 304, for successively starting the Dynamic Class Loading device in the core class libraries, class note is swept Retouch device, database access code generator and remote call service.Specifically, core class libraries start unit 304 further wraps It includes:
Dynamic Class Loading device start unit, for starting Dynamic Class Loading device using the main bootstrap program and loading all It services in memory.In the specific embodiment of the invention, the main bootstrap program starts Dynamic Class Loading device, by the dynamic class Loader reads the storing directory that class is serviced in configuration file, loads all service classes under the catalogue (including subdirectory) in In depositing.
Class explains scanner start unit, for parsing and handling using main bootstrap program starting class note scanner All service classes are explained.In the specific embodiment of the invention, the main bootstrap program starting class explains scanner, is infused by the class Solution scanner parsing explains and generates different service class lists according to the classification of note.
Database access code generator start unit, for utilizing main bootstrap program log-on data library fetcher code Generator parses data base configuration file and generates database access code.In the specific embodiment of the invention, the main boot journey Sequence log-on data library fetcher code generator parses configuration file by the database access code generator, creates database Connection pool generates database access code and mapping class, provides database access ability, the database access generation for service class The multitype databases such as MyBatis, Hibernate access frame can be used in code generator.
Remote call service start unit monitors edge for starting remote call service using the main bootstrap program The request of equipment remote call service.In the specific embodiment of the invention, the main bootstrap program is opened according to micro-kernel bootstrap Parameter in the incoming parameter of moving cell 301 and configuration file, starts remote call service, monitors far call request, adjusts Handle request with the service class object in service list, and return to processing result, the remote call service can be used RMI, A variety of far call agreements such as JMS.Correspondingly, in the specific embodiment of the invention, edge device passes through edge application micro-kernel The service in edge calculations engine is called, according to the classification of calling, edge application micro-kernel is sent out to different edge calculations engines It send service invocation request and receives and return the result.
Processing unit 305 is monitored, for monitoring whether receive edge calculations engine shutdown signal, if receiving edge Computing engines shutdown signal then starts resource releasing unit 306;Otherwise continue to monitor.In the specific embodiment of the invention, monitor Processing unit 305 monitors edge calculations engine shutdown signal by the main bootstrap program, if listening to edge calculations engine Shutdown signal triggering then starts resource releasing unit 306.
Resource releasing unit 306, for discharging resource.The release resource includes but is not limited to close far call clothes Business, Dynamic Class Loading device, class explain scanner etc., discharge corresponding resource.
Embodiment
As shown in figure 4, being one embodiment of the method for the present invention, China Telecom's industry internet platform is using the present invention's Running environment of the edge calculations engine as edge application.
Step 1, start edge calculations engine at the edge of the various heterogeneous devices of industry internet.
Step 2, standard JVM starts the micro-kernel bootstrap of edge calculations engine.
Step 3, micro-kernel bootstrap calls edge application License Manager to verify license information;If licensing It is effective then decrypt core class libraries, and the core class libraries of decryption is loaded into memory;If licensing is invalid, terminate to guide.
Step 4, edge calculations engine start Dynamic Class Loading device, Dynamic Class Loading device load China Telecom's industry internet The kernel service class of platform.
Step 5, edge calculations engine start class explains scanner, the core clothes of scanning China Telecom's industry internet platform Business class generates different service class lists according to explaining.
Step 6, edge calculations engine parses China Telecom's industry internet platform by database access code generator Data base configuration file, create database connection pool, generate database access code and mapping class.
Step 7, edge calculations engine reads remote call service parameter, starts remote call service, is China Telecom's work The isomery Edge intelligence equipment of industry internet platform provides edge calculations service.
In conclusion the implementation method and device of a kind of edge calculations engine of the present invention are guided by micro-kernel, safety adds Close, licensing controls, using the edge calculations core function such as lifecycle management, is the various isomery Edge intelligences of industrial circle Equipment provides unified edge application running environment, provides the process of standardization for the exploitation, test, deployment of edge application And standard, it can effectively promote edge calculations at the Rapid Popularization in the fields such as industrial information, Internet of Things.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.Any Without departing from the spirit and scope of the present invention, modifications and changes are made to the above embodiments by field technical staff.Therefore, The scope of the present invention, should be as listed in the claims.

Claims (10)

1. a kind of implementation method of edge calculations engine, includes the following steps:
Step S1 loads starting micro-kernel bootstrap using JAVA virtual machine;
Step S2 calls edge application License Manager to verify license information using the micro-kernel bootstrap, if being permitted It is invalid to demonstrate,prove, then prompts more new permit and terminate, if licensing is effective, enter step S3;
Step S3 using the micro-kernel boot program loads core class libraries, and starts the main bootstrap program in core class libraries;
Step S4 successively starts the Dynamic Class Loading device in the core class libraries using the main bootstrap program, class explains scanning Device, database access code generator and remote call service;
Step S5 monitors whether receive edge calculations engine shutdown signal, if receiving edge calculations engine shutdown signal, Carry out step S6;Otherwise continue to monitor;
Step S6 discharges resource.
2. a kind of implementation method of edge calculations engine as described in claim 1, which is characterized in that in step S1, starting Parameter includes but is not limited to: JAVA virtual machine parameter, remote call service parameter, the list of core class libraries, micro-kernel bootstrap Entrance, main bootstrap program entrance, licensing Key, license file.
3. a kind of implementation method of edge calculations engine as claimed in claim 2, which is characterized in that in step S2, pass through Core classes file encryption module and licensing Key decrypt license file, and get a license information, according to the licensing of acquisition Whether information judges licensing invalid, if licensing is invalid, prompts more new permit and terminates, if licensing is effective, into Enter step S3.
4. a kind of implementation method of edge calculations engine as claimed in claim 2, which is characterized in that step S3 is further wrapped It includes:
Step S300, the micro-kernel bootstrap call core classes file encryption module and licensing Key to decrypt core class libraries, And it loads core class libraries and enters memory;
Step S301 utilizes the main bootstrap program in the micro-kernel boot program loads core class libraries.
5. a kind of implementation method of edge calculations engine as claimed in claim 4, which is characterized in that the core class libraries includes But be not limited to: Dynamic Class Loading device, class explain scanner, database access code generator, remote call service, edge application License Manager, edge application micro-kernel.
6. a kind of implementation method of edge calculations engine as claimed in claim 4, it is characterised in that: in step S301, root According to the main bootstrap program entrance that step S1 is passed to, the micro-kernel bootstrap loads the master by the reflection mechanism of JAVA and draws Lead sequence.
7. a kind of implementation method of edge calculations engine as claimed in claim 5, which is characterized in that step S4 is further wrapped It includes:
Step S400 starts Dynamic Class Loading device using the main bootstrap program and loads all services into memory;
Step S401 explains scanner parsing note using main bootstrap program starting class and is generated not according to the classification of note Same service class list;
Step S402 is generated using main bootstrap program log-on data library fetcher code generator parsing data base configuration file Database access code;
Step 403, start remote call service using the main bootstrap program, monitor the request of edge device remote call service.
8. a kind of implementation method of edge calculations engine as claimed in claim 7, it is characterised in that: each edge device passes through side Edge application micro-kernel calls the service in the edge calculations engine, and according to the classification of calling, edge application micro-kernel is to difference Edge calculations engine send service invocation request and receive return the result.
9. a kind of implementation method of edge calculations engine as claimed in claim 5, it is characterised in that: described in step S6 Discharging resource includes but is not limited to close remote call service, Dynamic Class Loading device, class to explain scanner, discharges corresponding money Source.
10. a kind of realization device of edge calculations engine, comprising:
Micro-kernel bootstrap start unit, for utilizing JAVA virtual machine load starting micro-kernel bootstrap;
License Authentication unit, for calling edge application License Manager to verify licensing using the micro-kernel bootstrap Information prompts more new permit and terminates if licensing is invalid, if licensing is effective, starts core class libraries loading unit;
Core class libraries loading unit for utilizing the micro-kernel boot program loads core class libraries, and starts in core class libraries Main bootstrap program;
Core class libraries start unit, for successively starting the Dynamic Class Loading device in the core class libraries, class explains scanner, number According to library fetcher code generator and remote call service;
Processing unit is monitored, for monitoring whether receive edge calculations engine shutdown signal, is drawn if receiving edge calculations Shutdown signal is held up, then starts resource releasing unit, otherwise continues to monitor;
Resource releasing unit, for discharging resource.
CN201811146579.7A 2018-09-29 2018-09-29 A kind of implementation method and device of edge calculations engine Pending CN109408197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811146579.7A CN109408197A (en) 2018-09-29 2018-09-29 A kind of implementation method and device of edge calculations engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811146579.7A CN109408197A (en) 2018-09-29 2018-09-29 A kind of implementation method and device of edge calculations engine

Publications (1)

Publication Number Publication Date
CN109408197A true CN109408197A (en) 2019-03-01

Family

ID=65466577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811146579.7A Pending CN109408197A (en) 2018-09-29 2018-09-29 A kind of implementation method and device of edge calculations engine

Country Status (1)

Country Link
CN (1) CN109408197A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806878A (en) * 2019-10-30 2020-02-18 中国联合网络通信集团有限公司 Service management method, system and storage medium
WO2021159891A1 (en) * 2020-02-10 2021-08-19 大唐移动通信设备有限公司 Request, query and authorization processing method for call, devices, apparatus, and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373414A (en) * 2014-08-26 2016-03-02 龙芯中科技术有限公司 Method and device for realizing MIPS platform-supporting Java virtual machines
US20160191483A1 (en) * 2014-07-18 2016-06-30 Donald Larson Universal Connector
CN105975330A (en) * 2016-06-27 2016-09-28 华为技术有限公司 Virtual network function deployment method, device and system adopting NEC (network edge computing)
CN107066839A (en) * 2016-01-21 2017-08-18 黑莓有限公司 The license distribution carried out for the third party's service operated in association with licensed first party service
CN107220074A (en) * 2016-03-21 2017-09-29 阿里巴巴集团控股有限公司 To the access of supporting layer software function, upgrade method and device
US20180109428A1 (en) * 2016-10-19 2018-04-19 Tata Consultancy Services Limited Optimal deployment of fog computations in iot environments
US20180183860A1 (en) * 2016-12-23 2018-06-28 Kausik Majumdar Method and program product for robot communications
US20180183660A1 (en) * 2016-12-27 2018-06-28 Cisco Technology, Inc. Configuring heterogeneous computing environments using machine learning
CN108304168A (en) * 2018-02-27 2018-07-20 苏州商合仕物联科技有限公司 A kind of edge calculations machine operating system
CN108449399A (en) * 2018-03-09 2018-08-24 武汉邮电科学研究院有限公司 It is suitable for the edge calculations node of intelligent production
CN108594819A (en) * 2018-05-03 2018-09-28 济南浪潮高新科技投资发展有限公司 Automatic Pilot vehicle computing resource management system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191483A1 (en) * 2014-07-18 2016-06-30 Donald Larson Universal Connector
CN105373414A (en) * 2014-08-26 2016-03-02 龙芯中科技术有限公司 Method and device for realizing MIPS platform-supporting Java virtual machines
CN107066839A (en) * 2016-01-21 2017-08-18 黑莓有限公司 The license distribution carried out for the third party's service operated in association with licensed first party service
CN107220074A (en) * 2016-03-21 2017-09-29 阿里巴巴集团控股有限公司 To the access of supporting layer software function, upgrade method and device
CN105975330A (en) * 2016-06-27 2016-09-28 华为技术有限公司 Virtual network function deployment method, device and system adopting NEC (network edge computing)
US20180109428A1 (en) * 2016-10-19 2018-04-19 Tata Consultancy Services Limited Optimal deployment of fog computations in iot environments
US20180183860A1 (en) * 2016-12-23 2018-06-28 Kausik Majumdar Method and program product for robot communications
US20180183660A1 (en) * 2016-12-27 2018-06-28 Cisco Technology, Inc. Configuring heterogeneous computing environments using machine learning
CN108304168A (en) * 2018-02-27 2018-07-20 苏州商合仕物联科技有限公司 A kind of edge calculations machine operating system
CN108449399A (en) * 2018-03-09 2018-08-24 武汉邮电科学研究院有限公司 It is suitable for the edge calculations node of intelligent production
CN108594819A (en) * 2018-05-03 2018-09-28 济南浪潮高新科技投资发展有限公司 Automatic Pilot vehicle computing resource management system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕为工,张策编著: "《嵌入式计算机系统设计》", 31 March 2017, 哈尔滨工业大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806878A (en) * 2019-10-30 2020-02-18 中国联合网络通信集团有限公司 Service management method, system and storage medium
WO2021159891A1 (en) * 2020-02-10 2021-08-19 大唐移动通信设备有限公司 Request, query and authorization processing method for call, devices, apparatus, and medium

Similar Documents

Publication Publication Date Title
CN1174302C (en) Verification of software agents and agent activities
Vigano Automated security protocol analysis with the AVISPA tool
Cugola et al. Analyzing mobile code languages
CN107220083A (en) Exempt from the method and system of installation and operation application program in a kind of Android system
CN104426658B (en) The method and device of authentication is carried out to the application on mobile terminal
CN104077160B (en) A kind of method, apparatus and system for upgrading Android software
WO2011119300A2 (en) System and methods for remote maintenance in an electronic network with multiple clients
Hamid et al. Security patterns modeling and formalization for pattern-based development of secure software systems
CN109408197A (en) A kind of implementation method and device of edge calculations engine
Martín et al. Contracts for security adaptation
CN101504622A (en) Method and device for information interaction between threads
Barthe et al. The MOBIUS Proof Carrying Code Infrastructure: (An Overview)
CN110442422A (en) Active response formula is credible Python virtual machine and its method of execution
CN112199151B (en) Application program running method and device
CN106372503A (en) Method and device for enhancing APK (Android Package) application permission configuration flexibility and system
CN109213572A (en) A kind of confidence level based on virtual machine determines method and server
Pecholt et al. Live migration of operating system containers in encrypted virtual machines
US8490184B2 (en) Verification for computer programs that include external call references
CN115391753A (en) Software authorization method and system compatible with different deployment environments
Ekberg et al. Scheduling execution of credentials in constrained secure environments
CN101888623B (en) Safety service-based mobile network safety protection method
CN115048630A (en) Integrity verification method and device of application program, storage medium and electronic equipment
CN107689934A (en) A kind of method to ensure information safety, server and client
Dragoni et al. Security-by-Contract (S x C) for Software and Services of Mobile Systems
CN116401671B (en) Centralized computing method and device based on trusted execution environment

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190301

WD01 Invention patent application deemed withdrawn after publication