CN110806878A - Service management method, system and storage medium - Google Patents

Service management method, system and storage medium Download PDF

Info

Publication number
CN110806878A
CN110806878A CN201911046425.5A CN201911046425A CN110806878A CN 110806878 A CN110806878 A CN 110806878A CN 201911046425 A CN201911046425 A CN 201911046425A CN 110806878 A CN110806878 A CN 110806878A
Authority
CN
China
Prior art keywords
service
operated
servicebox
deployment container
services
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911046425.5A
Other languages
Chinese (zh)
Other versions
CN110806878B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911046425.5A priority Critical patent/CN110806878B/en
Publication of CN110806878A publication Critical patent/CN110806878A/en
Application granted granted Critical
Publication of CN110806878B publication Critical patent/CN110806878B/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/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

Abstract

The invention provides a service management method, a system and a storage medium, wherein the method is applied to a service management system, the service management system comprises a deployment container containing a plurality of services and a service pack service box, the service pack service box is deployed in the deployment container, and the deployment container is used for providing a running environment for the services in the service pack service box, and the method comprises the following steps: receiving an operation instruction of a user to-be-operated service, wherein the to-be-operated service is at least one of a plurality of services included in the deployment container; and when the deployment container is monitored to be started, performing corresponding operation processing on the service to be operated according to the operation instruction. The service management method, the service management system and the storage medium provided by the invention not only can realize the independent management of the service, but also can reduce the server resources and improve the utilization rate of the service resources.

Description

