Qt Remote Objects Registry
Qt远程对象注册表
The registry provides a simpler way to establish these connections. Every node that wants to be part of the registry's network connects to the registry. The registry is itself a specialized source object, and thus is hosted by a node. Connecting to the registry is simply a matter of passing the registry's URL to the QRemoteObjectNode or QRemoteObjectHost constructor, or passing the URL to the setRegistryUrl method.
注册表提供了一种更简单的方法来建立这些连接。希望成为注册表网络一部分的每个节点都连接到注册表。注册表本身是一个专门的源对象,因此由节点托管。连接到注册表只需将注册表的URL传递给QRemoteObjectNode或QRemoteObject Host构造函数,或将URL传递给setRegistryUrl方法即可。
The registry is tightly integrated with QtRO. Whenever a Source is added or removed, the name/URL is updated in the registry automatically. So once your node is connected to the registry, it is not necessary to connect to any other nodes manually. If you request an object on the network and you aren't connected to the hosting node, the registry will know what URL to connect to and will initiate the connection. Once connected (and the list of available objects is passed along, including the desired Source), the initialization process for the requested Replica will start automatically.
该注册表与QtRO紧密集成。每当添加或删除源时,注册表中的名称/URL都会自动更新。因此,一旦节点连接到注册表,就不需要手动连接到任何其他节点。如果在网络上请求一个对象,但没有连接到宿主节点,注册表将知道要连接到哪个URL,并将启动连接。一旦连接(并且传递了可用对象的列表,包括所需的源),所请求副本的初始化过程将自动开始。