CN106941413B - Service management method and device - Google Patents
Service management method and device Download PDFInfo
- Publication number
- CN106941413B CN106941413B CN201610005732.9A CN201610005732A CN106941413B CN 106941413 B CN106941413 B CN 106941413B CN 201610005732 A CN201610005732 A CN 201610005732A CN 106941413 B CN106941413 B CN 106941413B
- Authority
- CN
- China
- Prior art keywords
- service
- resource
- service information
- existing
- information
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5051—Service on demand, e.g. definition and deployment of services in real time
Abstract
The invention provides a method and a device for service management. The service management method comprises the following steps: acquiring service information and passed resources of the existing service, and establishing a mapping relation between each passed resource of the existing service and the service information; acquiring resources on each single network element; generating a service to be positioned according to the acquired resources on each single network element; and traversing the mapping relation according to each resource in the service to be positioned, and determining the change of the service to be positioned relative to the existing service. The invention solves the problem that the original normal service may be changed into the abnormal service when the service discovery operation is carried out during the equipment upgrading in the prior art.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for service management.
Background
With the rapid development of communication technology, the number of managed devices in an optical network is increasing, the number of services configured on one device is also increasing, a user often performs operations such as upgrading and reconstruction on some devices, if a certain device is configured with a plurality of services, the user performs upgrading operation on the device, and when resource data on the device is not completely uploaded to a network manager, the user performs service discovery operation, so that the original normal services in the network manager become non-terminated services or cannot be formed any more because the data of the resources in the network manager is incomplete, and information of the services originally created by the user is lost, which brings great inconvenience to the user for managing the services.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for service management, so as to solve a problem in the prior art that an original normal service may be changed into an abnormal service when a service discovery operation is performed during equipment upgrade.
In a first aspect, a method for service management is provided, where the method includes: acquiring service information and passed resources of the existing service, and establishing a mapping relation between each passed resource of the existing service and the service information; acquiring resources on each single network element; generating a service to be positioned according to the acquired resources on each single network element; and traversing the mapping relation according to each resource in the service to be positioned, and determining the change of the service to be positioned relative to the existing service.
Optionally, the step of determining a change of the service to be positioned relative to the existing service by traversing the mapping relationship according to each resource in the service to be positioned includes: acquiring each resource in a service to be positioned, traversing a mapping relation, and judging whether corresponding service information corresponding to the resource in the service to be positioned exists or not; when corresponding service information corresponding to any resource in the service to be positioned does not exist, determining the service to be positioned as a new service; when corresponding service information corresponding to one resource in the service to be positioned exists, further judging that the service to be positioned is in a normal or abnormal current state; and determining the change of the service to be positioned relative to the existing service corresponding to the corresponding service information according to the current state of the service to be positioned.
Optionally, the step of obtaining each resource in the service to be located, traversing the mapping relationship, and determining whether there is corresponding service information corresponding to each resource includes: acquiring a first resource in a service to be positioned, comparing the first resource with each resource in a mapping relation, and determining service information corresponding to a second resource in the mapping relation as corresponding service information when a second resource in the mapping relation is the same as the first resource; when the mapping relation does not have the same resource as the first resource, corresponding service information corresponding to the first resource does not exist; and then acquiring another resource except the first resource in the service to be positioned, traversing the mapping relation, and judging whether corresponding service information corresponding to the other resource exists.
Optionally, the step of determining, according to the current state of the service to be located, a change of the service to be located with respect to an existing service corresponding to the corresponding service information includes: when the current state of the service to be positioned is normal, establishing a mapping relation between corresponding service information and the service to be positioned, deleting the existing service corresponding to the corresponding service information and storing the service to be positioned; and when the current state of the service to be positioned is abnormal, marking the resource missing mark on the existing service corresponding to the corresponding service information and storing the existing service corresponding to the corresponding service information.
Optionally, after the step of determining that the service to be located is a new service, the method further includes: and generating default service information for the new service, and storing the new service.
Optionally, after the step of determining, according to the current state of the service to be located and the current state in the corresponding service information, a change of the service to be located with respect to the existing service corresponding to the corresponding service information, the method further includes: and when the second service information in the service information does not have the corresponding service to be positioned, marking the resource missing mark on the existing service corresponding to the second service information, and storing the existing service corresponding to the second service information.
In a second aspect, an apparatus for service management is further provided, where the apparatus includes: the system comprises an establishing module, a processing module and a processing module, wherein the establishing module is used for acquiring service information and passed resources of the existing service and establishing a mapping relation between each passed resource of the existing service and the service information; the acquisition module is used for acquiring resources on each single network element; the generating module is used for generating the service to be positioned according to the acquired resources on each single network element; and the determining module is used for traversing the mapping relation according to each resource in the service to be positioned and judging the change of the service to be positioned relative to the existing service.
Optionally, the determining module includes: the first judging unit is used for acquiring each resource in the service to be positioned, traversing the mapping relation and judging whether corresponding service information corresponding to the resource in the service to be positioned exists or not; a first determining unit, configured to determine that a service to be located is a new service when there is no corresponding service information corresponding to any resource in the service to be located; a second judging unit, configured to further judge that the service to be positioned is in a normal or abnormal current state when there is corresponding service information corresponding to one of the resources in the service to be positioned; and the second determining unit is used for determining the change of the service to be positioned relative to the existing service corresponding to the corresponding service information according to the current state of the service to be positioned.
Optionally, the first determining unit is specifically configured to: acquiring a first resource in a service to be positioned, comparing the first resource with each resource in a mapping relation, and determining service information corresponding to a second resource in the mapping relation as corresponding service information when a second resource in the mapping relation is the same as the first resource; when the mapping relation does not have the same resource as the first resource, corresponding service information corresponding to the first resource does not exist; and then acquiring another resource except the first resource in the service to be positioned, traversing the mapping relation, and judging whether corresponding service information corresponding to the other resource exists.
Optionally, the second determining unit is specifically configured to: the method comprises the steps of establishing a mapping relation between corresponding service information and a service to be positioned when the current state of the service to be positioned is normal, deleting the existing service corresponding to the corresponding service information and storing the service to be positioned; and when the current state of the service to be positioned is abnormal, marking the resource missing mark on the existing service corresponding to the corresponding service information and storing the existing service corresponding to the corresponding service information.
Optionally, the determining module further comprises: and the generating unit is used for generating default service information for the new service and storing the new service when the service to be positioned is determined to be the new service.
Optionally, the apparatus further comprises: and the marking module is used for marking the resource missing mark on the existing service corresponding to the second service information and storing the existing service corresponding to the second service information when the second service information in the service information does not have the corresponding service to be positioned.
The technical scheme of the invention has the following beneficial effects:
in the embodiment of the invention, the mapping relation between each resource passed by the existing service and the service information is established by acquiring the service information and the passed resource of the existing service; acquiring resources on each single network element; generating a service to be positioned according to the acquired resources on each single network element; and traversing the mapping relation according to each resource in the service to be positioned, and determining the change of the service to be positioned relative to the existing service. When the existing normal service is in resource loss, the discovery operation is carried out, the integrity can still be kept, and the user can know what resources are lost in the service according to the resource loss mark. And the management of the user to the service is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be 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 it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a method of service management according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method of service management according to a second embodiment of the present invention;
fig. 3A is a block diagram of a service management apparatus according to a third embodiment of the present invention;
fig. 3B is a block diagram of a service management apparatus according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for service management according to a fourth 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.
First embodiment
Referring to fig. 1, fig. 1 shows a flowchart of a method for service management in a first embodiment of the present invention, which includes the following specific steps:
It should be noted that the mapping relationship established in step 101 is used when matching service information for the service to be positioned generated in the subsequent step.
And 102, acquiring resources on each single network element.
It should be noted that the resources obtained in step 102 are used to generate a service to be located, where the resources may be original resources of each single network element, or may be newly added resources of some single network elements.
And 103, generating a service to be positioned according to the acquired resources on each single network element.
It should be noted that, in step 103, a service to be positioned is generated through a discovery operation, where if resources constituting the service to be positioned are complete, the service to be positioned is a normal type service; if the resources forming the service to be positioned are incomplete, the service to be positioned is abnormal; if the resource composing the service to be positioned is the newly added resource on the network element, the service to be positioned is a new service relative to the existing service.
And step 104, traversing the mapping relation according to each resource in the service to be positioned, and determining the change of the service to be positioned relative to the existing service.
It should be noted that, the step of obtaining each resource in the service to be located in step 104 and traversing the mapping relationship specifically includes obtaining a first resource in the service to be located, comparing the first resource with each resource in the mapping relationship established in step 101, and when a second resource in the mapping relationship is the same as the first resource, determining that service information corresponding to the second resource in the mapping relationship is corresponding service information.
And when the resources in the mapping relation are not the same as the first resources, acquiring another resource except the first resources in the service to be positioned, and comparing the acquired resource with each resource in the mapping relation again. And when the corresponding service information corresponding to any resource in the service to be positioned does not exist, determining that the service to be positioned is a new service, generating default service information for the generated new service at the moment, and storing the new service.
When corresponding service information corresponding to one resource in the service to be positioned exists, further judging the current state of the service to be positioned; when the current state of the service to be positioned is normal, establishing a mapping relation between corresponding service information and the service to be positioned, namely enabling the service to be positioned to inherit the corresponding service information, then deleting the existing service corresponding to the corresponding service information, and finally storing the service to be positioned; when the current state of the service to be positioned is abnormal, the resource loss of the existing service corresponding to the corresponding service information is described, and the existing service is marked with the resource loss and is stored. The resource missing mark comprises information of the resource missing from the existing service, and the user can know which resources are missing from the existing service according to the resource missing mark, so as to further manage the existing service.
After the service information of each service to be located is determined, traversing the mapping relationship established in step 101, when the second service information does not have a corresponding service to be located, that is, when the second service information is not located, it indicates that resources of the existing service corresponding to the second service information are all missing, marking the existing service corresponding to the second service information with a resource missing mark, and storing the existing service corresponding to the second service information.
The embodiment establishes a mapping relation between each resource passed by the existing service and the service information by acquiring the service information and the passed resource of the existing service; acquiring resources on each single network element; generating a service to be positioned according to the acquired resources on each single network element; and traversing the mapping relation according to each resource in the service to be positioned, and determining the change of the service to be positioned relative to the existing service. When the existing normal service is in resource loss, the discovery operation is carried out, the integrity can still be kept, and the user can know what resources are lost in the service according to the resource loss mark. And the management of the user to the service is facilitated.
Second embodiment
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for service management according to a second embodiment of the present invention, which includes the following specific steps:
It should be noted that the mapping relationship established in step 201 is used when the service information is matched for the service to be positioned generated in the subsequent step.
It should be noted that the resources obtained in step 202 are used to generate a service to be located, where the resources may be original resources of each single network element, or may be newly added resources of some single network elements.
It should be noted that, in step 203, a service to be positioned is generated through a discovery operation, where if resources constituting the service to be positioned are complete, the service to be positioned is a normal service; if the resources forming the service to be positioned are incomplete, the service to be positioned is abnormal; and if the resources forming the service to be positioned are the resources newly added on the network element, the service to be positioned is a new service relative to the existing service.
It should be noted that, in step 204, specifically, a first resource in the service to be located is obtained, the first resource is compared with each resource in the mapping relationship established in step 201, and when a second resource in the mapping relationship is the same as the first resource, service information corresponding to the second resource in the mapping relationship is determined to be corresponding service information. And when the resources in the mapping relation are not the same as the first resources, acquiring another resource except the first resources in the service to be positioned, and comparing the acquired resource with each resource in the mapping relation again.
It should be noted that, in step 206, when there is no corresponding service information corresponding to any resource in the service to be located, it indicates that the resources forming the service to be located do not exist before, that is, all the resources forming the service to be located are newly added resources, and at this time, the service to be located is a new service relative to the existing service.
And step 208, judging the current state of the service to be positioned, entering step 209 when the current state of the service to be positioned is normal, and entering step 2010 when the current state of the service to be positioned is abnormal.
It should be noted that, in step 209, when the current state of the service to be located is normal, the service to be located inherits the corresponding service information, and then deletes the existing service according to the name of the existing service in the corresponding service information and stores the service to be located, where the name of the service managed by the user is not changed.
It should be noted that, in step 2010, when the current state of the service to be located is abnormal, it is described that the resource of the existing service corresponding to the service information at this time is lost, so that the existing service is marked with a resource loss and the existing service is continuously stored, thereby avoiding the problem that the existing normal service becomes an abnormal service due to the service discovery operation performed under the condition of resource loss.
In step 2011, when the second service information does not have a corresponding service to be located, the resource missing flag is marked on the existing service corresponding to the second service information, and the existing service corresponding to the second service information is saved.
It should be noted that, in step 2011, when there is no corresponding service to be located in the second service information, it is indicated that resources of the existing service corresponding to the second service information are all missing, so at this time, it is necessary to mark the missing resource of the existing service corresponding to the second service information and continue to store the existing service.
The embodiment establishes a mapping relation between each resource passed by the existing service and the service information by acquiring the service information and the passed resource of the existing service; acquiring resources on each single network element; generating a service to be positioned according to the acquired resources on each single network element; and traversing the mapping relation according to each resource in the service to be positioned, and determining the change of the service to be positioned relative to the existing service. When the existing normal service is in resource loss, the discovery operation is carried out, the integrity can still be kept, and the user can know what resources are lost in the service according to the resource loss mark. And the management of the user to the service is facilitated.
Third embodiment
Referring to fig. 3A, fig. 3A is a structural diagram of a device for service management according to a third embodiment of the present invention, where the device shown in fig. 3A includes: the device comprises an establishing module 301, an obtaining module 302, a generating module 303 and a determining module 304. Wherein:
the establishing module 301 is configured to obtain service information and passed resources of an existing service, and establish a mapping relationship between each passed resource of the existing service and the service information.
An obtaining module 302, configured to obtain resources on each single network element.
A generating module 303, configured to generate a service to be located according to the acquired resource on each single network element.
The determining module 304 is configured to traverse the mapping relationship according to each resource in the service to be located, and determine a change of the service to be located relative to the existing service.
On the basis of fig. 3A, optionally, the apparatus further includes: the marking module 305, and the determining module 304 includes: a first determining unit 3041, a first determining unit 3042, a second determining unit 3043, a second determining unit 3044, and a generating unit 3045, see fig. 3B. Wherein:
the marking module 305 is configured to mark a resource missing mark on an existing service corresponding to the second service information and store the existing service corresponding to the second service information when the second service information does not have a corresponding service to be located.
The first determining unit 3041 is configured to obtain each resource in the service to be located, traverse the mapping relationship, and determine whether corresponding service information corresponding to each resource exists.
A first determining unit 3042, configured to determine that the service to be positioned is a new service when there is no corresponding service information corresponding to any resource in the service to be positioned.
A second determining unit 3043, configured to further determine that the service to be positioned is in a normal or abnormal current state when there is corresponding service information corresponding to one of the resources in the service to be positioned.
A second determining unit 3044, configured to determine, according to the current state of the service to be located, a change of the service to be located relative to the existing service corresponding to the corresponding service information.
A generating unit 3045, configured to generate default service information for a new service and store the new service when it is determined that the service to be located is the new service.
The above-mentioned apparatus can implement each process implemented by the apparatus in the embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
The embodiment of the device also establishes the mapping relation between each resource passed by the existing service and the service information by acquiring the service information and the passed resource of the existing service; acquiring resources on each single network element; generating a service to be positioned according to the acquired resources on each single network element; and traversing the mapping relation according to each resource in the service to be positioned, and determining the change of the service to be positioned relative to the existing service. When the existing normal service is in resource loss, the discovery operation is carried out, the integrity can still be kept, and the user can know what resources are lost in the service according to the resource loss mark. And the management of the user to the service is facilitated.
Fourth embodiment
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for service management according to a fourth embodiment of the present invention, which includes the following specific steps:
step 401, obtaining service information and passed resources of an existing service, and establishing a mapping relationship between each passed resource of the existing service and the service information, where the service information includes: the original type, the existing type, and the service name, the mapping relationship is stored in a mapping interval, and then step 402 is performed.
Step 403, generating a service to be positioned according to the acquired resources on each single network element, and then entering step 404.
Step 406: the type of the service to be positioned is assigned to the existing type in the corresponding service information, and then step 407 is entered.
Step 407: the existing type is determined, and if the existing type is a normal type, step 408 is entered, and if the existing type is not a normal type, step 409 is entered.
Step 408: and establishing a mapping relation between the corresponding service information and the service to be positioned, deleting the existing service corresponding to the corresponding service information according to the service name in the corresponding service information, storing the service to be positioned, and then entering step 4010.
Step 4010: and traversing the mapping interval, if the original type in the second service information is normal and the existing type is the initial value type, marking the resource missing mark on the existing service corresponding to the second service information and then storing the service.
Step 4011, determining the service to be positioned as a new service, generating default service information for the new service, and then storing the new service.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (12)
1. A method for traffic management, the method comprising:
acquiring service information and passed resources of the existing service, and establishing a mapping relation between each passed resource of the existing service and the service information;
acquiring resources on each single network element;
generating a service to be positioned according to the acquired resources on each single network element;
and traversing the mapping relation according to each resource in the service to be positioned, judging whether the service information of the existing service exists in the service to be positioned, and determining the change of the service to be positioned relative to the existing service according to the judgment result.
2. The method of claim 1, wherein the step of traversing the mapping relationship according to each resource in the service to be positioned, determining whether service information of an existing service exists in the service to be positioned, and determining a change of the service to be positioned relative to the existing service according to a determination result comprises:
acquiring each resource in the service to be positioned, traversing the mapping relation, and judging whether corresponding service information corresponding to the resource in the service to be positioned exists or not;
when the corresponding service information corresponding to any resource in the service to be positioned does not exist, determining the service to be positioned as a new service;
when the corresponding service information corresponding to one resource in the service to be positioned exists, further judging that the service to be positioned is in a normal or abnormal current state;
and determining the change of the service to be positioned relative to the existing service corresponding to the corresponding service information according to the current state of the service to be positioned.
3. The method of claim 2, wherein the step of obtaining each resource in the service to be located, traversing the mapping relationship, and determining whether there is corresponding service information corresponding to each resource comprises:
acquiring a first resource in the service to be positioned, comparing the first resource with each resource in the mapping relation, and determining service information corresponding to a second resource in the mapping relation as the corresponding service information when the second resource in the mapping relation is the same as the first resource;
when no resource in the mapping relation is the same as the first resource, the corresponding service information corresponding to the first resource does not exist;
and then acquiring another resource except the first resource in the service to be positioned, traversing the mapping relation, and judging whether corresponding service information corresponding to the other resource exists.
4. The method of claim 2, wherein the step of determining a change in the service to be positioned relative to an existing service corresponding to the corresponding service information based on the current state of the service to be positioned comprises:
when the current state of the service to be positioned is normal, establishing a mapping relation between the corresponding service information and the service to be positioned, deleting the existing service corresponding to the corresponding service information and storing the service to be positioned;
and when the current state of the service to be positioned is abnormal, marking the resource missing mark on the existing service corresponding to the corresponding service information and storing the existing service corresponding to the corresponding service information.
5. The method of claim 2, wherein after the step of determining that the service to be located is a new service, the method further comprises:
and generating default service information for the new service, and storing the new service.
6. The method of claim 2, wherein after the step of determining a change in the service to be positioned relative to an existing service corresponding to the corresponding service information based on the current state of the service to be positioned, the method further comprises:
and when second service information in the service information does not have the corresponding service to be positioned, marking the existing service corresponding to the second service information with a resource missing mark, and storing the existing service corresponding to the second service information.
7. An apparatus for traffic management, the apparatus comprising:
the system comprises an establishing module, a processing module and a processing module, wherein the establishing module is used for acquiring service information and passed resources of the existing service and establishing a mapping relation between each passed resource of the existing service and the service information;
the acquisition module is used for acquiring resources on each single network element;
the generating module is used for generating the service to be positioned according to the acquired resources on each single network element;
and the determining module is used for traversing the mapping relation according to each resource in the service to be positioned, judging whether the service information of the existing service exists in the service to be positioned, and judging the change of the service to be positioned relative to the existing service according to the judgment result.
8. The apparatus of claim 7, wherein the determining module comprises:
a first judging unit, configured to acquire each resource in the service to be positioned, traverse the mapping relationship, and judge whether there is corresponding service information corresponding to the resource in the service to be positioned;
a first determining unit, configured to determine that the service to be positioned is a new service when the corresponding service information corresponding to any resource in the service to be positioned does not exist;
a second determining unit, configured to further determine that the service to be positioned is in a normal or abnormal current state when the corresponding service information corresponding to one of the resources in the service to be positioned exists;
a second determining unit, configured to determine, according to the current state of the service to be located and the current state in the corresponding service information, a change of the service to be located relative to an existing service corresponding to the corresponding service information.
9. The apparatus of claim 8, wherein the first determining unit is specifically configured to:
acquiring a first resource in the service to be positioned, comparing the first resource with each resource in the mapping relation, and determining service information corresponding to a second resource in the mapping relation as the corresponding service information when the second resource in the mapping relation is the same as the first resource;
when no resource in the mapping relation is the same as the first resource, the corresponding service information corresponding to the first resource does not exist;
and then acquiring another resource except the first resource in the service to be positioned, traversing the mapping relation, and judging whether corresponding service information corresponding to the other resource exists.
10. The apparatus of claim 8, wherein the second determining unit is specifically configured to:
when the current state of the service to be positioned is normal, establishing a mapping relation between the corresponding service information and the service to be positioned, deleting the existing service corresponding to the corresponding service information and storing the service to be positioned;
and when the current state of the service to be positioned is abnormal, marking the resource missing mark on the existing service corresponding to the corresponding service information and storing the existing service corresponding to the corresponding service information.
11. The apparatus of claim 8, wherein the determining module further comprises:
and the generating unit is used for generating default service information for the new service and storing the new service when the service to be positioned is determined to be the new service.
12. The apparatus of claim 8, wherein the apparatus further comprises:
and the marking module is used for marking the existing service corresponding to the second service information with a resource missing mark and storing the existing service corresponding to the second service information when the second service information in the service information does not have the corresponding service to be positioned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610005732.9A CN106941413B (en) | 2016-01-04 | 2016-01-04 | Service management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610005732.9A CN106941413B (en) | 2016-01-04 | 2016-01-04 | Service management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106941413A CN106941413A (en) | 2017-07-11 |
CN106941413B true CN106941413B (en) | 2020-07-31 |
Family
ID=59469707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610005732.9A Active CN106941413B (en) | 2016-01-04 | 2016-01-04 | Service management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106941413B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109344265A (en) * | 2018-09-10 | 2019-02-15 | 新华三大数据技术有限公司 | A kind of method for managing resource and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873460A (en) * | 2014-01-27 | 2014-06-18 | 华为技术有限公司 | Business resource group realizing method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006073784A2 (en) * | 2005-01-04 | 2006-07-13 | Trusted Network Technologies, Inc. | System, apparatuses, and method for linking and advising of network events related to resource access |
CN101068415A (en) * | 2007-05-29 | 2007-11-07 | 中国网络通信集团公司 | Mobile terminal machine card matching information logon method and device |
CN101442591B (en) * | 2008-12-03 | 2013-01-09 | 中兴通讯股份有限公司 | Method and system for self-checking and updating performance business model discrepancy |
CN104820630B (en) * | 2015-05-22 | 2017-07-07 | 上海新炬网络信息技术有限公司 | System resource supervising device based on business variable quantity |
-
2016
- 2016-01-04 CN CN201610005732.9A patent/CN106941413B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873460A (en) * | 2014-01-27 | 2014-06-18 | 华为技术有限公司 | Business resource group realizing method and device |
Non-Patent Citations (1)
Title |
---|
"云制造环境下基于工作流的多粒度资源组合方法";李海波;《计算机集成制造系统》;20130115;第210-216段 * |
Also Published As
Publication number | Publication date |
---|---|
CN106941413A (en) | 2017-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107733708B (en) | Equipment parameter configuration method and device, computer equipment and storage medium | |
US8489941B2 (en) | Automatic documentation of ticket execution | |
CN105260639A (en) | Face recognition system data update method and device | |
CN115001967A (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN106301975A (en) | A kind of data detection method and device thereof | |
CN106941413B (en) | Service management method and device | |
CN106358220A (en) | Detection method of abnormal contact person information, device and system | |
CN110611591B (en) | Network topology establishing method and device | |
CN111695880A (en) | Production process monitoring method and system | |
CN110990360A (en) | File synchronization method based on network storage device and related components | |
CN104468230B (en) | Management method, read method, corresponding equipment and the system of configuration file | |
CN112417259B (en) | Media resource processing method, device, equipment and storage medium | |
CN113282312A (en) | Software package updating method and system | |
CN113486100A (en) | Service management method, device, server and computer storage medium | |
WO2016090768A1 (en) | Port attribute inheritance method and device | |
CN107851165B (en) | Key system, key client and key management method | |
CN109190396A (en) | A kind of data automatic verification method, device and equipment | |
CN112118247B (en) | Internet of vehicles data encryption method and system | |
CN110976235B (en) | Electrostatic powder spraying treatment method and system | |
CN117251769B (en) | Abnormal data identification method, device, equipment and medium based on monitoring component | |
CN109039774B (en) | Management method and device for alarm information in openstack platform | |
CN113986661A (en) | Log output method and device, electronic equipment and storage medium | |
CN112035327A (en) | Palm application management method and device | |
CN113901019A (en) | Client drainage service configuration method and device | |
CN113282481A (en) | Software performance testing method and system |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200701 Address after: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68 Applicant after: Nanjing Zhongxing New Software Co.,Ltd. Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building Applicant before: ZTE Corp. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |