STATE SYNCHRONIZATION APPARATUSES AND METHODS
First Claim
1. A method for state synchronization, performed by a first electronic apparatus, comprising:
- acquiring a first service state version identification (ID) from a local cache of the first electronic apparatus;
receiving a second service state version ID from a second electronic apparatus;
determining whether the first service state version ID is older than the second service state version ID; and
acquiring a current service state value and a third service state version ID corresponding to the current service state value by querying a service resident on a third electronic apparatus when the first service state version ID is older than the second service state version ID,wherein the first, second and third electronic apparatuses are organized in an event casting tree, the third electronic apparatus is a root node of the event casting tree, and the first and second electronic apparatuses are leaf nodes of the event casting tree.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for state synchronization, performed by a first electronic apparatus, comprises the following steps. A first service state version identification (ID) is acquired from a local cache of the first electronic apparatus. A second service state version ID is received from a second electronic apparatus. It is determined whether the first service state version ID is older than the second service state version ID. If so, a current service state value and a third service state version ID corresponding to the current service state value are acquired by querying a service resident on a third electronic apparatus. The first, second and third electronic apparatuses are organized in an event casting tree. The third electronic apparatus is a root node of the event casting tree, and the first and second electronic apparatuses are leaf nodes of the event casting tree.
29 Citations
18 Claims
-
1. A method for state synchronization, performed by a first electronic apparatus, comprising:
-
acquiring a first service state version identification (ID) from a local cache of the first electronic apparatus; receiving a second service state version ID from a second electronic apparatus; determining whether the first service state version ID is older than the second service state version ID; and acquiring a current service state value and a third service state version ID corresponding to the current service state value by querying a service resident on a third electronic apparatus when the first service state version ID is older than the second service state version ID, wherein the first, second and third electronic apparatuses are organized in an event casting tree, the third electronic apparatus is a root node of the event casting tree, and the first and second electronic apparatuses are leaf nodes of the event casting tree. - View Dependent Claims (2, 3)
-
-
4. A method for state synchronization, performed by a first electronic apparatus, comprising:
-
receiving an upward check request from a second electronic apparatus, the upward check request comprising a first service state version identification (ID); acquiring a second service state version ID stored in a local cache of the first electronic apparatus; and selectively activating an upward check procedure and a downward check procedure according to a comparison result between the first service state version ID and the second service state version ID, wherein the first and second electronic apparatuses are organized in an event casting tree, the first electronic apparatus is a parent node of the second electronic apparatus, the upward check procedure transmits the upward check request to an electronic device causing inconsistency between the first and second service state version IDs, and the downward update procedure downwardly notifies all nodes directly or indirectly connecting to the first electronic apparatus of information indicating storing a first service state value corresponding to the first service state version ID. - View Dependent Claims (5, 6)
-
-
7. A method for state synchronization, performed by a first electronic apparatus, comprising:
-
receiving a downward update request from a second electronic apparatus, the downward update request comprising a first service state version identification (ID) and a service state value corresponding to the first service state version ID; respectively replacing a second service state version ID and a second service state value in a local cache of the first electronic apparatus with the first service state version ID and the first service state value, wherein the first and second electronic apparatuses are organized in an event casting tree, and the first electronic apparatus is a child node of the second electronic apparatuses. - View Dependent Claims (8)
-
-
9. A system for state synchronization, comprising:
-
a first electronic apparatus comprising a service; a second electronic apparatus; and a third electronic apparatus, wherein the first, second and third electronic apparatuses are organized in an event casting tree, the first electronic apparatus represents a root node of the event casting tree, the second electronic apparatus represents a relay node of the event casting tree, the third electronic apparatus represents a leaf node of the event casting tree, the third electronic apparatus subscribes to a plurality of event notifications from the service, and the first electronic apparatus hierarchically transmits the event notifications in sequence to the third electronic apparatus via the second electronic apparatus. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17, 18)
-
Specification