Service management method, system and storage medium
Technical Field
The present invention relates to the field of java development technologies, and in particular, to a method, an apparatus, and a storage medium for service management.
Background
With the increase of the complexity of the business, the product volume is inevitably larger and larger in the aspect of service management, the internal dependency relationship is also more and more complex, and the product starts to introduce technologies such as distributed service or front-back separation and the like so as to improve the publishing efficiency of the product.
In the prior art, a distributed Service architecture is generally adopted for managing services, for example, a distributed Service based on an ali distributed Service Framework and a High-Speed Service Framework (HSF), all services are integrally deployed in a deployment container in the form of an War packet, and a Service in a War packet provides capabilities to the outside through a registration center. In addition, each service can be deployed separately, for example, a micro-service based on the open source product, the sperbut Spring Boot, by deploying each service in a separate deployment container, each service can provide capability to the outside separately, and separate management of each service can be realized.
However, in the HSF distributed service in the prior art, individual management of the service cannot be realized, and although the micro service of the Spring Boot can realize individual management of the service, more deployment resources are required, which results in low utilization rate of server resources.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a service management method, a service management system and a storage medium, which not only can realize the independent management of the service, but also can reduce the server resources and improve the utilization rate of the service resources.
In a first aspect, an embodiment of the present invention provides a service management method, where the method applies a service management system, where the service management system includes a deployment container including multiple services and a service bundle ServiceBox, the service bundle ServiceBox is deployed in the deployment container, and the deployment container is used to provide an operating environment for a service in the service bundle ServiceBox, and the method includes:
receiving an operation instruction of a user to-be-operated service, wherein the to-be-operated service is at least one of a plurality of services included in the deployment container;
and when the deployment container is monitored to be started, performing corresponding operation processing on the service to be operated according to the operation instruction.
Optionally, when it is monitored that the deployment container is started, after performing corresponding operation processing on the service to be operated according to the operation instruction, the method further includes:
and updating the running state of the service to be operated after being processed in the service pack ServiceBox.
Optionally, the performing, according to the operation instruction, corresponding operation processing on the service to be operated includes:
adding the service to be operated into the service pack ServiceBox; alternatively, the first and second electrodes may be,
starting to run the service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
stopping running the service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
and deleting the service to be operated from the service pack ServiceBox.
Optionally, the starting and running the service to be operated in the service bundle ServiceBox includes:
adding a class loader Classloader corresponding to the service to be operated to the service pack ServiceBox;
and adding a Uniform Resource Locator (URL) of the service to be operated to the class loader Classloader to load the service to be operated and start operation.
Optionally, the stopping running the service to be operated in the service bundle ServiceBox includes:
obtaining a class loader Classloader corresponding to the service to be operated;
and closing the class loader Classloader corresponding to the service to be operated so as to stop running the service to be operated.
Optionally, when it is monitored that the deployment container is started, after performing corresponding operation processing on the service to be operated according to the operation instruction, the method further includes:
and outputting the processing result of the service to be operated.
Optionally, before receiving an operation instruction of the service to be operated by the user, the method further includes:
adding the packet paths corresponding to the plurality of services to the JAVA class paths of the deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
Optionally, after the class loader Classloader corresponding to the plurality of services is used to load the plurality of services into the deployment container through the packet path, the method further includes:
and recording class loaders corresponding to the plurality of services, so as to load the service to be operated through the class loaders.
In a second aspect, an embodiment of the present invention provides a service management system, where the service management system includes a deployment container containing a plurality of services, and a service bundle ServiceBox, where the service bundle ServiceBox is deployed in the deployment container, and the deployment container is used to provide a running environment for a service in the service bundle ServiceBox, where,
the service pack ServiceBox is used for receiving an operation instruction of a user on a service to be operated, wherein the service to be operated is at least one of the plurality of services included in the deployment container;
and the service pack ServiceBox is further used for carrying out corresponding operation processing on the service to be operated according to the operation instruction when the deployment container is monitored to be started.
Optionally, the deployment container is configured to update the running state of the service to be operated after processing in the service bundle ServiceBox.
Optionally, the service bundle ServiceBox is specifically configured to:
adding the service to be operated into the service pack ServiceBox; alternatively, the first and second electrodes may be,
starting to run the service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
stopping running the service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
and deleting the service to be operated from the service pack ServiceBox.
Optionally, the service bundle ServiceBox is specifically configured to:
adding a class loader Classloader corresponding to the service to be operated to the service pack ServiceBox;
and adding the URL of the service to be operated to the class loader Classloader to load the service to be operated and start running.
Optionally, the service bundle ServiceBox is specifically configured to:
obtaining a class loader Classloader corresponding to the service to be operated;
and closing the class loader Classloader corresponding to the service to be operated so as to stop running the service to be operated.
Optionally, the service pack ServiceBox is further configured to output a processing result of the service to be operated.
Optionally, the service bundle ServiceBox is specifically configured to:
adding the packet paths corresponding to the plurality of services to the JAVA class paths of the deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
Optionally, the service bundle ServiceBox records class loader classloaders corresponding to the multiple services, so as to load the service to be operated through the class loader Classloader.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and the computer program causes a service management system to execute the method for service management according to the first aspect.
The method is applied to a service management system, the service management system comprises a deployment container containing a plurality of services and a service pack ServiceBox, the service pack ServiceBox is deployed in the deployment container, and the deployment container is used for providing a running environment for the services in the service pack ServiceBox, and the method comprises the following steps: receiving an operation instruction of a user to-be-operated service, wherein the to-be-operated service is at least one of a plurality of services included in the deployment container; and when the deployment container is monitored to be started, performing corresponding operation processing on the service to be operated according to the operation instruction. Due to the service package ServiceBox, operations such as adding, starting, stopping and deleting can be carried out on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, because a plurality of services are deployed in one deployment container, server resources can be reduced, and the utilization rate of the service resources is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a service management system provided in the present invention;
FIG. 2 is a flow chart illustrating a method for service management according to an exemplary embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for service management according to another exemplary embodiment of the present invention;
fig. 4 is a flowchart illustrating a service management method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating another service management method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service management system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The service management method provided by the invention can be applied to the management scene of distributed service products, the HSF distributed service in the prior art can not realize the independent management of the service, and the Spring Boot micro-service can realize the independent management of the service but needs more deployment resources, so that the utilization rate of server resources is low.
In view of the above technical problem, the present invention provides a service management method, which is applied to a service management system, where the service management system includes a deployment container containing a plurality of services and a service bundle ServiceBox, the service bundle ServiceBox is deployed in the deployment container, and the deployment container is used to provide an operating environment for the services in the service bundle ServiceBox, and the method includes: receiving an operation instruction of a user on a service to be operated, wherein the service to be operated is at least one of a plurality of services included in a deployment container; and when the deployment container is monitored to be started, carrying out corresponding operation processing on the service to be operated according to the operation instruction. Due to the service package ServiceBox, operations such as adding, starting, stopping and deleting can be carried out on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, because a plurality of services are deployed in one deployment container, server resources can be reduced, and the utilization rate of the service resources is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Before describing the service management method, a service management system applied by the method is described, and as shown in fig. 1, the service management system includes a deployment container 11 including a plurality of services, a service bundle ServiceBox12, and at least one service (service 1, service 2, service 3, and the like) other than the service bundle ServiceBox 12. At least one service except the service bundle ServiceBox12 and the service bundle ServiceBox12 is deployed in a deployment container, and the deployment container is used for providing a running environment for the service, but may also provide a running environment for the service in the service bundle ServiceBox. The service bundle service box12 may include one or more services, at least one service other than the service bundle service box12 may also be included in another service bundle service box, or may also be operated in an operating environment provided by the deployment container separately, the service bundle service box12 may manage the services therein, for example, start, stop, or delete the service 4 or the service 5, and in addition, the service bundle service box12 may add at least one service other than the service bundle service box12 (service 1, service 2, service 3, and the like) to the service bundle service box12, so that the service bundle service box12 may implement separate management of the services.
Fig. 2 is a flowchart illustrating a service management method according to an exemplary embodiment of the invention. As shown in fig. 2, the service management method provided in the embodiment of the present invention includes the following steps:
step 201: and receiving an operation instruction of a service to be operated by a user, wherein the service to be operated is at least one of the services included in the deployment container.
In this step, before receiving an operation instruction of a service to be operated by a user, first, a service bundle ServiceBox needs to be established, where the service bundle ServiceBox includes at least one service, that is, at least one service is packed.
Optionally, before receiving an operation instruction of a service to be operated by a user, a packet path corresponding to a plurality of services needs to be added to a JAVA class path of the deployment container; and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services. Specifically, the packet paths corresponding to the plurality of services may be added to JAVA class paths of the deployment container, and each service of the plurality of services may be loaded into the deployment container according to the class loader Classloader corresponding to each service. The deployment container is used for providing a running environment for the service in the service pack ServiceBox, so that the service in the service pack ServiceBox can run normally.
For example, when the service bundle ServiceBox monitors the start of the deployment container, the service bundle ServiceBox loads each service of the plurality of services through the class loader Classloader corresponding to each service according to the JAVA class path added to the deployment container, and when the load of all the services is completed, the start of the deployment container is completed.
Optionally, after the service is loaded to the deployment container according to the class loader Classloader, the class loader classloaders corresponding to the multiple services need to be recorded, so that the service to be operated is loaded through the class loader Classloader. Furthermore, the record class loader also provides basis for the follow-up management process of the service.
Firstly, establishing a service pack ServiceBox containing at least one service, and loading the service pack ServiceBox into a deployment container through a class loader Classloader. And the deployment container is started, that is, the running environment can be normally provided for a plurality of services. At this time, an operation instruction of the user to the service to be operated may be received, and of course, the service to be operated may be at least one of the plurality of services in the deployment container.
The operation instruction of the service to be operated may be: the to-be-operated service is controlled to be started or stopped, or the to-be-operated service is deleted from the service bundle ServiceBox, or the to-be-operated service can be added to the service bundle ServiceBox from the deployment container, and the to-be-operated service can be specifically selected and executed according to the requirements of the user. Specifically, the user may select the service to be operated through the user operation interface of the service bundle ServiceBox, and select the operation instruction for the service to be operated, and certainly, the user may select the input through voice input or touch control, which is not limited specifically. According to the selection input of the user, the service pack ServiceBox receives the operation instruction of the service to be operated, so that the service pack ServiceBox can perform corresponding processing on the service to be operated according to the operation instruction.
Further, in an optional manner, after performing corresponding operation processing on the service to be operated, the service bundle ServiceBox may further output a processing result of the service to be operated, and display the processing result of the service on the user operation interface, so that the user can obtain the processing result of the service to be operated.
Step 202: and when the deployment container is monitored to be started, carrying out corresponding operation processing on the service to be operated according to the operation instruction.
In this step, when it is monitored that the deployment container is started, the service bundle ServiceBox performs corresponding processing on the service to be operated according to the operation instruction, where the processing may be to control the start or stop of the service to be operated, or to delete the service to be operated from the service bundle ServiceBox, or to add the service to be operated from the deployment container to the service bundle ServiceBox. The specific process is described in detail in the following embodiments.
In an optional manner, after the service bundle ServiceBox performs corresponding processing on the service to be operated, the deployment container may further update the running state of the service to be operated, which is processed by the service bundle ServiceBox. Wherein, the running state includes: in operation and not started.
It should be noted that when the operation processing is performed on the service to be operated, that is, when the service to be operated is managed separately, the normal operation of other services in the service bundle ServiceBox is not affected, that is, other services can be accessed normally or the capability is provided externally.
The service management method provided by the invention is applied to a service management system, the service management system comprises a deployment container containing a plurality of services and a service pack ServiceBox, the service pack ServiceBox is deployed in the deployment container, and the deployment container is used for providing a running environment for the services in the service pack ServiceBox, and the method comprises the following steps: receiving an operation instruction of a user on a service to be operated, wherein the service to be operated is at least one of a plurality of services included in a deployment container; and when the deployment container is monitored to be started, carrying out corresponding operation processing on the service to be operated according to the operation instruction. Due to the service package ServiceBox, operations such as adding, starting, stopping and deleting can be carried out on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, because a plurality of services are deployed in one deployment container, server resources can be reduced, and the utilization rate of the service resources is improved.
Fig. 3 is a flowchart illustrating a service management method according to an exemplary embodiment of the invention. On the basis of fig. 1, a detailed description is given of how to perform a corresponding operation processing process on a service to be operated according to an operation instruction, as shown in fig. 3, a service management method provided in an embodiment of the present invention includes the following steps:
step 301: and receiving an operation instruction of a service to be operated by a user, wherein the service to be operated is at least one of the services included in the deployment container.
Step 301 is similar to step 201 and will not be described herein again.
In this embodiment, a process of performing a start operation processing on a service to be operated is taken as an example, and detailed description is given. Therefore, in step 301, the service bundle ServiceBox receives an operation instruction of the user to start the service to be operated, where the service to be operated is one of the services in the service bundle ServiceBox.
Step 302: and adding a class loader Classloader corresponding to the service to be operated into the service bundle ServiceBox.
In this step, the service bundle ServiceBox includes a lifecycle management module, and after receiving the start operation instruction, the lifecycle management module in the service bundle ServiceBox creates a class loader Classloader corresponding to the service to be operated first, and adds the class loader Classloader to the service bundle ServiceBox.
Step 303: and adding the URL of the service to be operated to a class loader Classloader to load the service to be operated and start running.
In step 302, after the class loader Classloader corresponding to the service to be operated is added to the service bundle ServiceBox, the uniform resource locator URL of the service to be operated is also required to be added to the created class loader Classloader corresponding to the service to be operated, the life cycle management module further loads the service to be operated according to the class loader Classloader corresponding to the service to be operated, and then starts the service to be operated, so as to complete the start of the service to be operated, at this time, the deployment container outputs the running state of the service to be operated as running.
In an optional manner, in step 301, if the lifecycle management module in the service bundle ServiceBox acquires an operation instruction to stop running the service to be operated, the lifecycle management module may acquire a class loader Classloader corresponding to the service to be operated in the service bundle ServiceBox. And closing the class loader Classloader corresponding to the service to be operated according to the operation instruction to stop operating the service to be operated, wherein the deployment container outputs the service to be operated in an operation state of not starting.
In another alternative, the service to be operated may be deleted from the service bundle ServiceBox, specifically, a deletion operation instruction of the service to be operated by the user is received, and then according to the deletion operation instruction, the life cycle management module deletes the service to be operated from the service bundle ServiceBox, thereby completing the deletion operation of the service to be operated.
In another alternative manner, if the service to be operated does not belong to the service bundle ServiceBox terminal service, the service to be operated may be added to the service bundle ServiceBox, specifically, an adding operation instruction of the service to be operated by the user is received, and then according to the adding operation instruction, the life cycle management module may add the service to be operated to the service bundle ServiceBox to complete the adding operation of the service to be operated, but the running state of the service to be operated output in the deployment container is not started.
The following is presented as a specific example:
fig. 4 and fig. 5 are schematic flow diagrams of a service management method provided by the present invention, and as shown in fig. 4, a service bundle ServiceBox is divided into two parts, namely, a lifecycle management module and a user operation module. Specifically, assuming that the service 4 is in a running state in the running environment provided by the deployment container, when the service 2 needs to be run, the user selects an operation instruction of "add service 2" through the user operation module, and uploads the service 2, and the life cycle management module adds the service 2 to the service package ServiceBox after receiving the request, at this time, the running state of the service 2 in the running environment provided by the deployment container is not started, and the addition of the service 2 is completed. Further, the user selects an operation instruction of "start service 2", after the lifecycle management module receives the request, a class loader Classloader is added, and the URL of the service 2 is added to the class path, and at the same time, the service 2 is started up when the running state of the service 2 is in running.
As shown in fig. 5 and as shown in fig. 4, when both the service 2 and the service 4 are running, if the service 2 needs to be stopped, the user selects an operation instruction of "stop service 2", after receiving the request, the lifecycle module obtains the loader Classloader corresponding to the service 2, and closes the loader Classloader corresponding to the service 2, at this time, the running state of the service 2 is also changed from running to not started. As another example, the user selects the "delete service 2" operation instruction, and the lifecycle management module deletes service 2 from the service bundle ServiceBox after receiving the request, so as to complete the service 2 deletion.
In this embodiment, by separately managing at least one service in the service bundle ServiceBox, not only mutual isolation between a plurality of services can be achieved, but also other services can be continuously operated during the maintenance process. In addition, the service pack ServiceBox can also realize the management of the service in the full life cycle.
Fig. 6 is a schematic structural diagram of a service management system provided by the present invention, as shown in fig. 6, the service management system includes a deployment container 11 containing a plurality of services and a service bundle ServiceBox12, the service bundle ServiceBox12 is deployed in the deployment container 11, the deployment container 11 is used for providing a running environment for the services in the service bundle ServiceBox12, wherein,
the service pack ServiceBox12 is used for receiving an operation instruction of a service to be operated by a user, wherein the service to be operated is at least one of the services included in the deployment container;
the service pack ServiceBox12 is further configured to perform corresponding operation processing on the service to be operated according to the operation instruction when it is monitored that the deployment container is started.
The service management system comprises a deployment container 11 containing a plurality of services and a service pack ServiceBox12, wherein the service pack ServiceBox12 is deployed in the deployment container, the deployment container 11 is used for providing an operating environment for the services in the service pack ServiceBox12, an operating instruction of a user for the service to be operated is received through the service pack ServiceBox12, and the service to be operated is at least one of the services contained in the deployment container; when monitoring that the deployment container is started, the service pack ServiceBox12 performs corresponding operation processing on the service to be operated according to the operation instruction. Due to the service package ServiceBox, operations such as adding, starting, stopping and deleting can be carried out on at least one service in the deployment container, and further, the independent management of the service is realized. In addition, because a plurality of services are deployed in one deployment container, server resources can be reduced, and the utilization rate of the service resources is improved.
Optionally, the deployment container 11 is configured to update the running state of the service to be operated after processing in the service bundle ServiceBox.
Optionally, the service bundle ServiceBox12 is specifically configured to:
adding the service to be operated into a service pack ServiceBox; alternatively, the first and second electrodes may be,
starting a service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
stopping running the service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
and deleting the service to be operated from the service pack ServiceBox.
Optionally, the service bundle ServiceBox12 is specifically configured to:
adding a class loader Classloader corresponding to the service to be operated into a service pack ServiceBox;
and adding the URL of the service to be operated to a class loader Classloader to load the service to be operated and start running.
Optionally, the service bundle ServiceBox12 is specifically configured to:
acquiring a class loader Classloader corresponding to a service to be operated;
and closing the class loader Classloader corresponding to the service to be operated to stop running the service to be operated.
Optionally, the service pack ServiceBox12 is further configured to output a processing result of the service to be operated.
Optionally, the service bundle ServiceBox12 is specifically configured to:
adding packet paths corresponding to a plurality of services to JAVA class paths of the deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
Optionally, the service bundle ServiceBox12 records a class loader Classloader corresponding to the plurality of services, so as to load the service to be operated through the class loader Classloader.
The apparatus may be configured to execute the method provided by the corresponding method embodiment, and the specific implementation manner and the technical effect are similar and will not be described herein again.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the service management method provided by any of the implementations of the method embodiments described above.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A service management method applied to a service management system, the service management system including a deployment container containing a plurality of services and a service bundle ServiceBox, the service bundle ServiceBox being deployed in the deployment container, the deployment container being used to provide a running environment for the services in the service bundle ServiceBox, the method including:
receiving an operation instruction of a user to-be-operated service, wherein the to-be-operated service is at least one of a plurality of services included in the deployment container;
and when the deployment container is monitored to be started, performing corresponding operation processing on the service to be operated according to the operation instruction.
2. The method according to claim 1, wherein after performing corresponding operation processing on the service to be operated according to the operation instruction when the deployment container is monitored to be started, the method further comprises:
and updating the running state of the service to be operated after being processed in the service pack ServiceBox.
3. The method according to claim 1, wherein the performing corresponding operation processing on the service to be operated according to the operation instruction comprises:
adding the service to be operated into the service pack ServiceBox; alternatively, the first and second electrodes may be,
starting to run the service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
stopping running the service to be operated in the service pack ServiceBox; alternatively, the first and second electrodes may be,
and deleting the service to be operated from the service pack ServiceBox.
4. The method according to claim 3, wherein the starting up and running the service to be operated in the service bundle ServiceBox comprises:
adding a class loader Classloader corresponding to the service to be operated to the service pack ServiceBox;
and adding the URL of the service to be operated to the class loader Classloader to load the service to be operated and start running.
5. The method according to claim 3, wherein the stopping running the service to be operated in the service bundle ServiceBox comprises:
obtaining a class loader Classloader corresponding to the service to be operated;
and closing the class loader Classloader corresponding to the service to be operated so as to stop running the service to be operated.
6. The method according to any one of claims 1 to 3, wherein after the monitoring that the deployment container is started and performing corresponding operation processing on the service to be operated according to the operation instruction, the method further comprises:
and outputting the processing result of the service to be operated.
7. The method according to any one of claims 1 to 3, wherein before receiving an operation instruction of a user to the service to be operated, the method further comprises:
adding the packet paths corresponding to the plurality of services to the JAVA class paths of the deployment container;
and loading the plurality of services into the deployment container through the packet path by using class loaders corresponding to the plurality of services.
8. The method of claim 7, wherein after loading the plurality of services into the deployment container through the package path using class loaders corresponding to the plurality of services, the method further comprises:
and recording class loaders corresponding to the plurality of services, so as to load the service to be operated through the class loaders.
9. A service management system comprising a deployment container containing a plurality of services and a service bundle ServiceBox, the service bundle ServiceBox being deployed in the deployment container, the deployment container being used to provide a runtime environment for the services in the service bundle ServiceBox, wherein,
the service pack ServiceBox is used for receiving an operation instruction of a user on a service to be operated, wherein the service to be operated is at least one of the plurality of services included in the deployment container;
and the service pack ServiceBox is further used for carrying out corresponding operation processing on the service to be operated according to the operation instruction when the deployment container is monitored to be started.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the service management method of any one of claims 1 to 8.
CN201911046425.5A 2019-10-30 2019-10-30 Service management method, system and storage medium Active CN110806878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911046425.5A CN110806878B (en) 2019-10-30 2019-10-30 Service management method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911046425.5A CN110806878B (en) 2019-10-30 2019-10-30 Service management method, system and storage medium

Publications (2)

Publication Number Publication Date
CN110806878A true CN110806878A (en) 2020-02-18
CN110806878B CN110806878B (en) 2023-07-04

Family

ID=69489600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911046425.5A Active CN110806878B (en) 2019-10-30 2019-10-30 Service management method, system and storage medium

Country Status (1)

Country Link
CN (1) CN110806878B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220418A (en) * 2021-05-07 2021-08-06 烽火通信科技股份有限公司 Container-based resource management method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822826B1 (en) * 2003-12-30 2010-10-26 Sap Ag Deployment of a web service
CN102316163A (en) * 2011-09-07 2012-01-11 山东中创软件工程股份有限公司 Method for realizing Web container expansion and Web container
CN102323884A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Web service container and method for issuing multiple Web services
US20170085419A1 (en) * 2015-09-18 2017-03-23 Le Holdings (Beijing) Co., Ltd. System and method for deploying an application
CN106789250A (en) * 2016-12-22 2017-05-31 焦点科技股份有限公司 A kind of service multi version based on container coexists implementation method
US20180285165A1 (en) * 2017-03-31 2018-10-04 Ca, Inc. Container-based system analytics appliance
CN109408197A (en) * 2018-09-29 2019-03-01 上海理想信息产业(集团)有限公司 A kind of implementation method and device of edge calculations engine
CN109547570A (en) * 2018-12-29 2019-03-29 深圳云天励飞技术有限公司 Service registration method, apparatus, registration center's management equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822826B1 (en) * 2003-12-30 2010-10-26 Sap Ag Deployment of a web service
CN102316163A (en) * 2011-09-07 2012-01-11 山东中创软件工程股份有限公司 Method for realizing Web container expansion and Web container
CN102323884A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Web service container and method for issuing multiple Web services
US20170085419A1 (en) * 2015-09-18 2017-03-23 Le Holdings (Beijing) Co., Ltd. System and method for deploying an application
CN106789250A (en) * 2016-12-22 2017-05-31 焦点科技股份有限公司 A kind of service multi version based on container coexists implementation method
US20180285165A1 (en) * 2017-03-31 2018-10-04 Ca, Inc. Container-based system analytics appliance
CN109408197A (en) * 2018-09-29 2019-03-01 上海理想信息产业(集团)有限公司 A kind of implementation method and device of edge calculations engine
CN109547570A (en) * 2018-12-29 2019-03-29 深圳云天励飞技术有限公司 Service registration method, apparatus, registration center's management equipment and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
97年的典藏版: "docker实现多个jar部署在一个容器中(版本1)", pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/lwy572039941/article/details/96336388> *
BARRYW: "OSGi类加载流程", 《HTTPS://WWW.CNBLOGS.COM/BARRYWXX/P/8522216.HTML》 *
BARRYW: "OSGi类加载流程", 《HTTPS://WWW.CNBLOGS.COM/BARRYWXX/P/8522216.HTML》, 7 March 2018 (2018-03-07), pages 1 - 7 *
HÉLÈNE COULLON: "Production Deployment Tools for IaaSes: An Overall Model and Survey", 2017 IEEE 5TH INTERNATIONAL CONFERENCE ON FUTURE INTERNET OF THINGS AND CLOUD (FICLOUD), pages 183 - 190 *
张小贝: "osgi框架基础原理与实例", 《HTTPS://BLOG.CSDN.NET/LANGUOBEIBEI/ARTICLE/DETAILS/73293351》 *
张小贝: "osgi框架基础原理与实例", 《HTTPS://BLOG.CSDN.NET/LANGUOBEIBEI/ARTICLE/DETAILS/73293351》, 15 June 2017 (2017-06-15), pages 1 - 7 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220418A (en) * 2021-05-07 2021-08-06 烽火通信科技股份有限公司 Container-based resource management method and device

