Method for data intercommunication based on airport client offline work and local area network
The method for airport client offline operation and local area network data intercommunication addresses inefficiencies by caching and synchronizing data locally, ensuring seamless flight status and boarding gate adjustments during network failures, enhancing reliability and efficiency.
Patent Information
- Application Number
- CN202211699660.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-12-28
AI Technical Summary
Existing airport production and operation systems face inefficiencies and increased error risks due to manual data recording when the backend crashes or network fails, hindering seamless operation and data synchronization.
Implement a method for airport client offline operation and local area network data intercommunication, utilizing Hazelcast cache and Dubbo service monitoring to cache and synchronize data locally, enabling flight status and boarding gate adjustments, and allowing users to choose when to sync with the background system.
Ensures real-time data caching and reliable operation during network downtime, reducing manual errors and improving overall work efficiency and data reliability.
Smart Images

Figure CN116132517B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an airport client-side offline work and a data intercommunication method in a local area network, and relates to the technical field of Internet. Background Art
[0002] With the rapid development of the domestic aviation market, the stable operation of airports is increasingly valued by the public. As the core system of the airport, the production and operation system receives data from various systems, converts it into flight support-related information, and provides real-time flight data to the entire airport and external systems. It is the data source and processing center of the entire airport.
[0003] When the backend of the production and operation system crashes or the network fails, flight data changes need to be manually recorded by operators and manually entered into the system when the system returns to normal. This process is cumbersome, complicated and time-consuming, which not only increases the risk of errors caused by manual recording, but also seriously affects the overall work efficiency. How to effectively ensure that the airport ground operation-related departments and operators can work together when the system crashes is an issue that must be studied and paid attention to.
[0004] Chinese patent publication number CN102457499A discloses an offline working method of a client, comprising the following steps: obtaining and displaying a user interface; detecting whether the network is connected, and if so, synchronizing the offline operation data stored during the previous work of the client to the server; if not, performing offline work; the offline work specifically comprises the following steps: obtaining and storing the user's offline operation data in real time; and updating the displayed user interface according to the offline operation data obtained and stored in real time.
[0005] Based on this, since the existing clients lack a solution for performing offline operations and completing data intercommunication in the event of background downtime or network interruption, the present invention intends to introduce a method based on offline operation of the airport client and data intercommunication within the local area network into the client. Summary of the invention
[0006] One purpose of the present invention is to achieve real-time caching of data locally based on existing clients, complete offline flight status publishing, stand allocation, and boarding gate allocation, solve the problem that the client cannot operate normally when the background system is down or disconnected from the network, and synchronously update the operation results to all clients with the localization function enabled, solve the trouble of manually recording flight data and manually entering the system, avoid the risk of entering wrong data, and improve overall work efficiency.
[0007] Another purpose of the present invention is to cache the client's page data and offline operations locally, and after the system returns to normal, call the local cached operations to complete the data update in the background. The operation data is optional, and the user decides whether to call the background system synchronously. After success, the user is given timely operation feedback, which improves the reliability and stability of the system. In order to overcome the defects of the prior art, the present invention provides a method based on the offline operation of the airport client and the data intercommunication in the local area network. The technical solution of the present invention is:
[0008] A method for data intercommunication based on airport client offline operation and local area network includes the following steps:
[0009] S1. Log in to the client. During the login process, monitor whether the current client contains a localized offline function module. If not, log in to the client directly. If the login fails, you need to log in again. If the client contains a localized offline function module, start the Hazelcast cache. After the startup is successful, continue to perform the login operation.
[0010] S2. After successful login, start a scheduled task of StayOnlineJobTask;
[0011] S3. StayOnlineJobTask starts a heartbeat warning service HeartBeatsTask, which is used to monitor whether the dubbo service is available and send dubbo service status information;
[0012] S4. After the StayOnlineJobTask scheduled task is successfully started, the dubbo service status information is regularly monitored to determine whether it is available;
[0013] S5. When it is detected that the dubbo service is unavailable, continue to detect whether the current client has a localized offline function module. When it is detected that there is no localized offline function module, prompt the user that the current service is unavailable;
[0014] S6: Whether to manually enable offline mode. If not, the user is prompted that the current service is unavailable. If enabled, the user enters offline operation mode;
[0015] S7. The user manually publishes the flight status, modifies the aircraft position, modifies the boarding gate, etc.
[0016] S8. Save the user's current operation, including the called interface and parameters;
[0017] S9. Based on the user's operation and the call type, cache data is returned and the current operation data is updated to the cache;
[0018] S10, modifying the data of the corresponding entity in the cache according to the user's operation, and sending a change message;
[0019] S11, the cache change message Listener listens to the change message, and refreshes the page data according to the data in the cache when there is a change message;
[0020] S12. When StayOnlineJobTask detects that the dubbo service is available, it will prompt the user whether to synchronize offline operations to the background;
[0021] S13, when the user chooses to synchronize offline data, the background interface is called;
[0022] S14: After the call is completed or the user chooses not to synchronize, the user operation information saved during the offline operation is deleted;
[0023] S15. When the dubbo service is available, directly call the background interface to refresh the page;
[0024] S16. Refresh each client page according to the data returned by the background.
[0025] When the client detects that a service registered on Dubbo is offline, it prompts the client with the localized offline function module whether to enable the localization function. Only after enabling it can the client perform offline operations; when the client detects that a service registered on Dubbo is online, it prompts the current offline client user whether to synchronize the offline operations to the background. The user can choose which operations need to be submitted.
[0026] By utilizing the automatic node discovery feature of Hazelcast clusters, when a client with a localized offline function module is started, Hazelcast will start along with the client. When started, it will search for Hazelcast nodes that can be connected and automatically create a cluster. Clients in the cluster share the data in the cache.
[0027] The advantages of the present invention are: based on the existing production and operation system, a localized offline and local area network data intercommunication technology is developed, thereby realizing the functions of flight status release, aircraft stand and boarding gate adjustment in an offline state, and data intercommunication between offline clients, avoiding the problem of communication and missing operations, thereby further improving the work efficiency and data reliability of the production and operation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0029] The present invention will be further described below in conjunction with specific embodiments, and the advantages and features of the present invention will become clearer as the description proceeds. However, these embodiments are exemplary only and do not constitute any limitation to the scope of the present invention. It should be understood by those skilled in the art that the details and forms of the technical solution of the present invention may be modified or replaced without departing from the spirit and scope of the present invention, but these modifications and replacements all fall within the scope of protection of the present invention.
[0030] See also Figure 1 The present invention relates to a method for data intercommunication based on airport client offline operation and local area network, comprising the following steps:
[0031] S1. Log in to the client. During the login process, monitor whether the current client contains a localized offline function module. If not, log in to the client directly. If the login fails, you need to log in again. If the client contains a localized offline function module, start the Hazelcast cache. After the startup is successful, continue to perform the login operation.
[0032] S2. After successful login, start a scheduled task of StayOnlineJobTask;
[0033] S3. StayOnlineJobTask starts a heartbeat warning service HeartBeatsTask, which is used to monitor whether the dubbo service is available and send dubbo service status information;
[0034] S4. After the StayOnlineJobTask scheduled task is successfully started, the dubbo service status information is regularly monitored to determine whether it is available;
[0035] S5. When it is detected that the dubbo service is unavailable, continue to detect whether the current client has a localized offline function module. When it is detected that there is no localized offline function module, prompt the user that the current service is unavailable;
[0036] S6: Whether to manually enable offline mode. If not, the user is prompted that the current service is unavailable. If enabled, the user enters offline operation mode;
[0037] S7. The user manually publishes the flight status, modifies the aircraft position, modifies the boarding gate, etc.
[0038] S8. Save the user's current operation, including the called interface and parameters;
[0039] S9. Based on the user's operation and the call type, the cache data is returned and the current operation data is updated to the cache;
[0040] S10, modifying the data of the corresponding entity in the cache according to the user's operation, and sending a change message;
[0041] S11, the cache change message Listener listens to the change message, and refreshes the page data according to the data in the cache when there is a change message;
[0042] S12. When StayOnlineJobTask detects that the dubbo service is available, it will prompt the user whether to synchronize offline operations to the background;
[0043] S13, when the user chooses to synchronize offline data, the background interface is called;
[0044] S14: After the call is completed or the user chooses not to synchronize, the user operation information saved during the offline operation is deleted;
[0045] S15. When the dubbo service is available, directly call the background interface to refresh the page;
[0046] S16. Refresh each client page according to the data returned by the background.
[0047] When the client detects that a service registered on Dubbo is offline, it prompts the client with the localized offline function module whether to enable the localization function. Only after enabling it can the client perform offline operations; when the client detects that a service registered on Dubbo is online, it prompts the current offline client user whether to synchronize the offline operations to the background. The user can choose which operations need to be submitted.
[0048] By utilizing the automatic node discovery feature of Hazelcast clusters, when a client with a localized offline function module is started, Hazelcast will start along with the client. When started, it will search for Hazelcast nodes that can be connected and automatically create a cluster. Clients in the cluster share the data in the cache.
[0049] When the data in the cache changes, when the offline client publishes the status, the modified data will be updated to the cache after the operation is completed, and the topic message will be sent. Other offline clients will listen to the changes in the message in the topic, and refresh the page according to the data in the cache when there is a change, thus achieving data consistency between offline clients. The offline client will record the interface and parameter information called by the current operation on the local machine. When the background is restored, after the client detects that the service on Dubbo is online, the user can choose whether to synchronize the offline operation recorded on the local machine to the background (that is, call the background interface by reflection). If you choose to synchronize to the background, the local record will be deleted after the synchronization is completed; if you choose not to synchronize, only the local record will be deleted.
[0050] The present invention is a localized offline technology that can normally operate flight status publishing and aircraft stand and boarding gate adjustment on the flight management page when the backend server of the production operation system is down or the network fails. On the basis of the existing production operation system, it solves the problem of being unable to operate the client and data synchronization in production.
[0051] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method based on offline operation of airport client and data intercommunication in local area network, characterized in that: The following steps are involved: S1. Log in to the client. During the login process, monitor whether the current client contains the localized offline function module. If not, log in to the client directly. If the login fails, you need to log in again; If the client contains a localized offline function module, start the Hazelcast cache and continue the login operation after successful startup; S2. After successful login, start a scheduled task of StayOnlineJobTask; S3. StayOnlineJobTask starts a heartbeat warning service HeartBeatsTask, which is used to monitor whether the dubbo service is available and send dubbo service status information; S4. After the StayOnlineJobTask scheduled task is successfully started, the dubbo service status information is monitored regularly to determine whether the dubbo service is available; S5. When it is detected that the dubbo service is unavailable, continue to detect whether the current client has a localized offline function module. When it is detected that there is no localized offline function module, prompt the user that the current service is unavailable; S6. When a localized offline function module is detected, the user is prompted whether to manually turn on the offline mode. If not, the user is prompted that the current service is unavailable. If turned on, enter offline operation mode; S7. The user manually publishes the flight status, modifies the seat, and modifies the boarding gate; S8. Save the user's current operation, including the called interface and parameters; S9. Based on the user's operation and the call type, cache data is returned and the current operation data is updated to the cache; S10, modifying the data of the corresponding entity in the cache according to the user's operation, and sending a change message; S11, the cache change message Listener listens to the change message, and refreshes the page data according to the data in the cache when there is a change message; S12. When StayOnlineJobTask detects that the dubbo service is available, it will prompt the user whether to synchronize offline operations to the background; S13, when the user chooses to synchronize offline data, the background interface is called; S14: After the call is completed or the user chooses not to synchronize, the user operation information saved during the offline operation is deleted; S15. When the dubbo service is available, directly call the background interface to refresh the page; S16. Refresh each client page according to the data returned by the background; By utilizing the automatic node discovery feature of Hazelcast clusters, when a client with a localized offline function module is started, Hazelcast will start along with the client. When started, it will search for Hazelcast nodes that can be connected and automatically create a cluster. Clients in the cluster share data in the cache. When the data in the cache changes, a topic message is sent, and other offline clients will listen to changes in the messages in the topic. When there are changes, the page will be refreshed based on the data in the cache.
2. The method for offline operation based on airport client and data intercommunication in local area network according to claim 1 is characterized in that: When the client detects that a service registered on Dubbo is offline, it prompts the client with the localized offline function module whether to enable the localization function. Only after enabling it can the client perform offline operations; when the client detects that a service registered on Dubbo is online, it prompts the current offline client user whether to synchronize the offline operations to the background. The user can choose which operations need to be submitted.
