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;
acquiring a plurality of second service state version ID stored in a plurality of local caches of a plurality of second electronic apparatuses by querying the second electronic apparatuses;
determining whether each second service state version ID is older than the first service state version ID; and
transmitting a forward update request to at least one second electronic apparatus owning the older second service state version ID,enabling the second electronic apparatus owning the older second service state version ID to activate an upward check procedure to update the older second service state version ID,wherein the first and second service state version IDs are generated by 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.
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. Multiple second service state version IDs stored in local caches of second electronic apparatuses are acquired by querying the second electronic apparatuses. It is determined whether each second service state version ID is older than the first service state version ID. A forward update request is transmitted to at least one second electronic apparatus owning the older second service state version ID, enabling the second electronic apparatus owning the older second service state version ID to activate an upward check procedure to update the older second service state version ID.
26 Citations
16 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; acquiring a plurality of second service state version ID stored in a plurality of local caches of a plurality of second electronic apparatuses by querying the second electronic apparatuses; determining whether each second service state version ID is older than the first service state version ID; and transmitting a forward update request to at least one second electronic apparatus owning the older second service state version ID, enabling the second electronic apparatus owning the older second service state version ID to activate an upward check procedure to update the older second service state version ID, wherein the first and second service state version IDs are generated by 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. - 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) and a first service state value corresponding to the first service state version ID; acquiring a second service state version ID stored in a local cache of the first electronic apparatus; and transmitting the upward check request to a third electronic apparatus to activate an upward check procedure when the second service state version ID is older than the first service state version ID, the upward check procedure transmitting the upward check request to an electronic device causing inconsistency between the first and second service state version IDs; determining whether the third electronic apparatus is unavailable; replacing the second service state version ID and the second service state value stored in the local cache of the first electronic apparatus with the first service state version ID and the first service state value when the third electronic apparatus is unavailable; and transmitting a downward update request to the second electronic apparatus to activate a downward update procedure, the downward update procedure downwardly notifying all nodes directly or indirectly connecting to the first electronic apparatus of information instructing the notified nodes to store the first service state value corresponding to the first service state version ID, wherein the first, second and third electronic apparatuses are organized in an event casting tree, the first electronic apparatus is a parent node of the second electronic apparatus, and the third electronic apparatus is a parent node of the first electronic apparatus. - View Dependent Claims (5, 6)
-
-
7. A method for state synchronization, performed by a first electronic apparatus comprising a local cache storing a first service state version identification (ID) and a first service state value corresponding to the first service state version ID, comprising:
-
receiving a forward update request comprising a second service state version ID and a second service state value corresponding to the second service state version ID from a second electronic apparatus, the second service state version ID being newer than the first service state version ID; receiving a downward update request comprising a third service state version ID and a third service state value corresponding to the third service state version ID from a third electronic apparatus after receiving the forward update request; respectively replacing the first service state version ID and the first service state value in the local cache of the first electronic apparatus with the third service state version ID and the third service state value; determining whether the third service state version ID is newer than the second service state version ID; transmitting a backward update request to the second electronic apparatus in order to activate a master node transition procedure when the third service state version ID is newer than the second service state version ID, wherein the master node transition procedure transfers tasks for transmitting forward update requests from the second electronic apparatus to the first electronic apparatus, the first, second and third electronic apparatuses are organized in an event casting tree, the first and second electronic apparatuses are leaf nodes of the event casting tree, and the third electronic apparatus is a parent node of the first electronic apparatus. - View Dependent Claims (8, 9)
-
-
10. A system for state synchronization, comprising:
-
a first electronic apparatus comprising a service; a second electronic apparatus; a third electronic apparatus; and a fourth electronic apparatus, wherein the first, second, third and fourth 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 and fourth electronic apparatuses represent leaf nodes of the event casting tree, the third and fourth electronic apparatuses subscribe to a plurality of event notifications from the service, the first electronic apparatus hierarchically transmits the event notifications in sequence to the third and fourth electronic apparatuses via the second electronic apparatus, and the fourth electronic apparatus acquires a first service state version identification (ID) from a local cache of the fourth electronic apparatus, acquires a second service state version ID stored in a local cache of the third electronic apparatuses by querying the third electronic apparatus, determines whether the second service state version ID is older than the first service state version ID, and transmits a forward update request to the third electronic apparatus when the second service state version ID is older than the first service state version ID, enabling the third electronic apparatus to activate an upward check procedure to update the older second service state version ID. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
Specification