CN102571427B - The name of CIM resource and analytic method in a kind of distributed system - Google Patents
The name of CIM resource and analytic method in a kind of distributed system Download PDFInfo
- Publication number
- CN102571427B CN102571427B CN201110458553.8A CN201110458553A CN102571427B CN 102571427 B CN102571427 B CN 102571427B CN 201110458553 A CN201110458553 A CN 201110458553A CN 102571427 B CN102571427 B CN 102571427B
- Authority
- CN
- China
- Prior art keywords
- resource
- name
- deployment
- title
- resolution server
- 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.)
- Expired - Fee Related
Links
Landscapes
- Computer And Data Communications (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种分布式系统中CIM资源命名及解析方法,CIM资源引用名称包括描述实体资源的资源名称标识、和描述虚拟资源的资源命名表达式;系统中的命名解析服务分布于各分布式服务器中,根据资源引用名称中的资源名称标识,确定该资源所属的部署对象,定位本地命名解析服务器,由该本地命名解析服务器对该资源引用名称进行解析。从而确保资源引用名称可以涵盖系统中所有的CIM实体资源和虚拟资源,并且在分布式环境下能够快速地将资源名称解析为名称所指向的实体,实现高效地查找分布式环境下资源实体。
The invention discloses a CIM resource naming and analysis method in a distributed system. The CIM resource reference name includes a resource name identifier describing an entity resource and a resource naming expression describing a virtual resource; the naming analysis service in the system is distributed in each distribution In the server, according to the resource name identifier in the resource reference name, the deployment object to which the resource belongs is determined, and the local naming resolution server is located, and the local naming resolution server resolves the resource reference name. In this way, it is ensured that the resource reference name can cover all CIM entity resources and virtual resources in the system, and in a distributed environment, the resource name can be quickly resolved to the entity pointed to by the name, and the resource entity in the distributed environment can be efficiently searched.
Description
技术领域 technical field
本发明涉及一种公共信息模型资源命名解析技术The invention relates to a public information model resource naming analysis technology
背景技术 Background technique
名称在所有计算机系统中(尤其是在分布式系统中)起着重要的作用。它们用来共享资源、唯一标识实体、指向位置等。要解析名称,需要实现命名系统。Names play an important role in all computer systems, especially in distributed systems. They are used to share resources, uniquely identify entities, point to locations, etc. To resolve names, a naming system needs to be implemented.
命名系统通常关注两类问题:即1)用户友好的名称的组织和实现,典型的例子如万维网的URI名称以及文件系统;2)名称如何实现与实体当前位置无关的方式来定位它们。Naming systems generally focus on two types of issues: namely 1) the organization and implementation of user-friendly names, typical examples such as URI names for the World Wide Web and the file system; 2) how names can be implemented to locate entities in a manner independent of their current location.
常见的资源命名方法主要有随机标识符方法、分层方法。Common resource naming methods mainly include random identifier method and hierarchical method.
随机标识符方法如下:The random identifier method is as follows:
在很多情况下,标识符只是随机的字符串。这种命名方式的一个重要属性是,它不包含任何有关如何定位其相关实体的访问点的信息。在某些场合下,这种名称能够很好地工作,并且因为其简便的命名方法经常被采用。这种命名方法的典型例子是局域网内各种机器的接入,在这种环境中定位实体是一件很简单的事情:包含该实体所用标识符的消息会广播到每一台机器上,每台机器通过查看是否拥有该实体,只有为该实体提供访问点的机器才会发送含有访问点地址的回复消息。随着网络的膨胀,广播开始变得低效。一种可能的解决方法是转换成多播,通过使用多播,只有符合条件的一组主机才会接收到请求。In many cases, identifiers are just random strings. An important property of this naming style is that it does not contain any information about how to locate the access point of its related entities. In some cases, this name works well, and it is often used because of its convenient naming method. A typical example of this naming method is the access of various machines in a local area network. Locating an entity in this environment is a very simple matter: a message containing the identifier used by the entity is broadcast to each machine, and each A machine checks to see if it owns the entity, and only the machine that provides the entity with an access point will send a reply message containing the address of the access point. As the network swells, broadcasting becomes inefficient. One possible solution is to switch to multicast, by using multicast, only a group of hosts that meet the criteria will receive the request.
分层方法如下:The layering method is as follows:
在分层方案中,将命名实体组成的网络划分为一组域。有一个覆盖整个网络的顶级域。每个域又可以进一步划分成多个更小的子域。每个域都拥有关联的目录节点。节点会跟踪域中的实体,这样就形成了一棵目录节点树。顶级域的目录节点成为根(目录)节点,它包括了全部实体。In a hierarchical scheme, a network of named entities is partitioned into a set of domains. There is a top-level domain that covers the entire web. Each domain can be further divided into multiple smaller sub-domains. Each domain has an associated directory node. Nodes keep track of entities in the domain, thus forming a tree of directory nodes. The directory node of the top-level domain becomes the root (directory) node, which includes all entities.
为了跟踪实体的位置,每个位于当前域内的实体都由一条在对应目录节点中的位置记录来表示。上级域的目录节点拥有指向底层子域目录节点的指针。To track the location of entities, each entity within the current domain is represented by a location record in the corresponding directory node. The directory node of the parent domain has a pointer to the directory node of the underlying subdomain.
在这种分层命名方案中,名称查找与定位操作在局部进行,即对实体的搜索是在一个以发出查找请求的用户为中心、逐步增大的环中进行的。每当查找请求被转发到更高一层的目录节点时,都会扩大搜索区域。在最差的情况下,搜索会连续进行,直至请求到达根节点为止。由于上级节点拥有其下的所有实体的位置记录,所以可以简单地沿着一条向下的指针路线把请求转发给初始叶节点。In this hierarchical naming scheme, name lookup and location operations are carried out locally, that is, the search for entities is carried out in a gradually increasing ring centered on the user who issued the lookup request. Whenever a lookup request is forwarded to a higher-level directory node, the search area is enlarged. In the worst case, the search continues until the request reaches the root node. Since the superior node has the location records of all entities below it, the request can simply be forwarded along a downward pointer route to the initial leaf node.
现有公共信息模型(Common Information Model,简称“CIM”)资源包含以下特点:The existing Common Information Model (Common Information Model, referred to as "CIM") resources include the following characteristics:
1、CIM建模对象包括现实世界的实体(如变电所、变压器、空调、RTU等)、信息世界的软件实体(如各种系统、服务等),也包括虚拟的信息点(如数据采集点、控制点等),这些CIM实体都具有一定业务含义;1. CIM modeling objects include entities in the real world (such as substations, transformers, air conditioners, RTUs, etc.), software entities in the information world (such as various systems, services, etc.), and virtual information points (such as data acquisition point, control point, etc.), these CIM entities have certain business meanings;
2、CIM模型是一种分层结构的“树”,如果考虑到应用系统的安全控制策略因素,CIM模型可以表示为一种有向无环图。2. The CIM model is a "tree" with a hierarchical structure. If the security control strategy factors of the application system are considered, the CIM model can be expressed as a directed acyclic graph.
从而CIM资源命名服务除了需要解决上述一般命名系统共有的两类问题外,还面临着如何高效地查找CIM资源的问题。这是因为应用系统访问的数据不仅是CIM实体对象,还需要引用对象的属性、量测以及与该对象相关的辅助对象资源及相关属性等等虚拟对象。这需要把这些附属资源描述解析为与该对象相关的引用。同时CIM数据库的模式可替换性(模式驱动架构的特点),导致实现这种相对通用的名称命名及解析将非常困难。Therefore, the CIM resource naming service is faced with the problem of how to efficiently search for CIM resources in addition to solving the two types of problems common to the above-mentioned general naming systems. This is because the data accessed by the application system is not only the CIM entity object, but also virtual objects such as the reference object's attributes, measurements, auxiliary object resources and related attributes related to the object. This requires resolving these attached resource descriptions into references related to the object. At the same time, the schema replaceability of the CIM database (a characteristic of the schema-driven architecture) makes it very difficult to achieve such a relatively common name naming and resolution.
发明内容 Contents of the invention
本发明主要解决的技术问题是提供一种分布式系统中CIM资源命名及解析方法,使得可以涵盖系统中所有的CIM实体资源和虚拟资源,在分布式环境下快速地将资源名称解析为名称所指向的实体,实现高效地查找分布式环境下资源实体。The technical problem mainly solved by the present invention is to provide a method for naming and resolving CIM resources in a distributed system, so that all CIM entity resources and virtual resources in the system can be covered, and resource names can be quickly resolved into the name of the name in a distributed environment. The entity pointed to can efficiently search for resource entities in a distributed environment.
为了解决上述技术问题,本发明提供了一种分布式系统中CIM资源命名及解析方法,系统中CIM资源存储在各分布式服务器中,系统中CIM资源包含实体资源和虚拟资源,虚拟资源从属于实体资源;将实体资源分为部署对象和普通资源对象,系统中的普通资源对象从属于部署对象,各普通资源对象与普通资源对象之间、各部署对象与部署对象之间分别包含从属关系,普通资源对象和/或部署对象与其所属的上级部署对象存储在同一服务器中,该方法包含以下步骤:In order to solve the above technical problems, the present invention provides a method for naming and analyzing CIM resources in a distributed system. The CIM resources in the system are stored in each distributed server. The CIM resources in the system include physical resources and virtual resources, and the virtual resources belong to Entity resources: Entity resources are divided into deployment objects and ordinary resource objects. The ordinary resource objects in the system are subordinate to the deployment objects. There are affiliation relationships between each ordinary resource object and each ordinary resource object, and between each deployment object. Common resource objects and/or deployment objects are stored in the same server as their superior deployment objects, and the method includes the following steps:
为每个CIM资源分配一资源引用名称,该资源引用名称包括资源名称标识、和可缺省的资源命名表达式,该资源名称标识用于描述实体资源,该资源命名表达式用于描述虚拟资源;部署对象的资源名称标识至少包含本部署对象的名称,普通资源对象的资源名称标识至少包含该普通资源对象的名称和其所属的至少一个上级部署对象的名称;虚拟资源的资源引用名称由其所属实体资源的资源名称标识、和该虚拟资源的资源命名表达式构成;Assign a resource reference name to each CIM resource. The resource reference name includes a resource name identifier and a default resource naming expression. The resource name identifier is used to describe a physical resource, and the resource naming expression is used to describe a virtual resource. ;The resource name identifier of the deployment object at least includes the name of the deployment object, and the resource name identifier of the common resource object at least includes the name of the common resource object and the name of at least one superior deployment object to which it belongs; the resource reference name of the virtual resource is determined by its The resource name identifier of the entity resource to which it belongs and the resource naming expression of the virtual resource;
系统中的命名解析服务分布于各分布式服务器中,在收到来自客户端的资源访问请求时,根据该请求中资源引用名称中的资源名称标识,确定该资源所属的部署对象,定位该部署对象对应的本地命名解析服务器,由该本地命名解析服务器对该资源引用名称进行解析,将解析结果返回给该客户端。The naming resolution service in the system is distributed in each distributed server. When receiving a resource access request from a client, according to the resource name identifier in the resource reference name in the request, determine the deployment object to which the resource belongs, and locate the deployment object The corresponding local naming resolution server resolves the resource reference name and returns the resolution result to the client.
作为进一步改进,该资源命名表达式至少包含以下之一:As a further improvement, the resource naming expression includes at least one of the following:
实体资源的静态属性的表达式;和/或An expression of a static property of an entity resource; and/or
实体资源的动态属性的表达式;和/或An expression of a dynamic property of an entity resource; and/or
资源或资源属性查找表达式;和/或A resource or resource property lookup expression; and/or
目录服务查询表达式。Directory service query expression.
作为进一步改进,在接收来自客户端的资源访问请求,根据该请求中资源引用名称中的资源名称标识,确定该资源所属的部署对象,定位该部署对象对应的本地命名解析服务器的步骤由根命名解析服务器执行;该步骤包含以下子步骤:As a further improvement, after receiving a resource access request from the client, according to the resource name identifier in the resource reference name in the request, determine the deployment object to which the resource belongs, and locate the local name resolution server corresponding to the deployment object. Root name resolution executed by the server; this step contains the following substeps:
根命名解析服务器中预先保存部署对象结构树;Pre-save the deployment object structure tree in the root naming resolution server;
根命名解析服务器在收到资源访问请求时,提取该请求中的资源引用名称,对该资源引用名称进行分解得到资源名称标识,根据该资源名称标识中的部署对象名称查找该部署对象结构树,确定该部署对象对应的本地命名解析服务器。When the root naming resolution server receives a resource access request, it extracts the resource reference name in the request, decomposes the resource reference name to obtain the resource name identifier, and searches the deployment object structure tree according to the deployment object name in the resource name identifier, Determine the local naming resolution server corresponding to the deployment object.
作为进一步改进,该部署对象结构树中包含系统中各部署对象的从属层次结构、和各部署对象对应的本地命名解析服务器信息。As a further improvement, the deployment object structure tree includes the subordinate hierarchy of each deployment object in the system, and the local naming resolution server information corresponding to each deployment object.
作为进一步改进,该部署对象结构树中包含系统中各部署对象的从属层次结构、和各部署对象对应的资源ID;As a further improvement, the deployment object structure tree includes the subordinate hierarchy of each deployment object in the system, and the resource ID corresponding to each deployment object;
根据该资源名称标识中的部署对象名称查找该部署对象结构树,确定该部署对象对应的本地命名解析服务器的步骤中,通过资源定位服务器对该资源ID所对应的本地命名解析服务器进行定位。In the step of searching the deployment object structure tree according to the deployment object name in the resource name identifier, and determining the local naming resolution server corresponding to the deployment object, the resource location server locates the local naming resolution server corresponding to the resource ID.
作为进一步改进,如果根命名解析服务器对该资源引用名称进行分解,只得到资源名称标识,未包含资源命名表达式;且该资源名称标识中只包含部署对象的名称,则根命名解析服务器根据部署对象名称查找该部署对象结构树后,直接将该部署对象对应的资源ID返回给该客户端。As a further improvement, if the root naming resolution server decomposes the resource reference name, only the resource name identifier is obtained without the resource naming expression; and the resource name identifier only contains the name of the deployment object, then the root naming resolution server will After the object name searches the deployment object structure tree, the resource ID corresponding to the deployment object is directly returned to the client.
作为进一步改进,本地命名解析服务器对该资源引用名称进行解析,将解析结果返回给该客户端的步骤中,包含以下子步骤:As a further improvement, the local naming resolution server resolves the resource reference name, and the step of returning the resolution result to the client includes the following substeps:
本地命名解析服务器对该资源引用名称进行解析,如果该资源引用名称中只包含资源名称标识,则该本地命名解析服务器根据资源名称标识中的部署对象名称和/或普通资源对象名称得到对应的资源ID,将该资源ID返回给该客户端,该客户端根据该资源ID访问该实体资源。The local naming resolution server resolves the resource reference name. If the resource reference name only contains the resource name identifier, the local naming resolution server obtains the corresponding resource according to the deployment object name and/or common resource object name in the resource name identifier ID, return the resource ID to the client, and the client accesses the entity resource according to the resource ID.
作为进一步改进,本地命名解析服务器对该资源引用名称进行解析,将解析结果返回给该客户端的步骤中,包含以下子步骤:As a further improvement, the local naming resolution server resolves the resource reference name, and the step of returning the resolution result to the client includes the following substeps:
本地命名解析服务器对该资源引用名称进行解析,如果该资源引用名称中包含资源名称标识和资源命名表达式,则根据预设的规则查找该资源命名表达式,获取对应的虚拟资源内容,反馈给该客户端。The local naming resolution server analyzes the resource reference name. If the resource reference name contains the resource name identifier and resource naming expression, it searches for the resource naming expression according to preset rules, obtains the corresponding virtual resource content, and feeds back to the client.
作为进一步改进,根命名解析服务器通过资源定位服务器对该资源ID所对应的本地命名解析服务器进行定位的步骤之后,还包含以下步骤:As a further improvement, after the root naming resolution server locates the local naming resolution server corresponding to the resource ID through the resource location server, the following steps are further included:
保存该资源ID与本地命名解析服务器的对应关系,在需要确定部署对象对应的本地命名解析服务器时,优先从本地保存的对应关系中进行查找。The corresponding relationship between the resource ID and the local naming resolution server is saved, and when the local naming resolution server corresponding to the deployment object needs to be determined, the corresponding relationship stored locally is preferentially searched.
作为进一步改进,在该资源访问请求中包含至少两个资源引用名称时,对各资源引用名称中的资源名称标识进行归并,对相同的资源名称标识,执行一次定位本地命名解析服务器的步骤,由该本地命名解析服务器分别对各资源名称标识相同的资源引用名称进行解析。As a further improvement, when the resource access request contains at least two resource reference names, merge the resource name identifiers in each resource reference name, and perform a step of locating the local naming resolution server once for the same resource name identifier, by The local naming resolution server respectively resolves resource reference names with the same resource name identifier.
本发明实施方式与现有技术相比,主要区别及其效果在于:为每个CIM资源分配一资源引用名称,该资源引用名称包括资源名称标识、和可缺省的资源命名表达式,该资源名称标识用于描述实体资源,该资源命名表达式用于描述虚拟资源;部署对象的资源名称标识至少包含本部署对象的名称,普通资源对象的资源名称标识至少包含该普通资源对象的名称和其所属的至少一个上级部署对象的名称;虚拟资源的资源引用名称由其所属实体资源的资源名称标识、和该虚拟资源的资源命名表达式构成;系统中的命名解析服务分布于各分布式服务器中,在收到来自客户端的资源访问请求时,根据该请求中资源引用名称中的资源名称标识,确定该资源所属的部署对象,定位该部署对象对应的本地命名解析服务器,由该本地命名解析服务器对该资源引用名称进行解析,将解析结果返回给该客户端。从而确保资源引用名称可以涵盖系统中所有的CIM实体资源和虚拟资源,并且在分布式环境下能够快速地将资源名称解析为名称所指向的实体,实现高效地查找分布式环境下资源实体。Compared with the prior art, the embodiment of the present invention has the main difference and its effect in that: a resource reference name is assigned to each CIM resource, and the resource reference name includes a resource name identifier and a default resource naming expression. The name identifier is used to describe the entity resource, and the resource naming expression is used to describe the virtual resource; the resource name identifier of the deployment object at least includes the name of the deployment object, and the resource name identifier of the common resource object includes at least the name of the common resource object and other The name of at least one superior deployment object to which it belongs; the resource reference name of a virtual resource is composed of the resource name identifier of the entity resource to which it belongs and the resource naming expression of the virtual resource; the naming resolution service in the system is distributed in each distributed server , when receiving a resource access request from the client, determine the deployment object to which the resource belongs according to the resource name identifier in the resource reference name in the request, locate the local naming resolution server corresponding to the deployment object, and the local naming resolution server Parse the resource reference name, and return the parsing result to the client. In this way, it is ensured that the resource reference name can cover all CIM entity resources and virtual resources in the system, and the resource name can be quickly resolved into the entity pointed to by the name in a distributed environment, so as to efficiently search for resource entities in a distributed environment.
附图说明 Description of drawings
图1是本发明第一实施方式中XXXX供电局的CIM资源结构示意图;Fig. 1 is a schematic diagram of the CIM resource structure of XXXX power supply bureau in the first embodiment of the present invention;
图2是本发明第一实施方式的CIM资源命名解析方法流程图。FIG. 2 is a flow chart of the CIM resource name resolution method according to the first embodiment of the present invention.
具体实施方式 detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the following will further describe the implementation of the present invention in detail in conjunction with the accompanying drawings.
本发明第一实施方式涉及一种分布式系统中CIM资源命名及解析方法。本实施方式中所描述的“资源”包括现实世界的实体资源(如变电所、变压器、空调、RTU等)、信息世界的软件实体资源(如各种系统、服务等),也包括虚拟资源(如对象属性、量测、辅助对象资源及属性、以及关联资源的查找等),这些资源及相互关系基于CIM建模形成,是信息系统运行所必须的信息模型。The first embodiment of the present invention relates to a method for naming and analyzing CIM resources in a distributed system. The "resources" described in this embodiment include physical resources in the real world (such as substations, transformers, air conditioners, RTUs, etc.), software physical resources in the information world (such as various systems, services, etc.), and virtual resources. (such as object attributes, measurements, auxiliary object resources and attributes, and search for associated resources, etc.), these resources and their interrelationships are formed based on CIM modeling, and are information models necessary for the operation of information systems.
具体地说,系统中CIM资源包含实体资源和虚拟资源,虚拟资源从属于实体资源,包括实体资源对象的对象属性、量测、辅助对象资源及属性、以及关联资源的查找等。Specifically, CIM resources in the system include physical resources and virtual resources, and virtual resources are subordinate to physical resources, including object attributes, measurements, auxiliary object resources and attributes, and search for associated resources of physical resource objects.
CIM实体资源的分布是一种分层结构的“树”,各对象资源之间存在从属关系,主对象资源下包含多个从属对象资源,从属对象资源其下可以进一步包含下一级从属对象资源。如对于某电力系统,供电局本身即一对象资源,其下还可以包含变电站、监控中心、电力局变电站网络结构图、系统登陆图等对象资源,变电站之下还可以包含主接线图、网络结构图等对象资源。本实施方式中将这些对象资源分为部署对象和普通资源对象,其中部署对象一般为主对象资源或比较主要的从属对象资源,如变电站、监控中心等;其他的为普通资源对象,如电力局变电站网络结构图、主接线图等等,如图1所示。在实际应用中,可以根据需要进行划分。系统中的普通资源对象从属于部署对象,各普通资源对象与普通资源对象之间、各部署对象与部署对象之间可以包含从属关系,普通资源对象、下级部署对象与其所属的上级部署对象存储在同一服务器中;属于不同部署对象的资源可以存储在不同的分布式服务器中。The distribution of CIM entity resources is a "tree" with a hierarchical structure. There is a subordinate relationship between each object resource. The main object resource contains multiple subordinate object resources, and the subordinate object resources can further contain the next level subordinate object resources. . For example, for a power system, the power supply bureau itself is an object resource, and it can also include object resources such as substations, monitoring centers, power bureau substation network structure diagrams, and system login diagrams. Substations can also include main wiring diagrams and network structures. Object resources such as graphs. In this embodiment, these object resources are divided into deployment objects and ordinary resource objects, where the deployment objects are generally the main object resources or the relatively main subordinate object resources, such as substations, monitoring centers, etc.; others are ordinary resource objects, such as power bureaus Substation network structure diagram, main wiring diagram, etc., as shown in Figure 1. In practical applications, it can be divided according to needs. Ordinary resource objects in the system are subordinate to deployment objects. There can be affiliation between each ordinary resource object and between each deployment object and deployment object. Ordinary resource objects, lower-level deployment objects and their upper-level deployment objects are stored in In the same server; resources belonging to different deployment objects can be stored in different distributed servers.
考虑到CIM资源的特点及基于CIM应用的分布式需求,本实施方式中,CIM资源命名(资源引用名称)主要包括两部分:资源名称标识Resource-Identifier、和资源命名表达式Naming-Expression,采用以下语法形式:Considering the characteristics of CIM resources and the distributed requirements based on CIM applications, in this embodiment, the CIM resource naming (resource reference name) mainly includes two parts: the resource name identifier Resource-Identifier, and the resource naming expression Naming-Expression, using The following syntax forms:
<Resource-Identifier>[.Naming-Expression]<Resource-Identifier>[.Naming-Expression]
其中,“[]”表示的资源命名表达式根据具体的应用环境可省略;“<......>”中的资源名称标识是实际的命名部分,不可省略。Among them, the resource naming expression represented by "[]" can be omitted according to the specific application environment; the resource name identifier in "<...>" is the actual naming part and cannot be omitted.
资源名称标识用于描述实体资源,资源命名表达式用于描述虚拟资源;从而实体资源的资源引用名称只需包含资源名称标识部分,虚拟资源的资源引用名称必须包含资源名称标识和资源命名表达式两部分。The resource name identifier is used to describe the entity resource, and the resource naming expression is used to describe the virtual resource; thus, the resource reference name of the entity resource only needs to include the resource name identifier part, and the resource reference name of the virtual resource must include the resource name identifier and the resource naming expression two parts.
其中,部署对象的资源名称标识至少包含本部署对象的名称,可以省略其上级部署对象的名称,采用以下语法形式:Among them, the resource name identifier of the deployment object includes at least the name of the deployment object, and the name of its superior deployment object can be omitted, and the following syntax is used:
[.上级部署对象[...]].本部署对象[.Superior Deployment Object[...]].This Deployment Object
普通资源对象的资源名称标识至少包含该普通资源对象的名称和其所属的至少一个上级部署对象的名称,可以省略该普通资源对象所属的上级普通资源对象名称,以及其所属部署对象的上/下级部署对象名称,采用以下语法形式:The resource name identifier of an ordinary resource object includes at least the name of the ordinary resource object and the name of at least one upper-level deployment object to which it belongs, and the name of the upper-level ordinary resource object to which the ordinary resource object belongs and the upper/lower level of the deployment object to which it belongs can be omitted Deployment object name, in the following syntax form:
部署对象[.下级部署对象[…]].[.上级实体资源对象[…]].本实体资源对象Deployment object[.lower-level deployment object[…]].[.superior entity resource object[…]].This entity resource object
这种命名方式是以部署对象作为结构层次来组织实体的命名,并对部署对象下方的其它实体资源作“扁平化”处理,简化了CIM实体的引用,使用起来更便捷和人性化。This naming method uses the deployment object as a structural level to organize the naming of entities, and "flatten" the other entity resources below the deployment object, which simplifies the reference of CIM entities and is more convenient and user-friendly to use.
在如图1的CIM资源示意图中,“XXXX供电局”、“变电站1”、“变电站2”为系统部署对象,符合上述命名规则的资源引用名称的例子如下:In the CIM resource schematic diagram shown in Figure 1, "XXXX Power Supply Bureau", "Substation 1", and "Substation 2" are system deployment objects. Examples of resource reference names that conform to the above naming rules are as follows:
“变电站2”>“110kV一段”>“504单元”>“504保护装置”:"Substation 2" > "110kV Section 1" > "Unit 504" > "Protection Device 504":
变电站2.504保护装置Substation 2.504 protection device
本实施方式中引入“资源命名表达式(Naming Expression)”是为了解决与实体资源对象的对象属性、量测、辅助对象资源及属性、以及关联资源的查找等诸多复杂的资源命名问题。The introduction of "resource naming expression (Naming Expression)" in this embodiment is to solve many complex resource naming issues such as object attributes, measurements, auxiliary object resources and attributes, and search for associated resources of entity resource objects.
资源命名表达式的语法如下:函数名(参数列表).[属性]The syntax for a resource naming expression is as follows: function-name(parameter-list).[attribute]
当前支持以下几种类型的命名表达式:The following types of named expressions are currently supported:
1)对于实体资源对象的静态属性,其表达式为:A(属性名),如“XXXX供电局.变电站2.504保护装置.A(name)”表示引用“504保护装置的name属性”;1) For the static attribute of the entity resource object, its expression is: A (attribute name), such as "XXXX power supply bureau.Substation 2.504 protection device.A(name)" means referencing "name attribute of 504 protection device";
2)对于实体资源对象的动态属性(即量测),由于在CIM模型中,量测本身是一种对象资源,但它又是上级实体资源的一种附属属性,因此其命名表达式为:M(量测名).[值|品质|属性],如“变电站2.工作站1.M(CPU使用率).value”,表示引用“.工作站1的CPU使用率的模拟量测值”。2) For the dynamic attribute of the entity resource object (i.e. measurement), since in the CIM model, the measurement itself is an object resource, but it is also a subsidiary attribute of the superior entity resource, so its naming expression is: M(measurement name).[value|quality|property], such as "substation 2.workstation 1.M(CPU usage).value", means ".the simulated measurement value of the CPU usage of workstation 1".
3)支持命名资源查找表达式,这些资源包括:3) Support named resource lookup expressions, these resources include:
——对象资源其表达式为:查找模板函数名(object),其中object为固定参数名,如“变电站2.MEAS(object)”,即查找变电站2下的所有量测对象;“变电站2.IED(object)”表示查找变电站2下的所有IED对象。——The expression of the object resource is: search template function name (object), where object is a fixed parameter name, such as "substation 2.MEAS(object)", that is, to search for all measurement objects under substation 2; "substation 2. IED(object)" means to find all IED objects under substation 2.
——对象资源属性其表达式为:查找模板函数名(object).属性,如“变电站2.MEAS(object).value”,表示引用变电站2下的所有量测对象的值属性。——The expression of object resource attribute is: search template function name (object). attribute, such as "substation 2.MEAS(object).value", which refers to the value attribute of all measurement objects under substation 2.
4)支持目录服务查询表达式4) Support directory service query expressions
目录服务查询表达式包括对于目录中一类资源的查询,以及对于满足相同条件的资源的查询等。其表达式为:DIR(主题,断言,对象),其中“DIR”为目录服务的函数名关键字,目录服务查询的资源用“主题,断言,对象”三元组来描述。这种三元组有“类,属性,值”、“属性URI,关系表达式,值”等,如“变电站2.DIR(AnalogLimitSet,type,ROC)”,表示查找所有为设置为变化率告警事件的量测对象。Directory service query expressions include queries for a class of resources in the directory, and queries for resources that meet the same conditions. Its expression is: DIR (subject, assertion, object), wherein "DIR" is the keyword of the function name of the directory service, and the resource queried by the directory service is described by the triplet of "subject, assertion, object". Such triples include "class, attribute, value", "attribute URI, relational expression, value", etc., such as "substation 2.DIR(AnalogLimitSet, type, ROC)", which means to find all the alarms set as the rate of change The measurement object for the event.
“资源命名表达式”的应用,基本上实现了CIM资源命名服务在面临多样性资源名称解析时的通用性目标。从而确保本实施方式中的资源引用名称可以涵盖系统中所有的CIM实体资源和虚拟资源。The application of the "resource naming expression" basically realizes the universality goal of the CIM resource naming service in the face of diverse resource name resolution. Therefore, it is ensured that the resource reference name in this embodiment can cover all CIM entity resources and virtual resources in the system.
具体的命名解析流程如图2所示,在分布式部署环境中,可能存在多个命名解析服务,分布在不同的命名解析服务器中,系统中包含一个公开对外的根命名解析服务器,客户端中保存该根命名解析服务器的地址。The specific naming resolution process is shown in Figure 2. In a distributed deployment environment, there may be multiple naming resolution services distributed in different naming resolution servers. The system includes a public root naming resolution server. Save the address of the root naming resolution server.
步骤201中,根命名解析服务器中预先保存部署对象结构树。部署对象结构树中包含系统中各部署对象的从属层次结构、和各部署对象对应的本地命名解析服务器信息。In step 201, the root naming resolution server pre-stores the deployment object structure tree. The deployment object structure tree includes the subordinate hierarchy structure of each deployment object in the system, and the local naming resolution server information corresponding to each deployment object.
步骤202中,客户端向根命名解析服务器发送资源访问请求,在请求中包含资源引用名称。In step 202, the client sends a resource access request to the root naming resolution server, and the resource reference name is included in the request.
步骤203中,根命名解析服务器在收到资源访问请求时,提取该请求中的资源引用名称,对该资源引用名称进行分解得到资源名称标识,根据该资源名称标识中的部署对象名称查找部署对象结构树,确定该部署对象对应的本地命名解析服务器。In step 203, when the root naming resolution server receives the resource access request, it extracts the resource reference name in the request, decomposes the resource reference name to obtain the resource name identifier, and searches for the deployment object according to the deployment object name in the resource name identifier structure tree to determine the local naming resolution server corresponding to the deployment object.
步骤204中,由本地命名解析服务器对该资源引用名称进行解析。In step 204, the resource reference name is resolved by the local naming resolution server.
如果该资源引用名称中只包含资源名称标识,则该本地命名解析服务器根据资源名称标识中的部署对象名称和/或普通资源对象名称得到对应的资源ID,将所得到资源ID返回给客户端,客户端根据资源ID访问该实体资源。(本地命名解析服务器中预先保存本服务器辖下部署对象及普通资源对象的资源ID)。If the resource reference name only contains the resource name identifier, the local naming resolution server obtains the corresponding resource ID according to the deployment object name and/or common resource object name in the resource name identifier, and returns the obtained resource ID to the client, The client accesses the entity resource according to the resource ID. (The resource IDs of the deployment objects and common resource objects under the server are pre-stored in the local naming resolution server).
如果该资源引用名称中包含资源名称标识和资源命名表达式,则根据预设的规则查找该资源命名表达式,获取对应的虚拟资源内容,反馈给所述客户端。If the resource reference name includes a resource name identifier and a resource naming expression, the resource naming expression is searched according to preset rules, corresponding virtual resource content is acquired, and fed back to the client.
从而确保在分布式环境下能够快速地将资源名称解析为名称所指向的实体,实现高效地查找分布式环境下资源实体。In this way, it is ensured that the resource name can be quickly resolved into the entity pointed to by the name in the distributed environment, and the resource entity in the distributed environment can be efficiently searched.
上述客户端根据资源ID访问该实体资源的方式可以参考专利201010295955.6《一种分布式环境中资源定位方法》。For the manner in which the above-mentioned client accesses the entity resource according to the resource ID, reference may be made to patent 201010295955.6 "A Resource Locating Method in a Distributed Environment".
需要说明的是,本实施方式中,在客户端的资源访问请求中包含多个资源引用名称时,根命名解析服务器对各资源引用名称中的资源名称标识进行归并,对相同的资源名称标识,执行一次定位本地命名解析服务器的步骤,由该本地命名解析服务器分别对各资源名称标识相同的资源引用名称进行解析。从而简化了流程,提高了整体解析速度。It should be noted that, in this embodiment, when the resource access request of the client includes multiple resource reference names, the root naming resolution server merges the resource name identifiers in each resource reference name, and executes A step of locating a local naming resolution server, which respectively resolves resource reference names with the same resource name identifier. This simplifies the process and improves the overall resolution speed.
本发明第二实施方式同样涉及一种分布式系统中CIM资源命名及解析方法,与第一实施方式大致相同,其区别在于,第一实施方式中,部署对象结构树中包含系统中各部署对象的从属层次结构、和各部署对象对应的本地命名解析服务器信息,根据该部署对象结构数可以直接定位部署对象对应的本地命名解析服务器;本实施方式中,部署对象结构树中包含系统中各部署对象的从属层次结构、和各部署对象对应的资源ID,根命名解析服务器通过资源定位服务器对该资源ID所对应的本地命名解析服务器进行定位。并且,根命名解析服务器保存该资源ID与本地命名解析服务器的对应关系,在下一次需要确定部署对象对应的本地命名解析服务器时,优先从本地保存的对应关系中进行查找。The second embodiment of the present invention also relates to a method for naming and parsing CIM resources in a distributed system, which is roughly the same as the first embodiment, the difference being that in the first embodiment, the deployment object structure tree includes each deployment object in the system The subordinate hierarchical structure of the deployment object and the local naming resolution server information corresponding to each deployment object can directly locate the local naming resolution server corresponding to the deployment object according to the deployment object structure number; in this embodiment, the deployment object structure tree includes the The subordinate hierarchical structure of the object, and the resource ID corresponding to each deployment object, the root naming resolution server locates the local naming resolution server corresponding to the resource ID through the resource location server. Moreover, the root naming resolution server saves the correspondence between the resource ID and the local naming resolution server, and when it is necessary to determine the local naming resolution server corresponding to the deployment object next time, it will preferentially search from the locally saved correspondence.
在本实施方式中,如果客户端请求解析的资源引用名称为部署对象的名称,即根命名解析服务器对该资源引用名称进行分解,只得到资源名称标识,未包含资源命名表达式;且该资源名称标识中只包含部署对象的名称,则根命名解析服务器根据部署对象名称查找部署对象结构树后,直接将该部署对象对应的资源ID返回给客户端。In this embodiment, if the resource reference name requested by the client to be resolved is the name of the deployment object, that is, the root naming resolution server decomposes the resource reference name, and only obtains the resource name identifier without the resource naming expression; and the resource If the name identifier only contains the name of the deployment object, the root naming resolution server searches the deployment object structure tree according to the name of the deployment object, and directly returns the resource ID corresponding to the deployment object to the client.
虽然通过参照本发明的某些优选实施方式,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Although the present invention has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the present invention. The spirit and scope of the invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110458553.8A CN102571427B (en) | 2010-12-31 | 2011-12-31 | The name of CIM resource and analytic method in a kind of distributed system |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106193264 | 2010-12-31 | ||
CN201010619326.4 | 2010-12-31 | ||
CN201010619326 | 2010-12-31 | ||
CN201110458553.8A CN102571427B (en) | 2010-12-31 | 2011-12-31 | The name of CIM resource and analytic method in a kind of distributed system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102571427A CN102571427A (en) | 2012-07-11 |
CN102571427B true CN102571427B (en) | 2016-09-28 |
Family
ID=46415953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110458553.8A Expired - Fee Related CN102571427B (en) | 2010-12-31 | 2011-12-31 | The name of CIM resource and analytic method in a kind of distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102571427B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015112614A1 (en) | 2014-01-21 | 2015-07-30 | Oracle International Corporation | System and method for supporting multi-tenancy in an application server, cloud, or other environment |
CN103840858B (en) * | 2014-03-19 | 2016-03-23 | 中国联合网络通信集团有限公司 | Data Acquisition Method and Common Information Model CIM Server |
US9906601B2 (en) * | 2014-07-14 | 2018-02-27 | Oracle International Corporation | System and method for supporting namespaces in a multitenant application server environment |
CN108512854B (en) * | 2018-04-09 | 2021-09-07 | 平安科技(深圳)有限公司 | System information safety monitoring method and device, computer equipment and storage medium |
CN108614759A (en) * | 2018-04-28 | 2018-10-02 | 云宏信息科技股份有限公司 | The method and device that physical machine hardware is monitored |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710735A (en) * | 2009-12-11 | 2010-05-19 | 江西省电力科学研究院 | Sharing modeling method of intelligent substation and primary station |
CN101930481A (en) * | 2009-06-22 | 2010-12-29 | 华东电网有限公司 | Method and system for generating a CIM model describing changes in a power grid over a specified time period |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008141212A2 (en) * | 2007-05-10 | 2008-11-20 | Broadcom Corporation | Method and system for modeling options for opaque management data for a user and/or an owner |
-
2011
- 2011-12-31 CN CN201110458553.8A patent/CN102571427B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101930481A (en) * | 2009-06-22 | 2010-12-29 | 华东电网有限公司 | Method and system for generating a CIM model describing changes in a power grid over a specified time period |
CN101710735A (en) * | 2009-12-11 | 2010-05-19 | 江西省电力科学研究院 | Sharing modeling method of intelligent substation and primary station |
Non-Patent Citations (1)
Title |
---|
配网管理系统中CIM XML/RDF 格式文件解析研究;徐祗威;《电脑知识与技术》;20100630;第6卷(第16期);第4349-4351页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102682054A (en) | 2012-09-19 |
CN102571427A (en) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102254022B (en) | Method for sharing metadata of information resources of various data types | |
CN111935328B (en) | Cross-region and cross-industry industrial Internet entity identification method | |
US10558656B2 (en) | Optimizing write operations in object schema-based application programming interfaces (APIS) | |
CN100573528C (en) | Digital museum gridding and building method thereof | |
US10116725B2 (en) | Processing data retrieval requests in a graph projection of an application programming interfaces (API) | |
CN107315776A (en) | A kind of data management system based on cloud computing | |
CN102571427B (en) | The name of CIM resource and analytic method in a kind of distributed system | |
US20040078368A1 (en) | Indexing virtual attributes in a directory server system | |
CN106126646B (en) | Method and device for establishing an inverted index of IoT smart devices | |
US20080281781A1 (en) | Searching document sets with differing metadata schemata | |
US20150019547A1 (en) | Unified user profiles | |
US9317514B2 (en) | Synthesized identifiers for system information database | |
CN109241292A (en) | A method of name server architectural knowledge map is established based on the passive data of master | |
CN106407302A (en) | Method for supporting function of calling specific functions of middleware database through simple SQL | |
CN104091228A (en) | Systems for resource management, resource registering, resource inquiry and resource semantic corpus management of internet of things | |
CN115617776A (en) | Data management system and method | |
CN110888878A (en) | Service-oriented main data management method and system | |
CN107491463A (en) | The optimization method and system of data query | |
CN106657282A (en) | Integration method and device for equipment operation state information of convertor station | |
CN102682054B (en) | A kind of CIM resource name and analytic method | |
CN105302921B (en) | Map class date storage method and system | |
Zhang et al. | Semantic web and geospatial unique features based geospatial data integration | |
CN107025300B (en) | Data query method and device | |
CN117221276B (en) | A network architecture and server layer structure of geospatial grid domain name | |
CN106686050B (en) | Domain name based classification information issuing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder |
Address after: 201203 403d, building 5, No. 3000, Longdong Avenue, Pudong New Area, Shanghai Patentee after: Shanghai Kelu Software Co.,Ltd. Address before: 201203 Shanghai city Pudong New Area road 887 Lane 82 Zuchongzhi Building No. two North Patentee before: Shanghai Kelu Software Co.,Ltd. |
|
CP02 | Change in the address of a patent holder | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Yu Gaoyu Inventor after: Lin Yuan Inventor after: Liang Jun Inventor after: Zhang Xiaohua Inventor after: Yang Yunzhao Inventor before: Yu Gaoyu Inventor before: Liang Jun Inventor before: Zhang Xiaohua Inventor before: Yang Yunzhao |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231031 Address after: 201203 north, 2nd floor, No.82, Lane 887, Zuchongzhi Road, Pudong New Area, Shanghai Patentee after: Shanghai Kelu Software Co.,Ltd. Patentee after: Shanghai Left Bank Investment Management Co.,Ltd. Address before: 201203 403D 5, 3000 Longdong Avenue, Pudong New Area, Shanghai. Patentee before: Shanghai Kelu Software Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160928 |