Also Published As

Publication number Publication date
CN110806878B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN106951233B (en) Mixed-mode smart phone application development framework system
CN109933522B (en) Test method, test system and storage medium for automatic case
CN102105861B (en) The state that application program changes separates
CN110162345B (en) Application program access method and device and storage medium
US20190250960A1 (en) Method, apparatus, and server for managing image across cloud servers
CN111290753B (en) Method, device, equipment and storage medium for building front-end development environment
CN102378963A (en) Method and apparatus to vet an executable program using a model
CN111814089A (en) Page rendering method and device, rendering server and storage medium
US11334332B2 (en) Facilitating cloud native edge computing via behavioral intelligence
CN104067276A (en) Client-side minimal download and simulated page navigation features
CN105045602A (en) Method and device for constructing Hadoop application development framework and electronic device
CN106411721A (en) Instant message method, device and system
CN109840074B (en) Service generation method, device and network equipment
CN113867600A (en) Development method and device for processing streaming data and computer equipment
CN107526636B (en) Resource identification method and device
CN110806878A (en) Service management method, system and storage medium
CN112558968B (en) Method, device, equipment and storage medium for generating resource tree view
WO2024078465A1 (en) Scheduled job processing method, device, and storage medium
CN111651498A (en) Efficient retrieval method and device for block chain data
CN116594717B (en) Class loading isolation method, device, equipment and medium
CN110008086B (en) Log generation method and device and client
CN109656536A (en) A kind of method and client of pushing module modularization
CN113268272B (en) Application delivery method, device and system based on private cloud
CN108536429A (en) A kind of method, apparatus, storage medium and the electronic equipment of exploitation software
CN111381867B (en) Packaging deployment method and device supporting service reconfiguration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant