CN113157251B - Resource servitization and customization method for man-machine-object fusion application - Google Patents

Resource servitization and customization method for man-machine-object fusion application Download PDF

Info

Publication number
CN113157251B
CN113157251B CN202110206246.4A CN202110206246A CN113157251B CN 113157251 B CN113157251 B CN 113157251B CN 202110206246 A CN202110206246 A CN 202110206246A CN 113157251 B CN113157251 B CN 113157251B
Authority
CN
China
Prior art keywords
resource
service
man
capability
machine
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
CN202110206246.4A
Other languages
Chinese (zh)
Other versions
CN113157251A (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.)
Fudan University
Original Assignee
Fudan University
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 Fudan University filed Critical Fudan University
Priority to CN202110206246.4A priority Critical patent/CN113157251B/en
Publication of CN113157251A publication Critical patent/CN113157251A/en
Application granted granted Critical
Publication of CN113157251B publication Critical patent/CN113157251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • 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/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/45575Starting, stopping, suspending or resuming virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention relates to a resource servitization and customization method for man-machine-object fusion application, which comprises the following steps: reading services from the man-machine-object fusion application model, searching for a capacity unit corresponding to the services, constructing the capacity unit of the services for which the capacity unit is not found in a service encapsulation mode, and deploying the capacity unit to a man-machine-object fusion application running environment; the interaction between the power units is customized. Compared with the prior art, the invention packages various heterogeneous resources defined by software in a service mode according to a predefined man-machine object fusion application model, and customizes the interaction among the capacity units taking the resources as the main body on the basis, thereby supporting the orderly execution of man-machine object fusion application; the automatic resource service encapsulation and interactive customization can be realized, and the development difficulty of the man-machine-object fusion application execution system is reduced.

Description

Resource servitization and customization method for man-machine-object fusion application
Technical Field
The invention relates to the technical field of software engineering and ubiquitous computing, in particular to a resource servitization and customization method for man-machine-object fusion application.
Background
The various demands of people in real life are generally required to be met by fusing resources from three aspects of society, information and physics. With the continuous development and popularization of computer technology, man-machine-object fusion application begins to appear, and the man-machine-object fusion application fuses software behaviors in a virtual world and behaviors of people and physical equipment in a real world together with natural and physical characteristics such as time and space on the basis of 'all software definitions'.
On the one hand, however, real resources are independent entities, and no interdependence exists between the resources. On the other hand, the execution of resource services is typically message-driven, and collaboration between resources is typically loosely coupled. In the prior art, a centralized platform is generally used for orchestrating and managing cooperation and interaction among heterogeneous resources, which reduces the flexibility of applications and makes the centralized platform a bottleneck.
Disclosure of Invention
Compared with a centralized platform, the distributed architecture style based on the service can support various resources in the man-machine-object fusion application to perform loose coupling cooperation in a service mode, and interaction is realized through a lightweight communication mechanism, and currently, related work for supporting the man-machine-object fusion application to execute in a service mode is still lacking.
The invention aims to overcome the defects in the prior art and provide a resource servization and customization method for man-machine-object fusion application, which packages various heterogeneous resources defined by software in a servization mode according to a predefined man-machine-object fusion application model, and customizes the interaction among the capacity units taking the resources as the main body on the basis, thereby supporting the orderly execution of man-machine-object fusion application; the automatic resource service encapsulation and interactive customization can be realized, and the development difficulty of the man-machine-object fusion application execution system is reduced.
The purpose of the invention can be realized by the following technical scheme:
a resource servitization and customization method facing man-machine-object fusion application is disclosed, a man-machine-object fusion application model is used for depicting the requirements of a specific application scene and the fusion mode of man-machine-object resources in the scene, and comprises a resource part, a resource cooperation part and a binding constraint part, and the method comprises the following steps:
s1, searching for a capability unit: reading a man-machine object fusion application model to be executed, extracting the services of resources in the man-machine object fusion application model, searching the capacity units corresponding to all the services in the man-machine object fusion application running environment, if the capacity units corresponding to all the services are found, executing a step S3, otherwise, executing a step S2;
s2, build and deploy capability unit: for services which do not find corresponding capacity units in the man-machine-object fusion application running environment, respectively constructing capacity units corresponding to the services in a service encapsulation mode, and deploying the constructed capacity units into the man-machine-object fusion application running environment; the capability unit comprises a resource wrapper, a capability agent and a message theme, and the capability unit comprises a packaging, generating and associating resource wrapper, capability agent and message theme;
s3, customizing interaction among the capacity units: and reading the man-machine-object fusion application model, customizing the route of the resource wrapper in the capacity unit based on the resource cooperation part in the model, and customizing the resource binding strategy of the capacity agent in the capacity unit based on the binding constraint part in the model.
Furthermore, in the man-machine-object fusion application model, the resource part is the resource related to the man-machine-object fusion application model and the service and release event provided by the resource; the resource cooperation part is the cooperation among different resources and is embodied as the execution of the event-driven next resource service of the previous resource; the binding constraint component specifies the binding conditions of the corresponding resource at runtime.
Further, the capability unit is an abstract structure and comprises a resource wrapper, a capability agent and a message theme; the resource packager is a unit for packaging resources into services, each resource packager corresponds to a resource and is responsible for service execution and event release of the resource; the system comprises a capability agent integrated service registration mechanism, a service management server and a service management server, wherein the capability agent integrated service registration mechanism calls services provided by a proper resource wrapper according to a resource binding strategy, and comprises a service client, a resource wrapper registration mechanism and a resource binding strategy; the capability broker subscribes to message topics in a message queue related to capabilities corresponding to the capability broker, and the message queue is middleware for publishing and subscribing event messages.
Further, in step S2, constructing the capability unit corresponding to the service in the service encapsulation manner includes the following steps:
s21: reading a resource part in the man-machine object fusion application model, acquiring a resource related to the service of which the corresponding capacity unit is not found, and packaging the resource defined by software according to a resource wrapper template; the service port of the resource wrapper is connected with the service interface of the software defined resource; an event port of the resource wrapper is connected with an event callback of a software-defined resource, and the event port is used for sending an event issued by the resource to a specified message theme according to a routing rule;
s22: newly building a capability agent related to the capability appointed by the service, wherein the capability agent comprises a service client, a resource wrapper registration mechanism and a resource binding strategy, the service client is used for subscribing a message theme, retrieving the registered resource wrapper in the resource wrapper registration mechanism once receiving the service request, determining the called resource wrapper according to the resource binding strategy and sending the service request to the resource wrapper;
s23: adding a message theme corresponding to the capability specified by the service in the message middleware to obtain a message theme address;
s24: deploying the constructed resource wrapper to a human-computer-object fusion application running environment in a container mode, obtaining an IP address allocated to the resource wrapper, and obtaining a service port address of specific capacity of the resource wrapper by combining the name of a service;
s25: the newly-built capability agent is deployed to the running environment of the human-machine fusion application in a container mode, then the resource wrappers related to the capabilities specified by the service are registered into the capability agent, namely, the service port addresses of the specific capabilities of the resource wrappers are added into the resource wrapper registration mechanism in the capability agent, and then the message themes of the corresponding message middleware are subscribed.
Further, in step S21, the routing rule includes an application identifier, an event identifier, a condition, and a routing address.
Further, the sending, by the event port, the event issued by the resource to the specified message topic according to the routing rule specifically includes: when an event port triggers an event callback for a particular resource, non-null conditions matching the current application identifier and the event identifier will be retrieved and computed; if the condition is met or the condition is empty, the message will be forwarded to the message topic of the message queue specified by the routing address, otherwise the message will be ignored.
Further, the resource wrapper registration mechanism is to store a service port address of the resource wrapper, including a resource wrapper identifier and a service port address.
Further, in step S3, the customizing the route of the resource wrapper in the power cell based on the resource cooperation part in the model specifically includes:
reading a resource cooperation part in the man-machine object fusion application model, wherein each resource cooperation is embodied as the association between the event of the previous resource and the service of the next resource; and for each resource cooperation, searching a resource wrapper related to the event of the previous resource, and adding a routing rule in a routing rule table, wherein the application identifier, the event identifier and the condition of the routing rule come from an application model, and the routing address is the address of a message subject in a capacity unit corresponding to the service of the next resource.
Further, in step S3, the customizing the resource binding policy of the capability agent in the capability unit based on the binding constraint part in the model specifically includes:
reading a binding constraint part in the man-machine object fusion application model, searching a capability agent of a capability unit related to each resource with the binding constraint aiming at each resource with the binding constraint, and adding a corresponding constraint condition into a resource binding strategy of the capability agent.
Compared with the prior art, the invention has the following beneficial effects:
(1) the method comprises the steps of firstly searching a capability unit corresponding to a service in a man-machine object fusion application running environment, constructing and deploying the capability unit for the service which does not find the capability unit, and customizing interaction among the capability units taking resources as main bodies, so that orderly execution of man-machine object fusion application is supported.
(2) For services for which the capability unit is not found, the capability unit is constructed in a service encapsulation mode, and various software-defined heterogeneous resources can be packaged.
(3) The automatic resource service encapsulation and interactive customization are realized, and the development difficulty of the man-machine-object fusion application execution system is reduced.
Drawings
FIG. 1 is a schematic flow chart of a resource servicing and customizing method;
FIG. 2 is a schematic diagram of a resource wrapper according to the present invention;
fig. 3 is a schematic diagram of a capability broker according to the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
Example 1:
the man-machine object fusion application model is used for depicting the requirements of a specific application scene and the fusion mode of man-machine object resources in the scene, and comprises a resource part, a resource cooperation part and a binding constraint part, wherein the resource part is resources related to man-machine object fusion application and services and issued events provided by the resources; the resource cooperation part is the cooperation among different resources and is embodied as the execution of the event-driven next resource service of the previous resource; the binding constraint component specifies the binding conditions of the corresponding resource at runtime.
A resource servitization and customization method for man-machine-object fusion application is disclosed, as shown in FIG. 1, and comprises the following steps:
s1, searching a capacity unit;
s2, constructing and deploying a capacity unit;
s3, customizing the interaction among the capability units.
In step S2, for services for which the capability unit is not found, the capability unit is constructed in a way of service encapsulation, and various software-defined heterogeneous resources can be packaged; in step S3, the interaction between the capability units with resources as the main body is customized, so as to support the ordered execution of the man-machine object fusion application;
a capability unit is an abstract structure that includes a resource wrapper, a capability broker, and a message topic. The resource packager is a unit for packaging resources into services, and each resource packager corresponds to a resource and is responsible for service execution and event release of the resource; the capability proxy integrates a service registration mechanism, realizes the calling of the service provided by a proper resource wrapper according to a resource binding strategy, and comprises a service client, a resource wrapper registration mechanism and a resource binding strategy; the capability broker subscribes to message topics in a message queue related to capabilities corresponding to the capability broker, and the message queue is middleware for publishing and subscribing event messages.
The specific flow of each step is as follows:
s1, searching for a capability unit: reading a man-machine object fusion application model to be executed, extracting services of resources in the man-machine object fusion application model, searching for capacity units corresponding to all the services in a man-machine object fusion application running environment according to the names of the services, executing a step S3 if the capacity units corresponding to all the services are found, and otherwise, executing a step S2;
s2, build and deploy capability unit: for services which do not find corresponding capacity units in the man-machine-object fusion application running environment, respectively constructing capacity units corresponding to the services in a service encapsulation mode, and deploying the constructed capacity units into the man-machine-object fusion application running environment; the capability unit comprises a resource wrapper, a capability agent and a message theme, the capability unit is constructed by packaging, generating and associating the resource wrapper, the capability agent and the message theme, specifically, the resource wrapper which provides specified capability for packaging, creating the capability agent, adding the message theme, and then associating the resource wrapper, the capability agent and the message theme according to the organizational structure of the capability unit.
Specifically, in step S2, constructing the capability unit corresponding to the service in the service encapsulation manner includes the following steps:
s21: reading a resource part in the man-machine object fusion application model, acquiring a resource related to the service of which the corresponding capacity unit is not found, and packaging the resource defined by software according to a resource wrapper template; the service port of the resource wrapper is connected with the service interface of the software defined resource; an event port of the resource wrapper is connected with an event callback of the software-defined resource, and the event port is used for sending an event issued by the resource to a specified message theme according to a routing rule;
the routing rule includes an application identifier, an event identifier, a condition, and a routing address. The event port sends the event issued by the resource to the specified message subject according to the routing rule specifically comprises: when an event port triggers an event callback for a particular resource, non-null conditions matching the current application identifier and the event identifier will be retrieved and computed; if the condition is met or the condition is empty, the message will be forwarded to the message topic of the message queue specified by the routing address, otherwise the message will be ignored.
S22: newly building a capability agent related to the capability appointed by the service, wherein the capability agent comprises a service client, a resource wrapper registration mechanism and a resource binding strategy, the service client is used for subscribing a message theme, retrieving the registered resource wrapper in the resource wrapper registration mechanism once receiving the service request, determining the called resource wrapper according to the resource binding strategy and sending the service request to the resource wrapper; the structure of the capability broker and its execution are shown in figure 3.
The resource wrapper registration mechanism is used to store the service port address of the resource wrapper, including the resource wrapper identifier and the service port address.
S23: adding a message theme corresponding to the capability specified by the service in the message middleware to obtain a message theme address;
s24: deploying the constructed resource wrapper to a human-computer-object fusion application running environment in a container mode, obtaining an IP address allocated to the resource wrapper, and obtaining a service port address of specific capacity of the resource wrapper by combining the name of a service;
s25: the newly-built capability agent is deployed to the running environment of the human-machine fusion application in a container mode, then the resource wrappers related to the capabilities specified by the service are registered into the capability agent, namely, the service port addresses of the specific capabilities of the resource wrappers are added into the resource wrapper registration mechanism in the capability agent, and then the message themes of the corresponding message middleware are subscribed.
S3, customizing interaction among the capability units: and reading the man-machine-object fusion application model, customizing the route of the resource wrapper in the capacity unit based on the resource cooperation part in the model, and customizing the resource binding strategy of the capacity agent in the capacity unit based on the binding constraint part in the model.
The customizing of the route of the resource wrapper in the energy unit based on the resource cooperation part in the model specifically comprises the following steps: reading a resource cooperation part in the man-machine object fusion application model, wherein each resource cooperation is embodied as the association between the event of the previous resource and the service of the next resource; for each resource cooperation, searching a resource wrapper related to the event of the former resource, and adding a routing rule in a routing rule table, wherein the application identifier, the event identifier and the condition of the routing rule are from an application model, and the routing address is the address of the message topic in the capacity unit corresponding to the service of the latter resource.
The customization of the resource binding strategy of the capacity agent in the capacity unit based on the binding constraint part in the model specifically comprises the following steps: reading a binding constraint part in the man-machine object fusion application model, searching a capability agent of a capability unit related to each resource with the binding constraint aiming at each resource with the binding constraint, and adding a corresponding constraint condition into a resource binding strategy of the capability agent.
The embodiment introduces a specific implementation method of a resource service encapsulation and interaction customization method for man-machine-object fusion application in the design and development of a man-machine-object execution system by taking the design and development of the man-machine-object execution system as an implementation background, which is specifically as follows:
and S1, searching for a capacity unit. Designing a capacity unit query module in a man-machine object execution system, firstly reading a man-machine object fusion application model to be operated, and extracting the service of related resources; and then, for each service, searching a capacity unit corresponding to the service according to the name of the service in the man-machine-object fusion application running environment. If the corresponding capacity unit is not found, calling a subsequent construction and deployment module (namely constructing the capacity unit and deploying the capacity unit into the human-computer-object fusion application running environment); if the corresponding capacity unit is found, the capacity unit is recorded, and the subsequent customization modules are directly applied (namely, interaction among the customization capacity units).
S2, constructing the capacity unit in a service encapsulation mode and deploying the capacity unit.
Resource wrapper templates based on a flash framework are designed and implemented, and comprise service ports and event ports. And aiming at a specific resource, constructing a corresponding resource wrapper by using a resource wrapper template, mapping the service port to a service interface of the software-defined resource, and calling back the event of the software-defined resource by using the event port. The routing rule table provides a routing rule configuration interface.
A capability proxy template based on a flash framework is designed and implemented, and comprises a service client, a resource wrapper registration mechanism and a resource binding strategy. The service client implements the logic of the capability broker execution process and provides a subscription configuration interface for messages. The resource wrapper registration mechanism provides a registration interface. The resource binding policy provides a resource policy configuration interface.
Adding a message topic corresponding to the specified capability in the message middleware.
A flash service of the resource wrapper is mirrored and pushed to the Docker warehouse using the Docker container. And on the host where the operating environment is located, pulling the mirror image from the Docker warehouse to the man-machine object fusion application operating environment. The Docker container is started, the service port address of the specific capability of the resource wrapper is mapped to the outside of the Docker container, and the address is recorded.
And (4) constructing a mirror image of the flash service of the capability agent by using the Docker container and pushing the mirror image to the Docker warehouse. And on the host where the operating environment is located, pulling the mirror image from the Docker warehouse to the man-machine object fusion application operating environment. The Docker container is started, and the port address of the service is mapped to the outside of the container. Calling a subscription configuration interface to realize subscription to the corresponding message topic address; the registration interface is invoked to register the service port address of the resource wrapper.
S3, customizing the interaction among the capability units.
Reading a resource cooperation part in the man-machine object fusion application model, searching a resource wrapper related to a previous resource event aiming at each resource cooperation, calling a routing rule configuration interface to add a related routing rule in a routing rule table, wherein an application identifier, an event identifier and a condition of the routing rule come from the application model, and a routing address is an address of a message subject in a capacity unit corresponding to a next resource service.
Reading a binding constraint part in the human-machine object fusion application model, searching a capability agent of a capability unit related to each resource for each resource with binding constraint, and calling a binding strategy configuration interface to add corresponding constraint conditions in a resource binding strategy in the capability agent.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.

Claims (9)

1. A resource servitization and customization method for man-machine-object fusion application is characterized in that a man-machine-object fusion application model is used for depicting the requirements of a specific application scene and the fusion mode of man-machine-object resources in the scene, and comprises a resource part, a resource cooperation part and a binding constraint part, and the method comprises the following steps:
s1, searching for a capability unit: reading a man-machine object fusion application model to be executed, extracting the services of resources in the man-machine object fusion application model, searching the capacity units corresponding to all the services in the man-machine object fusion application running environment, if the capacity units corresponding to all the services are found, executing a step S3, otherwise, executing a step S2;
s2, build and deploy capability unit: for services which do not find corresponding capacity units in the man-machine-object fusion application running environment, respectively constructing capacity units corresponding to the services in a service encapsulation mode, and deploying the constructed capacity units into the man-machine-object fusion application running environment; the capability unit comprises a resource wrapper, a capability agent and a message theme, and the capability unit comprises a packaging, generating and associating resource wrapper, capability agent and message theme;
s3, customizing interaction among the capability units: and reading the man-machine-object fusion application model, customizing the route of the resource wrapper in the capacity unit based on the resource cooperation part in the model, and customizing the resource binding strategy of the capacity agent in the capacity unit based on the binding constraint part in the model.
2. The resource servitization and customization method for man-machine-object fusion application according to claim 1, wherein in the man-machine-object fusion application model, the resource part is the resource related to the man-machine-object fusion application model and the service and release event provided by the resource; the resource cooperation part is the cooperation among different resources and is embodied as the execution of the event-driven next resource service of the previous resource; the binding constraint component specifies the binding conditions of the corresponding resource at runtime.
3. The resource servitization and customization method for man-machine-object fusion application according to claim 1, wherein the capability unit is an abstract structure comprising a resource wrapper, a capability agent and a message theme; the resource packager is a unit for packaging resources into services, each resource packager corresponds to a resource and is responsible for service execution and event release of the resource; the system comprises a capability agent integrated service registration mechanism, a service management server and a service management server, wherein the capability agent integrated service registration mechanism calls services provided by a proper resource wrapper according to a resource binding strategy, and comprises a service client, a resource wrapper registration mechanism and a resource binding strategy; the capability broker subscribes to message topics in a message queue related to capabilities corresponding to the capability broker, and the message queue is middleware for publishing and subscribing event messages.
4. The resource servitization and customization method for man-machine-object fusion application according to claim 3, wherein the step S2 of constructing the capability unit corresponding to the service in a servitization package mode comprises the following steps:
s21: reading a resource part in the man-machine object fusion application model, acquiring a resource related to the service of which the corresponding capacity unit is not found, and packaging the resource defined by software according to a resource wrapper template; the service port of the resource wrapper is connected with the service interface of the software defined resource; an event port of the resource wrapper is connected with an event callback of the software-defined resource, and the event port is used for sending an event issued by the resource to a specified message theme according to a routing rule;
s22: newly building a capability agent related to the capability appointed by the service, wherein the capability agent comprises a service client, a resource wrapper registration mechanism and a resource binding strategy, the service client is used for subscribing a message theme, retrieving the registered resource wrapper in the resource wrapper registration mechanism once receiving the service request, determining the called resource wrapper according to the resource binding strategy and sending the service request to the resource wrapper;
s23: adding a message theme corresponding to the capability specified by the service in the message middleware to obtain a message theme address;
s24: deploying the constructed resource wrapper to a human-computer-object fusion application running environment in a container mode, obtaining an IP address allocated to the resource wrapper, and obtaining a service port address of specific capacity of the resource wrapper by combining the name of a service;
s25: the newly-built capability agent is deployed to the running environment of the human-machine fusion application in a container mode, then the resource wrappers related to the capabilities specified by the service are registered into the capability agent, namely, the service port addresses of the specific capabilities of the resource wrappers are added into the resource wrapper registration mechanism in the capability agent, and then the message themes of the corresponding message middleware are subscribed.
5. The resource servitization and customization method facing human-computer-object fusion application according to claim 4, wherein in step S21, the routing rule includes application identifier, event identifier, condition and routing address.
6. The resource servitization and customization method for man-machine-object fusion application according to claim 5, wherein the event port sends the event issued by the resource to the specified message subject according to the routing rule specifically comprises: when an event port triggers an event callback for a particular resource, non-null conditions matching the current application identifier and the event identifier will be retrieved and computed; if the condition is met or the condition is empty, the message will be forwarded to the message topic of the message queue specified by the routing address, otherwise the message will be ignored.
7. The resource servitization and customization method for human-machine-object fusion application according to claim 4, wherein the resource wrapper registration mechanism is configured to store a service port address of a resource wrapper, including a resource wrapper identifier and a service port address.
8. The resource servitization and customization method for human-computer-object fusion application according to claim 5, wherein in step S3, the customizing the route of the resource wrapper in the capability cell based on the resource cooperation part in the model specifically comprises:
reading a resource cooperation part in the man-machine object fusion application model, wherein each resource cooperation is embodied as the association between the event of the previous resource and the service of the next resource; and for each resource cooperation, searching a resource wrapper related to the event of the previous resource, and adding a routing rule in a routing rule table, wherein the application identifier, the event identifier and the condition of the routing rule come from an application model, and the routing address is the address of a message subject in a capacity unit corresponding to the service of the next resource.
9. The method for resource servitization and customization for human-computer-object fusion application according to claim 3, wherein in step S3, the customizing of the resource binding policy of the capability agent in the capability unit based on the binding constraint part in the model specifically comprises:
reading a binding constraint part in the man-machine object fusion application model, searching a capability agent of a capability unit related to each resource with the binding constraint aiming at each resource with the binding constraint, and adding a corresponding constraint condition into a resource binding strategy of the capability agent.
CN202110206246.4A 2021-02-24 2021-02-24 Resource servitization and customization method for man-machine-object fusion application Active CN113157251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110206246.4A CN113157251B (en) 2021-02-24 2021-02-24 Resource servitization and customization method for man-machine-object fusion application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110206246.4A CN113157251B (en) 2021-02-24 2021-02-24 Resource servitization and customization method for man-machine-object fusion application

Publications (2)

Publication Number Publication Date
CN113157251A CN113157251A (en) 2021-07-23
CN113157251B true CN113157251B (en) 2022-05-31

Family

ID=76883577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110206246.4A Active CN113157251B (en) 2021-02-24 2021-02-24 Resource servitization and customization method for man-machine-object fusion application

Country Status (1)

Country Link
CN (1) CN113157251B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929486A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Communication business processing system and method
CN103093058A (en) * 2013-02-05 2013-05-08 中国电子科技集团公司电子科学研究院 Service-oriented distributed simulation system and realizing method thereof
CN105450757A (en) * 2015-12-02 2016-03-30 联动优势电子商务有限公司 Service management method and system
CN107819824A (en) * 2017-10-09 2018-03-20 中国电子科技集团公司第二十八研究所 A kind of Urban Data opens and information service system and method for servicing
CN111143054A (en) * 2019-12-10 2020-05-12 北京计算机技术及应用研究所 Heterogeneous domestic CPU resource fusion management method
CN112035228A (en) * 2020-08-28 2020-12-04 光大科技有限公司 Resource scheduling method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9626632B2 (en) * 2007-03-26 2017-04-18 International Business Machines Corporation Apparatus, system, and method for logically packaging and delivering a service offering
US10411975B2 (en) * 2013-03-15 2019-09-10 Csc Agility Platform, Inc. System and method for a cloud computing abstraction with multi-tier deployment policy
US11244261B2 (en) * 2014-11-11 2022-02-08 Amazon Technologies, Inc. Catalog service platform for deploying applications and services

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929486A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Communication business processing system and method
CN103093058A (en) * 2013-02-05 2013-05-08 中国电子科技集团公司电子科学研究院 Service-oriented distributed simulation system and realizing method thereof
CN105450757A (en) * 2015-12-02 2016-03-30 联动优势电子商务有限公司 Service management method and system
CN107819824A (en) * 2017-10-09 2018-03-20 中国电子科技集团公司第二十八研究所 A kind of Urban Data opens and information service system and method for servicing
CN111143054A (en) * 2019-12-10 2020-05-12 北京计算机技术及应用研究所 Heterogeneous domestic CPU resource fusion management method
CN112035228A (en) * 2020-08-28 2020-12-04 光大科技有限公司 Resource scheduling method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
微服务技术发展的现状与展望;冯志勇等;《计算机研究与发展》;20200515;全文 *

Also Published As

Publication number Publication date
CN113157251A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US8065657B2 (en) Exchange infrastructure system and method
US8205007B2 (en) Native format tunneling
US8719780B2 (en) Application server with a protocol-neutral programming model for developing telecommunications-based applications
US20060029054A1 (en) System and method for modeling and dynamically deploying services into a distributed networking architecture
CN109684054A (en) Information processing method and device, electronic equipment and memory
EP2418825A1 (en) Method and system for generating open telecommunication service based on internet
CN112035228A (en) Resource scheduling method and device
US20120215581A1 (en) Ad-Hoc and Priority-Based Business Process Execution
CN113268319A (en) Business process customization and distributed process scheduling method based on micro-service architecture
CN109597604B (en) iOS platform based APP modularization development method, device and equipment
US20030212690A1 (en) Exactly once protocol for message-based collaboration
CN104618433A (en) ECA (Event-Condition-Action) rule based service combination method
CN113377344A (en) Complex information system comprehensive integration method
US20060200800A1 (en) Aggregation of non blocking state machines on enterprise java bean platform
CA2481099C (en) Exchange infrastructure system and method
CN113157251B (en) Resource servitization and customization method for man-machine-object fusion application
CN101719069B (en) Method and device of Web servitization of Java system
CN113254145B (en) Human-computer-object fusion application operation supporting method based on micro-service architecture
CN112929203A (en) Service network-oriented architecture
CN116319983A (en) Middleware for service communication
Ribeiro et al. The application of JADE and OSGi technologies in the telecommunications services architecture
CN113608721A (en) Implementation method and implementation system of container-based service center
Chong et al. JMSAS: a mobile software agent system
CN115665116A (en) Cross-platform scientific and technological service interoperation method
CN115665219A (en) Application method and system of workflow engine in distributed scene

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
GR01 Patent grant
GR01 Patent grant