Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of resource data and shares method and resource data shared device, being used for overcoming the available data technology of sharing lacks effective means and carries out the management of domination to sharing data, reply different pieces of information sharing request, need the different data-interface of exploitation, cause subsequent applications exploitation and the high defective of maintenance cost.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of resource data shared method, and method comprises: extract resource data, described resource data is carried out format conversion and the specification of attribute, form authority data; On the basis of described authority data, set up different professional views, described professional view is supported partitioned storage and extraction, and, set up the mechanism that described authority data is divided into different levels; Shared interface is provided, and supporting business is used described authority data is shared according to different described professional views and level standard; Configure the request-reply mechanism of various described shared interfaces, supporting business is used and is adopted the described request acknowledgement mechanism to obtain described authority data.
In described method, foundation is divided into described authority data the mechanism of different levels, also comprise foundation: the physical resource view, link is related, business development is related, bearing association, customer service resource are related, fact table, and the redundancy summary sheet of prescribed particle size.
In described method, described providing shared interface and comprised setting: share described authority data scope, share granularity, the data sharing plan of described authority data and interface conversion service.
In described method, when receiving the sharing request of using from external business, configuration sharing strategy corresponding to described sharing request is set, comprise: described sharing request is carried out logical definition, described sharing request is set connects the information that should record in described authority data process by sharing interface.
In described method, supporting business use to adopt the described request acknowledgement mechanism also to comprise after obtaining described authority data: when the sharing request received from the described service application of outside, configure described professional view corresponding to described sharing request; Configure described level corresponding to described sharing request; Configure the scope of shared described authority data corresponding to described sharing request, granularity, the data sharing plan of shared described authority data, and the described interface conversion service of using; Configure extraction algorithm corresponding to described sharing request and sharing mode.
In described method, described extraction algorithm comprises: full dose extracts, the increment extraction in scope sometime, and accesses extraction; Described sharing mode comprises: active push mode and interface requests mode.
A kind of resource data shared device comprises: internal interface unit, be used for extracting resource data, and described resource data is carried out format conversion and the specification of attribute, form authority data; Shared snapshot storehouse is used on the basis of described authority data, sets up different professional views, and described professional view is supported partitioned storage and extraction, and, set up the mechanism that described authority data is divided into different levels; The shared logic control unit is used for providing shared interface, and supporting business is used described authority data is shared according to different described professional views and level standard; The external interface layer unit, for the request-reply mechanism that defines various described shared interfaces, supporting business is used and is adopted the described request acknowledgement mechanism to obtain described authority data.
In described equipment, described shared logic control unit comprises: the first sharing module is used for arranging the scope of sharing described authority data; The second sharing module is used for arranging the granularity of sharing described authority data; The 3rd sharing module is used for arranging the data sharing plan; The 4th sharing module is used for arranging the interface conversion service.
In described equipment, also comprise: dispensing unit is used for configuring described professional view corresponding to described sharing request when the sharing request received from the described service application of outside; Configure described level corresponding to described sharing request; Configure the scope of shared described authority data corresponding to described sharing request, granularity, the data sharing plan of shared described authority data, and the described interface conversion service of using; Configure extraction algorithm corresponding to described sharing request and sharing mode.
In described equipment, also comprise: the configuration sharing policy unit, be used for when receiving the sharing request of using from external business, configuration sharing strategy corresponding to described sharing request is set, comprise: described sharing request is carried out logical definition, described sharing request is set shares the information that should record in the described authority data process of interface connection by one.
The beneficial effect of technique scheme of the present invention is as follows: resource data is carried out format conversion, standardize according to different attributes, set up different professional views and be divided into different levels for the authority data that forms after standardization, the shared interface that provides can be supported by professional view and different levels, these authority datas to be utilized, no longer need to develop different data-interfaces for different data sharing requests, reduced subsequent applications, safeguard and utilized the cost of resource data.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
In the embodiment of the present invention, resourceoriented data management personnel, for the sharing request of different external business application for different pieces of information, realization can define the application platform of various collocation strategies flexibly by front-end interface, and, the technology of sharing of network resource data is provided.
The embodiment of the present invention provides a kind of resource data to share method, as shown in Figure 1, comprising:
Step 101 is extracted resource data, and described resource data is carried out format conversion and the specification of attribute, forms authority data;
Step 102 on the basis of described authority data, is set up different professional views, and described professional view is supported partitioned storage and extraction, and sets up the mechanism that described authority data is divided into different levels;
Step 103 provides shared interface, and supporting business is used described authority data is shared use according to different described professional views and level standard;
Step 104, the request-reply mechanism of the various described shared interfaces of definition, supporting business is used and is adopted the described request acknowledgement mechanism to obtain described authority data.
Use the technical scheme that the embodiment of the present invention provides, resource data is carried out format conversion, standardize according to different attributes, set up different professional views and be divided into different levels for the authority data that forms after standardization, the shared interface that provides can be supported by professional view and different levels, these authority datas to be utilized, no longer need to develop different data-interfaces for different data sharing requests, reduced subsequent applications, safeguard and utilized the cost of resource data.
In a preferred embodiment, foundation is divided into described authority data the mechanism of different levels, also comprise foundation: physical resource view, link association, business development (TOPO) association, bearing association, the association of customer service resource, fact table, and the redundancy summary sheet of prescribed particle size.
In a preferred embodiment, provide shared interface to comprise setting: share data area, the granularity of shared resource data, data sharing plan, and the interface conversion service of using.
In a preferred embodiment, the request-reply mechanism of the various described shared interfaces of definition also comprises: the encapsulation format of definition resource data, and the described resource data that will extract is converted to described encapsulation format.
In a preferred embodiment, when receiving the sharing request of using from external business, configuration sharing strategy corresponding to described sharing request is set, comprise: described sharing request is carried out logical definition, described sharing request is set shares the information that should record in the described authority data process of interface connection by one.
In a preferred embodiment, when receiving the sharing request of using from external business, also comprise:
Configure described professional view corresponding to described sharing request;
Configure described level corresponding to described sharing request;
Configure shared data area corresponding to described sharing request, the granularity of shared resource data, data sharing plan, and the interface conversion service of using;
Configure extraction algorithm corresponding to described sharing request and sharing mode.
Wherein, described extraction algorithm comprises: full dose extracts, the increment extraction in scope sometime; And the complexity of special applications accesses (Callout) extraction.
Described sharing mode comprises: active push mode and interface requests mode.
Described configuration sharing strategy comprises: configuration attitude and two kinds of existence forms of example attitude: the former is the logical definition to a certain interface requests, and the latter is the concrete information recording/that certain is shared of this interface.
Each embodiment provide is provided, as shown in Figure 3, has realized that resource data shares the resource data shared platform of method and comprise four core function unit for one: internal interface unit, share snapshot storehouse, shared logic control unit and external interface layer unit; Wherein:
Internal interface unit, share the snapshot storehouse and be connected with being connected with database, be used for extracting the SNAPSHOT INFO of resource data to shared snapshot storehouse from database, the several data Extracting Abilities such as a minute professional net, subregion and full dose, increment are provided, provide the processing capacities such as format conversion and the specification of attribute on original resource data basis, guarantee relative real-time, integrality and stability between database and shared snapshot database data;
Shared snapshot storehouse, the snapshot that is used for the shared resource data of unified storage, build unified resource model according to related specifications, each professional view partitioned storage and extraction is provided, and set up hierarchical data-physical resource view, link is related, business development is related, bearing association, customer service resource are related, the redundancy summary sheet of fact table and certain particle size, satisfies the shared demand of different business application;
The shared logic control unit for different outside sharing request, provides the shared interface definition mechanism of flexibility, comprises setting: share data area, share data granularity, data sharing plan and the interface conversion service used etc.; Wherein, the data sharing plan comprise regularly, the service logic such as regular and real-time.
The external interface layer unit, the request-reply mechanism of the various shared interfaces of definition, the interface encapsulation form of the resource data that definition is shared, and the resource data of sharing that will extract is converted to the form of shared interface support-be encapsulation format.
In an application scenarios, use different sharing request for external business, these sharing request are converted into configuration sharing strategy (Profile), Profile uses the configuration descriptor of a certain shared interface for external business, every kind of application demand has unique Profile sign corresponding with it; Profile has configuration attitude and two kinds of existence forms of example attitude: the configuration attitude is the logical definition to a certain interface requests, and the example attitude is the concrete information recording/that certain is shared of this interface, mainly comprises following information in Profile:
1, share data area
Network element device is divided according to the specialized network scope, and netting inside in a certain specialty can also be according to the further segmentation such as network layer, Regional Property, and for a certain Profile, the resource data scope can be selected arbitrarily and/or superpose.
2, the hierarchy selection of shared data
The shared granularity of data is shared in configuration, mainly comprises: the granularity of resource association, the shared granularity of the attribute of resource entity own.
Wherein, the granularity of resource association refers to such as network element device, integrated circuit board, port, link, circuit, circuit carrying, code association, customer service resource, site information, normal address etc. can configure different shared data categories according to different sharing request; The shared granularity of the attribute of resource entity own is for different network resource type/subtype, can configure with different granularities the sharing request of different attribute according to different sharing request.
3, the extraction algorithm of shared data
For the Internet resources in above-mentioned resource data scope, the corresponding extraction algorithm that can superpose is to satisfy the needs of different application demand, and conventional algorithm comprises: full dose extracts, the increment extraction in scope sometime; And the complicated Callout extraction of special applications etc.
Wherein, complicated Callout extracts and refers to, further dwindles demand for the resource data in a certain network range, holds all network element links of connecting under the topology, A network element of Z end etc. as only needing to share such as A; At this moment, can process function by definition Callout, share data pick-up for a kind of special searching algorithm of stack in a certain network range.
4, sharing mode
Sharing mode comprises active push mode and interface requests mode;
The active push mode needs further to define the parameter informations such as timer, and active push frequency; The interface requests mode is generally synchronous online application service (WebService) or asynchronous Java messenger service (JMS).
5, interface mode
The published method of data is shared in definition, for different applications demands, is being all stable aspect the interface service definition; Published method is supported WebServcie, file transfer protocol (FTP) (FTP, File Transfer Protocol), the technology such as JMS, the manager can be according to the sharing request flexible configuration, take the WebService interface as example, different applications demands is only corresponding WebService interface a: ShareDB (String profileId, String inputXML) return outXML all; Wherein, outXML is the output extensible markup language document.
Different business is applied in when calling this shared interface, only need provide separately different Profile unique identifications, and input extend markup language (inputXML) file of package request information gets final product; Simultaneously, the data of externally sharing all encapsulate according to unified XML form.
In an application scenarios, the data sharing method that provides is provided, workflow comprises as shown in Figure 2:
Outside service application is submitted to the manager with the data sharing request, configures Profile by the manager, and scope, level, data pick-up algorithm, sharing mode and the interfacing of data shared in definition, forms the Profile example.
According to the sharing mode in the Profile example and interfacing configuration parameter, the Profile example is tied on different control services: as " active push mode ", system is tied to the Profile example on the timed task controller; " interface interchange mode ", system is tied to the Profile example on the WebService/JMS interface service.
External business is used and is used when sharing data, for the active push mode, the resource data shared device can be according to the time frequency that defines in Profile, extracts by the timed task controller and shares data and proactive dissemination to ftp server, and external business is used and can be extracted as required; For the interface interchange mode, external business is used by profileID is provided, the inputXML parameter initiates to share call request, the monitoring service of resource data shared platform can be extracted Profile example information and resolve according to profileID, then extracts and shares data and return to shared data by outXML.
So far, complete a service application for definition and the access process of the sharing request of resource data.
The embodiment of the present invention also provides a kind of resource data shared device, as shown in Figure 3, comprising:
Internal interface unit 301 is used for extracting resource data, and described resource data is carried out format conversion and the specification of attribute, forms authority data;
Shared snapshot storehouse 302 is used on the basis of described authority data, sets up different professional views, and described professional view is supported partitioned storage and extraction, and, set up the mechanism that described authority data is divided into different levels;
Shared logic control unit 303 is used for providing shared interface, and supporting business is used described authority data is shared according to different described professional views and level standard;
External interface layer unit 304, for the request-reply mechanism that defines various described shared interfaces, supporting business is used and is adopted the described request acknowledgement mechanism to obtain described authority data.
In a preferred embodiment, shared logic control unit 303 comprises:
The first sharing module is used for arranging the scope of sharing described authority data;
The second sharing module is used for arranging the granularity of sharing described authority data;
The 3rd sharing module is used for arranging the data sharing plan;
The 4th sharing module is used for arranging the interface conversion service.
In a preferred embodiment, equipment also comprises:
Dispensing unit is used for when the sharing request received from the described service application of outside,
Configure described professional view corresponding to described sharing request;
Configure described level corresponding to described sharing request;
Configure the scope of shared described authority data corresponding to described sharing request, granularity, the data sharing plan of shared described authority data, and the described interface conversion service of using;
Configure extraction algorithm corresponding to described sharing request and sharing mode.
The configuration sharing policy unit, be used for when receiving the sharing request of using from external business, configuration sharing strategy corresponding to described sharing request is set, comprise: described sharing request is carried out logical definition, described sharing request is set connects the information that should record in described authority data process by an interface.
adopt this programme advantage afterwards to be: the resource data that comes automatic network to magnanimity carries out format conversion, standardize according to different attributes, afterwards for standard after resource data set up different professional views and be divided into different levels, the shared interface that provides can be supported by professional view and different levels, these resource datas to be utilized, make the different pieces of information sharing request, the business personnel can directly carry out the configuration effort that resource data is shared, no longer need the different data-interface of integrator's exploitation, reduced subsequent applications, safeguard and utilize the cost of these resource datas, improved production efficiency.
The above is the preferred embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.