TWI748653B - System and method for determining operation status of device by updating execution status - Google Patents

System and method for determining operation status of device by updating execution status Download PDF

Info

Publication number
TWI748653B
TWI748653B TW109132382A TW109132382A TWI748653B TW I748653 B TWI748653 B TW I748653B TW 109132382 A TW109132382 A TW 109132382A TW 109132382 A TW109132382 A TW 109132382A TW I748653 B TWI748653 B TW I748653B
Authority
TW
Taiwan
Prior art keywords
server
data
host
execution status
slave server
Prior art date
Application number
TW109132382A
Other languages
Chinese (zh)
Other versions
TW202213100A (en
Inventor
羅嵐
Original Assignee
英業達股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW109132382A priority Critical patent/TWI748653B/en
Application granted granted Critical
Publication of TWI748653B publication Critical patent/TWI748653B/en
Publication of TW202213100A publication Critical patent/TW202213100A/en

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

A system and a method for determining an operation status of a device by updating an execution status are provided. By recording event data including an execution status by a main server when the main server determines target data is changed, updating the execution status based on whether a message generated by a slave server is successfully transmitted from the slave server to a consumer after the slave server detects the event data, updating the execution status based on whether the consumer downloads the target data, and determining an operation statuses of the consumer and a connection between the consumer and the slave server, the system and the method can lower cost of monitoring the consumer from the slave server, and can achieve the effect of obtaining are the slave server and the consumer abnormal and time when exception occurred.

Description

透過更新執行狀態判斷裝置運作狀況之系統及方法System and method for judging device operating status by updating execution status

一種裝置運作狀況判斷系統及其方法,特別係指一種透過更新執行狀態判斷裝置運作狀況之系統及方法。A system and method for judging device operating status, in particular, refers to a system and method for judging device operating status by updating execution status.

隨著經濟與科技的發展,大型企業的規模越來越大,且通訊與交通工具也有大幅度的進步,使得企業集團可以在不同的地點設置辦公室,並建立內部網路以連接不同的辦公室。With the development of economy and technology, the scale of large-scale enterprises is getting bigger and bigger, and communication and transportation have also made great progress, so that enterprise groups can set up offices in different locations and establish internal networks to connect different offices.

企業集團所建立之內部網路通常是依據不同的地理位置建立不同網域,並為每個網域設定符合需求的存取權限,如此,透過網路拓撲結構和網域的存取權限,便可以實現讓不同網域中的資料應用主機連線到資料提供伺服器進行資料存取。Intranets established by enterprise groups usually create different domains based on different geographic locations, and set access permissions that meet the requirements for each domain. In this way, through the network topology and the access permissions of the domains, It is possible to allow data application hosts in different domains to connect to the data providing server for data access.

一般而言,即使都是同一企業集團內部的裝置,但資料提供伺服器大多不會監控執行消費應用系統或資料查詢服務之資料應用主機是否可以正常運作。但若資料提供伺服器沒有監控資料應用主機的運作狀況,資料提供伺服器可能會在資料應用主機無法正常運作的情況下,反復進行資料推送,造成頻寬與資源的浪費,甚至導致資料應用主機的資料錯誤。Generally speaking, even if they are all devices within the same enterprise group, most of the data providing servers do not monitor whether the data application host that executes the consumer application system or the data query service can operate normally. However, if the data providing server does not monitor the operating status of the data application host, the data providing server may repeatedly push data when the data application host is not functioning normally, resulting in waste of bandwidth and resources, and even the data application host. The data is wrong.

因此,目前也有部分的資料提供伺服器依靠與資料應用主機間互相傳送的請求封包及/或回應封包、或透過監控資料應用主機所執行的特定程序等方式來判斷資料應用主機的運作狀況是否正常。然而,透過收發請求封包/回應封包的方式需要在資料提供伺服器與資料應用主機上開發對應的應用子系統以提供相關介面,將增加額外的開發成本與負擔;而透過監控客戶端主機所執行的特定程序的方式則需要額外對監控所取得的資料進行分析,同樣也需要增加成本與負擔。Therefore, at present, some data-providing servers rely on request packets and/or response packets sent to and from the data application host, or by monitoring specific procedures executed by the data application host to determine whether the data application host is operating normally. . However, the method of sending and receiving request packets/response packets requires the development of corresponding application subsystems on the data providing server and the data application host to provide related interfaces, which will increase additional development costs and burdens; and by monitoring the execution of the client host The method of specific procedures requires additional analysis of the data obtained by monitoring, and also requires additional costs and burdens.

綜上所述,可知先前技術中長期以來一直存在目前由資料提供伺服器監控資料應用主機之運作狀態將額外增加成本的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the prior art has long been a problem that the current operating status of the data application host monitored by the data providing server will increase the cost. Therefore, it is necessary to propose improved technical means to solve this problem.

有鑒於先前技術存在由資料提供伺服器監控資料應用主機之運作狀態將增加成本的問題,本發明遂揭露一種透過更新執行狀態判斷裝置運作狀況之系統及方法,其中:In view of the problem in the prior art that monitoring the operation status of the data application host by the data providing server will increase the cost, the present invention discloses a system and method for judging the operation status of the device by updating the execution status, in which:

本發明所揭露之透過更新執行狀態判斷裝置運作狀況之系統,至少包含:主伺服器,用以於判斷目標資料發生變化時,產生並記錄包含執行狀態之事件資料;消費主機;從伺服器,用以與主伺服器同步資料,並在偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機,及依據下載通知訊息是否成功傳送給消費主機更新執行狀態,使消費主機於接收到下載通知訊息時至從伺服器讀取目標資料,及用以於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態,並依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常。The system for judging the operating status of the device by updating the execution status disclosed in the present invention at least includes: a master server for generating and recording event data including the execution status when determining target data changes; a consumer host; a slave server, It is used to synchronize data with the main server, and when event data is detected, it generates a download notification message and sends the download notification message to the consumer host, and based on whether the download notification message is successfully sent to the consumer host to update the execution status, the consumer host will When the download notification message is received until the target data is read from the server, and after the download notification message is successfully sent to the consumer host, the execution status is updated according to whether the consumer host reads the target data, and the consumer host and slave are judged according to the execution status. Whether the connection between the server and the consumer host is abnormal.

本發明所揭露之透過更新執行狀態判斷裝置運作狀況之方法,其步驟至少包括:主伺服器於判斷目標資料發生變化時,產生並記錄包含執行狀態之事件資料;從伺服器與主伺服器同步資料;從伺服器於偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機;從伺服器依據下載通知訊息是否成功傳送給消費主機更新執行狀態;消費主機於接收到下載通知訊息後,至從伺服器讀取目標資料;從伺服器於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態;從伺服器依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常。The method for judging the operating status of the device by updating the execution status disclosed in the present invention includes at least the steps: the master server generates and records event data including the execution status when the target data changes; and the slave server synchronizes with the master server Data; when the slave server detects event data, it generates a download notification message and sends the download notification message to the consumer host; the slave server sends the download notification message to the consumer host to update the execution status according to whether the download notification message is successful; the consumer host receives the download notification After the message, until the target data is read from the server; after the download notification message is successfully sent from the server to the consumer host, the execution status is updated according to whether the consumer host reads the target data; the server judges the consumer host and slave server according to the execution status Whether the connection between the device and the consumer host is abnormal.

本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明透過伺服器於判斷目標資料發生變化時記錄包含執行狀態之事件資料後,從伺服器於偵測到事件資料時依據所產生之下載通知訊息是否成功傳送給消費主機更新執行狀態,並依據消費主機是否讀取目標資料更新執行狀態,及依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常,藉以解決先前技術所存在的問題,並可以達成準確得知資料提供伺服器與資料應用主機之是否異常及發生異常之時間的技術功效。The system and method disclosed in the present invention are as above. The difference with the prior art is that the present invention uses the server to record the event data including the execution status when the target data changes, and then the server detects the event data based on Whether the generated download notification message is successfully sent to the consumer host to update the execution status, and update the execution status according to whether the consumer host reads the target data, and judge whether the consumer host and the connection between the slave server and the consumer host are abnormal according to the execution status. In order to solve the problems existing in the prior art, the technical effect of accurately knowing whether the data providing server and the data application host are abnormal and the time when the abnormality occurs can be achieved.

以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。In the following, the features and implementation of the present invention will be described in detail with the drawings and embodiments. The content is sufficient to enable any person familiar with the relevant art to easily and fully understand the technical means used by the present invention to solve the technical problems and implement them accordingly. The achievable effect of the present invention.

本發明可以透過在主伺服器中記錄與目標資料對應的執行狀態,藉以依據執行狀態判斷從伺服器及消費主機的運作狀態與相互間之連接狀態是否異常。在本發明中,消費主機可以透過目標資料提供服務(包含但不限於監控服務、統計服務等)。The present invention can record the execution status corresponding to the target data in the master server, thereby judging whether the operation status of the slave server and the consumer host and the connection status between them are abnormal according to the execution status. In the present invention, the consumer host can provide services (including but not limited to monitoring services, statistical services, etc.) through target data.

以下先以「第1圖」本發明所提之透過更新執行狀態判斷裝置運作狀況之系統架構圖來說明本發明的系統運作。如「第1圖」所示,本發明之系統含有消費主機110、主伺服器120、送伺服器130。其中,消費主機110、主伺服器120、從伺服器130都可以是計算設備。需要說明的是,在本發明中,消費主機110及從伺服器130可以不只一個,也就是可能有兩個或兩個以上的消費主機110或從伺服器130。Hereinafter, the system operation of the present invention will be explained by using the "Figure 1" of the present invention to determine the operation status of the device by updating the execution status of the system architecture diagram. As shown in "Figure 1", the system of the present invention includes a consumer host 110, a host server 120, and a sending server 130. Among them, the consumer host 110, the master server 120, and the slave server 130 may all be computing devices. It should be noted that in the present invention, there may be more than one consumer host 110 and slave server 130, that is, there may be two or more consumer hosts 110 or slave servers 130.

消費主機110可以透過有線網路或無線網路與主伺服器120及從伺服器130連接,並可以接收主伺服器120/從伺服器130所傳送的資料或訊號,也可以傳送資料或訊號給主伺服器120/從伺服器130。本發明所提之有線網路包含但不限於纜線直接連接、乙太網路等;本發明所提之無線網路例如3G/4G/5G等行動通訊網路(蜂巢式網路)、WiFi、Zigbee等無線區域網路、藍牙、紅外線、近端通訊等,但本發明並不以此為限。The consumer host 110 can be connected to the master server 120 and the slave server 130 through a wired network or a wireless network, and can receive data or signals sent by the master server 120/slave server 130, and can also send data or signals to Master server 120/slave server 130. The wired network mentioned in the present invention includes but is not limited to direct cable connection, Ethernet, etc.; the wireless network mentioned in the present invention is such as 3G/4G/5G mobile communication network (cellular network), WiFi, Zigbee and other wireless local area networks, Bluetooth, infrared, near-end communication, etc., but the present invention is not limited to this.

消費主機110可以設定一個或多個目標識別資料。消費主機110所設定之目標識別資料至少能夠表示消費主機110欲取得之目標資料,例如,目標識別資料可以是目標資料的名稱,也可以是目標資料的名稱與能夠表示目標資料所發生之操作的操作識別碼等,但本發明並不以此為限。其中,操作為對目標資料進行新增、更新、刪除等,但操作並不以上述為限,凡可以讓目標資料被改變的動作都可以是本發明所提之操作;操作識別碼可以由任意數量之文字、數字、字母、符號以任意順序排列而成。The consumer host 110 can set one or more target identification data. The target identification data set by the consumer host 110 can at least represent the target data that the consumer host 110 wants to obtain. For example, the target identification data can be the name of the target data, or the name of the target data and the operation that can represent the target data. Operation identification code, etc., but the present invention is not limited to this. Among them, the operation is to add, update, delete, etc., the target data, but the operation is not limited to the above. Any action that can change the target data can be the operation mentioned in the present invention; the operation identification code can be any The number of words, numbers, letters, and symbols are arranged in any order.

消費主機110也可以產生註冊請求。消費主機110所產生的註冊請求包含所設定的目標識別資料。一般而言,註冊請求還包含消費主機110的網路識別資料。在部分的實施例中,註冊請求也可以包含其他訊息,例如,消費主機的相關資訊、目標資料的請求來源等,但本發明並不以此為限。其中,網路識別資料包含但別限於網路位址(IP address)。The consumer host 110 may also generate a registration request. The registration request generated by the consumer host 110 includes the set target identification data. Generally speaking, the registration request also includes the network identification data of the consumer host 110. In some embodiments, the registration request may also include other information, for example, the relevant information of the consumer host, the source of the request for the target data, etc., but the present invention is not limited to this. Among them, the network identification data includes but is not limited to the network address (IP address).

消費主機110也可以傳送所產生的註冊請求至主伺服器120。在大部分的實施例中,消費主機110可以使用主伺服器120所提供之應用程式介面(API)與主伺服器120連接,並透過主伺服器120所提供之應用程式介面將註冊請求傳送給主伺服器120。The consumer host 110 can also send the generated registration request to the host server 120. In most embodiments, the consumer host 110 can use the API provided by the host server 120 to connect to the host server 120, and send the registration request to the host server 120 through the API provided by the host server 120. The main server 120.

消費主機110也負責接收從伺服器130傳送的下載通知訊息。消費主機110所接收到的下載通知訊息可以包含目標識別資料,但本發明並不以此為限,例如下載通知訊息中還可以包含從伺服器130所提供之應用程式介面的相關資訊等。The consumer host 110 is also responsible for receiving the download notification message sent from the server 130. The download notification message received by the consumer host 110 may include target identification data, but the present invention is not limited to this. For example, the download notification message may also include information related to the application program interface provided by the server 130.

消費主機110也負責依據所接收到之下載通知訊息連線至發出下載通知訊息的從伺服器130,並負責由所連接之從伺服器130下載目標資料。消費主機110可以依據下載通知訊息所記載之應用程式介面連線至從伺服器130以下載目標資料,但本發明並不以此為限,例如,消費主機110也可以在接收到下載通知訊息時直接將下載目標資料的請求傳回給從伺服器130。The consumer host 110 is also responsible for connecting to the slave server 130 that sent the download notification message according to the received download notification message, and is responsible for downloading the target data from the connected slave server 130. The consumer host 110 can connect to the slave server 130 to download the target data according to the application program interface recorded in the download notification message, but the present invention is not limited to this. For example, the consumer host 110 can also download the target data when the download notification message is received. The request to download the target data is directly sent back to the slave server 130.

主伺服器120可以透過有線或無線網路與消費主機110及從伺服器130連接,並可以接收消費主機110/從伺服器130所傳送的資料或訊號,也可以傳送資料或訊號給消費主機110/從伺服器130。The master server 120 can be connected to the consumer host 110 and the slave server 130 via a wired or wireless network, and can receive data or signals sent by the consumer host 110/slave server 130, and can also send data or signals to the consumer host 110 /From server 130.

主伺服器120可以決定與消費主機110對應的從伺服器130。一般而言,主伺服器120可以依據消費主機110的網路識別資料決定與消費主機110對應的從伺服器130,例如,主伺服器120可以選擇與消費主機110在相同網域之從伺服器130與消費主機110對應,但本發明並不以此為限。The master server 120 can determine the slave server 130 corresponding to the consumer host 110. Generally speaking, the master server 120 can determine the slave server 130 corresponding to the consumer host 110 according to the network identification data of the consumer host 110. For example, the master server 120 can select a slave server in the same network domain as the consumer host 110. 130 corresponds to the consumer host 110, but the invention is not limited to this.

主伺服器120也可以接收消費主機110所傳送的目標識別資料,並可以將所接收到的目標識別資料傳送給與消費主機110對應的從伺服器130。在部分的實施例中,主伺服器120也可以由傳送目標識別資料的請求中讀出消費主機110的網路識別資料,並將網路識別資料連同目標識別資料一同傳送給從伺服器130。The master server 120 may also receive the target identification data sent by the consumer host 110, and may send the received target identification data to the slave server 130 corresponding to the consumer host 110. In some embodiments, the master server 120 may also read the network identification data of the consumer host 110 from the request for sending target identification data, and send the network identification data together with the target identification data to the slave server 130.

主伺服器120也可以儲存包含目標資料之各種資料。若主伺服器120使用資料庫儲存資料,則主伺服器120可以在資料庫中額外建立並維護特定的事件表;而若主伺服器120並非使用資料庫儲存資料,則主伺服器120可以使用檔案建立並維護事件表。The main server 120 can also store various data including target data. If the main server 120 uses a database to store data, the main server 120 can additionally create and maintain a specific event table in the database; and if the main server 120 does not use the database to store data, the main server 120 can use File creation and maintenance of event table.

主伺服器120並可以在所儲存之資料被操作(如新增、修改、刪除)之操作事件被觸發而導致所儲存之資料發生變化時,於所維護之事件表中新增一筆資料被操作的事件資料。主伺服器120所維護之事件表所儲存的每一筆事件資料可以包含被操作之資料的識別資料(如名稱)、表示被操作之行為的操作識別碼、及執行狀態,但本發明並不以此為限,例如,事件資料還可以包含資料被操作的時間及狀態被更新的時間等。在部分的實施例中,事件資料被新增時的執行狀態可以是表示資料已建立的訊息。The main server 120 can also add a piece of data to the maintained event table when the operation event of the stored data is operated (such as adding, modifying, deleting) is triggered and the stored data is changed. Event information. Each event data stored in the event table maintained by the main server 120 may include the identification data (such as the name) of the data being operated, the operation identification code indicating the action being operated, and the execution status, but the present invention does not use This is limited. For example, the event data can also include the time when the data was operated and the time when the status was updated. In some embodiments, the execution status when the event data is added may be a message indicating that the data has been created.

主伺服器120也可以依據所維護之事件表中的執行狀態判斷從伺服器130的運作狀態及從伺服器130與主伺服器120間之連線狀態是否異常。更詳細的,當事件表中之執行狀態為表示通知成功或傳送成功的訊息時,主伺服器120可以判斷從伺服器130的功能正常,且主伺服器120與從伺服器130間之連線狀態及從伺服器130與消費主機110間之連線狀態都正常;當事件表中之執行狀態為表示通知失敗或傳送失敗的訊息時,主伺服器120同樣可以判斷從伺服器130的功能正常,且主伺服器120與從伺服器130間之連線狀態正常,但可以判斷從伺服器130與消費主機110間之連線狀態異常;當事件表中之執行狀態為表示已讀取或結束的訊息時,主伺服器120可以判斷從伺服器130與消費主機110的功能都正常,且主伺服器120與從伺服器130間之連線狀態及從伺服器130與消費主機110間之連線狀態也都正常;當事件表中之執行狀態為資料取得異常的訊息時,主伺服器120可以判斷從伺服器130的功能正常,且主伺服器120與從伺服器130間之連線狀態及從伺服器130與消費主機110間之連線狀態都正常,但消費主機110的功能異常;當事件表中之執行狀態持續為表示資料已建立的訊息時,主伺服器120可以判斷從伺服器130功能異常及/或主伺服器120與從伺服器130間之連線狀態異常。The master server 120 can also determine whether the operation status of the slave server 130 and the connection status between the slave server 130 and the master server 120 are abnormal according to the execution status in the maintained event table. In more detail, when the execution status in the event table is a message indicating successful notification or successful transmission, the master server 120 can determine that the function of the slave server 130 is normal, and the connection between the master server 120 and the slave server 130 The status and the connection status between the slave server 130 and the consumer host 110 are normal; when the execution status in the event table is a message indicating notification failure or transmission failure, the master server 120 can also determine that the function of the slave server 130 is normal , And the connection status between the master server 120 and the slave server 130 is normal, but it can be judged that the connection status between the slave server 130 and the consumer host 110 is abnormal; when the execution status in the event table is read or finished The master server 120 can determine that the functions of the slave server 130 and the consumer host 110 are normal, and the connection status between the master server 120 and the slave server 130 and the connection between the slave server 130 and the consumer host 110 The line status is also normal; when the execution status in the event table is an abnormal message of data acquisition, the master server 120 can determine that the function of the slave server 130 is normal, and the connection status between the master server 120 and the slave server 130 And the connection status between the slave server 130 and the consumer host 110 is normal, but the function of the consumer host 110 is abnormal; when the execution status in the event table continues to indicate that the data has been established, the master server 120 can determine the slave server The function of the server 130 is abnormal and/or the connection state between the master server 120 and the slave server 130 is abnormal.

從伺服器130可以透過有線或無線網路與主伺服器120及消費主機110連接,並可以接收主伺服器120/消費主機110所傳送的資料或訊號,也可以傳送資料或訊號給主伺服器120/消費主機110。The slave server 130 can be connected to the master server 120 and the consumer host 110 via a wired or wireless network, and can receive data or signals sent by the master server 120/consumer host 110, and can also send data or signals to the master server 120/Consumer host 110.

從伺服器130可以與主伺服器120同步資料。其中,從伺服器130與主伺服器120同步的資料可以包含主伺服器120所維護的事件表,及可以包含主伺服器120儲存的所有資料或與所對應之消費主機110傳送給主伺服器120之目標識別資料對應的目標資料。The slave server 130 can synchronize data with the master server 120. Among them, the data synchronized from the server 130 and the master server 120 may include the event table maintained by the master server 120, and may include all the data stored by the master server 120 or be sent to the master server by the corresponding consumer host 110 The target data corresponding to the target identification data of 120.

從伺服器130也可以接收主伺服器120所傳送之目標識別資料及網路識別資料,並可以將所接收到之目標識別資料與網路識別資料做為一筆資料記錄到主機關注資料表中,藉以建立與目標識別資料對應之目標資料及網路識別資料所表示之消費主機110的對應關係。The slave server 130 can also receive the target identification data and network identification data sent by the master server 120, and can record the received target identification data and network identification data as a piece of data in the host attention data table. In this way, the corresponding relationship between the target data corresponding to the target identification data and the consumer host 110 indicated by the network identification data is established.

從伺服器130也負責偵測與主伺服器120同步的資料中是否存在事件資料。從伺服器130可以透過資料庫管理程式(或稱資料庫管理系統,DBMS)所提供的監控功能持續監控被新加入與主伺服器120同步之事件表的記錄或在每次與主伺服器120同步資料後查詢事件表所新增的事件資料,藉以取得被新增到事件表中的事件資料;而若從伺服器130並非使用資料庫儲存資料,則從伺服器130可以在每次與主伺服器120同步資料後查詢事件表所新增的事件資料,藉以取得被新增到事件表中的事件資料。從伺服器130並可以在所取得之事件資料中包含與目標資料對應之目標識別資料時,判斷偵測到事件資料。例如,若目標識別資料僅為目標資料的名稱,當被新增到事件表中之事件資料包含目標資料的名稱時,從伺服器130即可以判斷偵測到事件資料;而若目標識別資料包含目標資料的名稱與操作識別碼,則從伺服器130可以在被新增到事件表中之一筆事件資料同時包含目標資料的名稱與相同的操作識別碼時,才判斷偵測到事件資料。The slave server 130 is also responsible for detecting whether event data exists in the data synchronized with the master server 120. The slave server 130 can continuously monitor the records of the newly added event table synchronized with the master server 120 through the monitoring function provided by the database management program (or known as the database management system, DBMS) or every time it is synchronized with the master server 120 After synchronizing the data, query the newly added event data in the event table to obtain the event data added to the event table; and if the slave server 130 does not use the database to store data, the slave server 130 can communicate with the master every time The server 120 queries the newly added event data in the event table after synchronizing the data, so as to obtain the event data added to the event table. The slave server 130 can also determine that the event data is detected when the acquired event data includes target identification data corresponding to the target data. For example, if the target identification data is only the name of the target data, when the event data added to the event table contains the name of the target data, the slave server 130 can determine that the event data is detected; and if the target identification data contains With the name and operation identification code of the target data, the slave server 130 can determine that the event data is detected only when one of the event data added to the event table also contains the name of the target data and the same operation identification code.

從伺服器130也負責在偵測到事件資料時,產生下載通知訊息。從伺服器130也負責將所產生的下載通知訊息傳送給與所偵測到之事件資料相對應的消費主機110。更詳細的,從伺服器130可以由所維護之主機關注資料表中讀出與所偵測到之事件資料中的目標識別資料相對應的網路識別資料,並將下載通知訊息傳送給與所取得之網路識別資料對應的消費主機110。The slave server 130 is also responsible for generating download notification messages when event data is detected. The slave server 130 is also responsible for sending the generated download notification message to the consumer host 110 corresponding to the detected event data. In more detail, the server 130 can read the network identification data corresponding to the target identification data in the detected event data from the maintained host attention data table, and send the download notification message to the host The consumer host 110 corresponding to the obtained network identification data.

從伺服器130也負責依據傳送下載通知訊息給相對應之消費主機110的結果更新與主伺服器120同步之事件表中的執行狀態。例如,當從伺服器130在傳送下載通知訊息給消費主機110後一定時間內接收到消費主機110所傳送之表示接收到下載通知訊息的回應時,從伺服器130可以將事件表中相對應之事件資料的執行狀態更新為表示傳送成功或通知成功的訊息;而當從伺服器130無法傳送下載通知訊息給消費主機110,或從伺服器130在傳送下載通知訊息給消費主機110後一定時間內都沒有接收到消費主機110所傳送之表示接收到下載通知訊息的回應時,從伺服器130可以將事件表中相對應之事件資料的執行狀態更新為表示傳送失敗或通知失敗的訊息。但從伺服器130判斷下載通知訊息是否成功傳送給消費主機110的方式並不以此為限。The slave server 130 is also responsible for updating the execution status in the event table synchronized with the master server 120 according to the result of sending the download notification message to the corresponding consumer host 110. For example, when the slave server 130 receives a response from the consumer host 110 indicating that the download notification message was received within a certain period of time after sending the download notification message to the consumer host 110, the slave server 130 may correspond to the event table The execution status of the event data is updated to indicate that the transmission is successful or the notification is successful; and when the slave server 130 fails to send the download notification message to the consumer host 110, or the slave server 130 sends the download notification message to the consumer host 110 within a certain period of time When none of the responses sent by the consumer host 110 indicating that the download notification message is received is received, the slave server 130 may update the execution status of the corresponding event data in the event table to a message indicating that the transmission failed or the notification failed. However, the manner in which the server 130 determines whether the download notification message is successfully transmitted to the consumer host 110 is not limited to this.

從伺服器130也可以提供應用程式介面給相對應之消費主機110下載目標資料。從伺服器130可以為所有目標資料提供相同的應用程式介面,也可以分別為不同的目標資料提供不同的應用程式介面,本發明並沒有特別的限制。The slave server 130 can also provide an application program interface to the corresponding consumer host 110 to download the target data. The slave server 130 may provide the same application program interface for all target data, or may provide different application program interfaces for different target data respectively, and the present invention is not particularly limited.

從伺服器130也負責接收相對應之消費主機110所傳送的讀取請求,並負責依據所接收到之讀取請求中的目標識別資料讀出相對應的目標資料,及負責將所讀出之目標資料傳回相對應之消費主機110。若從伺服器130提供應用程式介面給消費主機110,則從伺服器130可以透過所提供之應用程式介面接收消費主機110所傳送的讀取請求,並透過應用程式介面將目標資料傳回消費主機110。The slave server 130 is also responsible for receiving the read request sent by the corresponding consumer host 110, and is responsible for reading the corresponding target data according to the target identification data in the received read request, and for reading the read request. The target data is returned to the corresponding consumer host 110. If the slave server 130 provides an application program interface to the consumer host 110, the slave server 130 can receive the read request sent by the consumer host 110 through the provided application program interface, and send the target data back to the consumer host through the application program interface 110.

從伺服器130也負責在將所讀出之目標資料傳回相對應之消費主機110時,將與主伺服器120同步之事件表中相對應之事件資料的執行狀態更新為表示已讀取或結束的訊息。從伺服器130也負責在將事件表中的執行狀態更新為表示傳送成功或通知成功的訊息後預定時間內都沒有接收相對應之消費主機110所傳送的讀取請求時,將事件表中相對應之事件資料的執行狀態更新為表示資料讀取異常的訊息。The slave server 130 is also responsible for updating the execution status of the corresponding event data in the event table synchronized with the master server 120 to indicate read or The end of the message. The slave server 130 is also responsible for updating the execution status in the event table to a message indicating that the transmission is successful or the notification is successful, and when the read request transmitted by the corresponding consumer host 110 is not received within a predetermined time, it will be updated in the event table. The execution status of the corresponding event data is updated to a message indicating that the data is read abnormally.

從伺服器130也負責依據事件表中之執行狀態判斷消費主機110的運作狀態及從伺服器130與消費主機110間之連線狀態是否異常。更詳細的,當與主伺服器120同步之事件表中的執行狀態為表示通知成功或傳送成功的訊息時,從伺服器130可以判斷從伺服器130與消費主機110間之連線狀態正常;當事件表中之執行狀態為表示通知失敗或傳送失敗的訊息時,主伺服器120可以判斷從伺服器130與消費主機110間之連線狀態異常;當事件表中之執行狀態為表示已讀取或結束的訊息時,主伺服器120可以判斷消費主機110的功能正常且從伺服器130與消費主機110間之連線狀態正常;當事件表中之執行狀態為資料取得異常的訊息時,主伺服器120可以判斷從伺服器130與消費主機110間之連線狀態正常但消費主機110的功能異常。The slave server 130 is also responsible for judging the operating status of the consumer host 110 and whether the connection status between the slave server 130 and the consumer host 110 is abnormal according to the execution status in the event table. In more detail, when the execution status in the event table synchronized with the master server 120 is a message indicating successful notification or successful transmission, the slave server 130 can determine that the connection status between the slave server 130 and the consumer host 110 is normal; When the execution status in the event table is a message indicating notification failure or transmission failure, the master server 120 can determine that the connection status between the slave server 130 and the consumer host 110 is abnormal; when the execution status in the event table indicates read When fetching or ending the message, the master server 120 can determine that the function of the consumer host 110 is normal and the connection status between the slave server 130 and the consumer host 110 is normal; when the execution status in the event table is an abnormal message of data acquisition, The master server 120 can determine that the connection status between the slave server 130 and the consumer host 110 is normal but the consumer host 110 has abnormal functions.

接著以一個實施例來解說本發明的運作系統與方法,並請參照「第2A圖」本發明所提之透過更新執行狀態判斷裝置運作狀況之方法流程圖。Next, an embodiment is used to explain the operating system and method of the present invention, and please refer to "Figure 2A" the flowchart of the method for judging the operating status of the device by updating the execution status of the present invention.

首先,主伺服器120可以持續判斷所儲存的資料是否發生變化,並可以在所儲存之資料被操作而發生變化時,產生相對應的事件資料,及將所產生的事件資料寫入所維護的事件表中(步驟220),其中,主伺服器120所產生之事件資料的執行狀態欄位中可以包含表示資料已建立的訊息。First, the main server 120 can continuously determine whether the stored data has changed, and can generate corresponding event data when the stored data is manipulated and change, and write the generated event data into the maintained In the event table (step 220), the execution status field of the event data generated by the main server 120 may include a message indicating that the data has been created.

在從伺服器130與主伺服器120進行資料同步(步驟230)後,從伺服器130可以偵測被同步的資料中是否存在主伺服器120所產生的事件資料。在本實施例中,假設從伺服器130與主伺服器120同步的資料中包含主伺服器120所維護的事件表,則從伺服器130可以在每次同步後至與主伺服器120同步之事件表中查詢新增的事件資料或透過資料庫的監控功能持續監控事件表所新增的事件資料,並可以比對事件表中新增之事件資料中的目標識別資料與所維護之主機關注資料表中的目標識別資料,當事件資料與主機關注資料表中存在相同的目標識別資料時,從伺服器130可以判斷偵測到事件資料。After the data synchronization between the slave server 130 and the master server 120 (step 230), the slave server 130 can detect whether the event data generated by the master server 120 exists in the synchronized data. In this embodiment, assuming that the data synchronized by the slave server 130 and the master server 120 includes the event table maintained by the master server 120, the slave server 130 can synchronize with the master server 120 after each synchronization. Query the newly-added event data in the event table or continuously monitor the newly-added event data through the monitoring function of the database, and compare the target identification data in the newly-added event data in the event table with the maintenance of the host’s attention The target identification data in the data table, when the event data and the host concerned data table have the same target identification data, the slave server 130 can determine that the event data is detected.

從伺服器130可以在判斷偵測到事件資料後,可以產生下載通知訊息,並可以將所產生的下載通知訊息傳送給消費主機110(步驟240)。在本實施例中,假設從伺服器130所產生的下載通知訊息包含目標識別資料及提供給消費主機110讀取目標資料的應用程式介面,且從伺服器130可以依據所維護之主機關注資料表中讀出與事件資料中之目標識別資料對應的網路識別資料,並將下載通知訊息傳送給與所取得之網路識別資料對應的消費主機110。The slave server 130 can generate a download notification message after determining that the event data is detected, and can send the generated download notification message to the consumer host 110 (step 240). In this embodiment, it is assumed that the download notification message generated from the server 130 includes target identification data and an application program interface provided to the consumer host 110 to read the target data, and the slave server 130 can be based on the maintained host attention data table Read the network identification data corresponding to the target identification data in the event data, and send the download notification message to the consumer host 110 corresponding to the obtained network identification data.

在伺服器130將所產生的下載通知訊息傳送給消費主機110(步驟240)後,從伺服器130可以依據下載通知訊息是否成功傳送給消費主機110更新與主伺服器120同步之事件表中對應事件資料的執行狀態(步驟250)。After the server 130 sends the generated download notification message to the consumer host 110 (step 240), the slave server 130 can update the corresponding event table synchronized with the master server 120 according to whether the download notification message is successfully sent to the consumer host 110 The execution status of the event data (step 250).

在消費主機110接收到從伺服器130所傳送的下載通知訊息後,消費主機110可以連線至從伺服器130,並可以由從伺服器130讀取目標資料(步驟260)。在本實施例中,假設消費主機110可以依據下載通知訊息中所包含的應用程式介面與從伺服器130連接,並透過應用程式介面向從伺服器130請求下載與下載通知訊息中之目標識別資料對應的目標資料。After the consumer host 110 receives the download notification message sent from the server 130, the consumer host 110 can connect to the slave server 130, and the slave server 130 can read the target data (step 260). In this embodiment, it is assumed that the consumer host 110 can connect to the slave server 130 according to the application program interface included in the download notification message, and request the download from the server 130 through the application program interface and download the target identification data in the download notification message. The corresponding target data.

在從伺服器130判斷下載通知訊息成功傳送給消費主機110後,可以依據消費主機110是否讀取目標資料以更新與主伺服器120同步之事件表中對應事件資料的執行狀態(步驟270)。在本實施例中,假設從伺服器130可以在將事件表中相對應之事件資料的執行狀態更新為表示傳送成功或通知成功的訊息後,開始倒數計時。若消費主機110於從伺服器130倒數結束的時間內連線至從伺服器130讀取目標資料,則從伺服器130可以將執行狀態更新為表示結束作業或資料已讀取的訊息;而若在從伺服器130倒數結束時,消費主機110都沒有連線至從伺服器130,則從伺服器130可以將執行狀態更新為表示資料讀取異常的訊息。After the server 130 determines that the download notification message is successfully sent to the consumer host 110, the consumer host 110 can update the execution status of the corresponding event data in the event table synchronized with the host server 120 according to whether the consumer host 110 reads the target data (step 270). In this embodiment, it is assumed that the slave server 130 can start the countdown after updating the execution status of the corresponding event data in the event table to a message indicating successful transmission or notification. If the consumer host 110 is connected to read the target data from the server 130 within the countdown time from the server 130, the slave server 130 can update the execution status to a message indicating the end of the operation or the data has been read; and if At the end of the countdown from the server 130, if the consumer host 110 is not connected to the slave server 130, the slave server 130 can update the execution status to a message indicating that the data is read abnormally.

在從伺服器130依據消費主機110是否讀取目標資料而更新與主伺服器120同步之事件表中對應事件資料的執行狀態(步驟270)後,從伺服器130可以依據與主伺服器120同步之事件表中各事件資料的執行狀態判斷對應之消費主機110的運作狀態及從伺服器130與消費主機110間之連線狀態是否異常(步驟280)。After the slave server 130 updates the execution status of the corresponding event data in the event table synchronized with the master server 120 according to whether the consumer host 110 reads the target data (step 270), the slave server 130 can synchronize with the master server 120 according to The execution status of each event data in the event table determines whether the operation status of the corresponding consumer host 110 and the connection status between the slave server 130 and the consumer host 110 are abnormal (step 280).

另外,本發明也可以如「第2C圖」之流程所示,在從伺服器130與主伺服器120進行資料同步(步驟230)後,主伺服器120可以依據所維護之事件表中各事件資料的執行狀態判斷對應之從伺服器130的運作狀態及主伺服器120與從伺服器130間之連線狀態是否異常(步驟290)。In addition, the present invention can also be as shown in the flow chart of "Figure 2C". After the slave server 130 and the master server 120 perform data synchronization (step 230), the master server 120 can follow each event in the maintained event table. The execution status of the data determines whether the operating status of the corresponding slave server 130 and the connection status between the master server 120 and the slave server 130 are abnormal (step 290).

如此,透過本發明,可以準確的判斷資料提供伺服器(從伺服器130)與資料應用主機(消費主機110)的運作狀況。In this way, through the present invention, the operation status of the data providing server (slave server 130) and the data application host (consumer host 110) can be accurately determined.

上述實施例中,在從伺服器130偵測到事件資料前(步驟240),消費主機110可以先向主伺服器120註冊所關注的目標資料,使得與消費主機110對應的從伺服器130建立目標資料與消費主機110的對應關係,藉以讓從伺服器130可以在偵測到事件資料時,依據所建立之對應關係傳送所產生的下載通知訊息至對應的消費主機110。In the above embodiment, before the event data is detected from the server 130 (step 240), the consumer host 110 may first register the target data of interest with the master server 120, so that the slave server 130 corresponding to the consumer host 110 is created The corresponding relationship between the target data and the consumer host 110 allows the slave server 130 to send the generated download notification message to the corresponding consumer host 110 according to the established correspondence when the event data is detected.

更詳細的,如「第2B圖」之流程所示,消費主機110可以設定與所需關注之目標資料對應的目標識別資料,並可以產生註冊請求,及可以將所產生的註冊請求傳送給主伺服器120(步驟211)。其中,假設註冊請求除了包含目標識別資料之外,還包含消費主機110的裝置識別資料、及目標識別資料的存取網址,消費主機110可以依據主伺服器120所提供的應用程式介面將註冊請求傳送給主伺服器120。In more detail, as shown in the process of "Figure 2B", the consumer host 110 can set target identification data corresponding to the target data to be paid attention to, can generate a registration request, and can send the generated registration request to the host The server 120 (step 211). Wherein, assuming that the registration request includes not only the target identification data, but also the device identification data of the consumer host 110, and the access URL of the target identification data, the consumer host 110 can send the registration request according to the application program interface provided by the host server 120 Send to the main server 120.

在主伺服器120接收到消費主機110所傳送之包含目標識別資料的註冊請求(步驟211)後,主伺服器120可以為發出註冊請求的消費主機110選擇做為與消費主機110對應之從伺服器130,並可以將註冊請求中的目標識別資料傳送給與消費主機110對應的從伺服器130(步驟215)。其中,假設網路識別資料為網路位址,主伺服器120可以由註冊請求中取得消費主機110的網路位址,並依據所取得之網路位址選出與消費主機110在相同網域之從伺服器130做為與消費主機110對應的從伺服器130。After the master server 120 receives the registration request containing the target identification data sent by the consumer host 110 (step 211), the master server 120 can select the consumer host 110 that issued the registration request as the slave server corresponding to the consumer host 110 Server 130, and can send the target identification data in the registration request to the slave server 130 corresponding to the consumer host 110 (step 215). Among them, assuming that the network identification data is a network address, the main server 120 can obtain the network address of the consumer host 110 from the registration request, and select the same network domain as the consumer host 110 based on the acquired network address The slave server 130 serves as the slave server 130 corresponding to the consumer host 110.

在主伺服器120將目標識別資料及網路識別資料傳送給與消費主機110對應的從伺服器130(步驟215)後,從伺服器130可以將所接收到的目標識別資料及網路識別資料做為一筆資料寫入所維護的主機關注資料表中,藉以建立目標資料與消費主機110的對應關係。After the master server 120 sends the target identification data and network identification data to the slave server 130 corresponding to the consumer host 110 (step 215), the slave server 130 can send the received target identification data and network identification data As a piece of data, it is written into the maintained host attention data table, so as to establish the corresponding relationship between the target data and the consumer host 110.

綜上所述,可知本發明與先前技術之間的差異在於具有伺服器於判斷目標資料發生變化時記錄包含執行狀態之事件資料後,從伺服器於偵測到事件資料時依據所產生之下載通知訊息是否成功傳送給消費主機更新執行狀態,並依據消費主機是否讀取目標資料更新執行狀態,及依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常之技術手段,藉由此一技術手段可以來解決先前技術所存在由資料提供伺服器監控資料應用主機之運作狀態將增加成本的問題,進而達成準確得知資料提供伺服器與資料應用主機之是否異常及發生異常之時間的技術功效。In summary, it can be seen that the difference between the present invention and the prior art is that after the server records the event data including the execution status when the target data is changed, the download from the server is generated when the event data is detected. The notification message is successfully sent to the consumer host to update the execution status, and the execution status is updated according to whether the consumer host reads the target data, and the execution status is used to determine whether the consumer host and the connection between the slave server and the consumer host are abnormal. This technical method can solve the problem that the data provider server monitors the operating status of the data application host in the prior art will increase the cost, and then can accurately know whether the data provider server and the data application host are abnormal and abnormal. The technical effect of time.

再者,本發明之透過更新執行狀態判斷裝置運作狀況之方法,亦可以硬體、軟體或硬體與軟體之組合散布於若干互連之不同元件的分散方式實現。Furthermore, the method for judging the operation status of the device by updating the execution status of the present invention can also be implemented in a decentralized manner in which hardware, software, or a combination of hardware and software are distributed among a number of interconnected different components.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。Although the embodiments of the present invention are disclosed as above, the content described is not intended to directly limit the scope of patent protection of the present invention. Anyone with ordinary knowledge in the technical field to which the present invention belongs, without departing from the spirit and scope of the present invention, makes some modifications in the form and details of the implementation of the present invention, all belong to the patent protection of the present invention. Scope. The scope of patent protection of the present invention shall still be determined by the scope of the attached patent application.

110:消費主機110: consumer host

120:主伺服器120: main server

130:從伺服器130: From the server

步驟211:消費主機傳送目標資料之目標識別資料給主伺服器Step 211: The consumer host sends the target identification data of the target data to the host server

步驟215:主伺服器傳送目標識別資料及消費主機之網路識別資料至從伺服器Step 215: The master server sends the target identification data and the network identification data of the consumer host to the slave server

步驟220:主伺服器於判斷目標資料發生變化時,產生包含執行狀態之事件資料並記錄事件資料Step 220: When the main server determines that the target data has changed, it generates event data including the execution status and records the event data

步驟230:從伺服器與主伺服器同步資料Step 230: Synchronize data between the slave server and the master server

步驟240:從伺服器於偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機Step 240: When the event data is detected from the server, generate a download notification message and send the download notification message to the consumer host

步驟250:從伺服器依據下載通知訊息是否成功傳送給消費主機更新執行狀態Step 250: Update the execution status from the server according to whether the download notification message is successfully sent to the consumer host

步驟260:消費主機於接收到下載通知訊息後,至從伺服器讀取目標資料Step 260: After receiving the download notification message, the consumer host reads the target data from the server

步驟270:從伺服器於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態Step 270: After successfully sending the download notification message from the server to the consumer host, update the execution status according to whether the consumer host reads the target data

步驟280:從伺服器依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常Step 280: Judging from the server according to the execution status of the consumer host and whether the connection between the slave server and the consumer host is abnormal

步驟290:主伺服器依據執行狀態判斷從伺服器及主伺服器與從伺服器間之連線是否異常Step 290: The master server judges whether the connection between the slave server and the master server and the slave server is abnormal according to the execution status

第1圖為本發明所提之透過更新執行狀態判斷裝置運作狀況之系統架構圖。 第2A圖為本發明所提之透過更新執行狀態判斷裝置運作狀況之方法流程圖。 第2B圖為本發明所提之建立目標資料、從伺服器及消費主機之對應關係之方法流程圖。 第2C圖為本發明所提之透過更新執行狀態判斷裝置運作狀況之附加方法流程圖。 Figure 1 is a system architecture diagram for judging the operating status of the device by updating the execution status according to the present invention. Figure 2A is a flow chart of the method for judging the operating status of the device by updating the execution status according to the present invention. Figure 2B is a flowchart of the method for establishing the corresponding relationship between the target data, the slave server and the consumer host according to the present invention. Figure 2C is a flowchart of the additional method of judging the operating status of the device by updating the execution status according to the present invention.

步驟220:主伺服器於判斷目標資料發生變化時,產生包含執行狀態之事件資料並記錄事件資料 Step 220: When the main server determines that the target data has changed, it generates event data including the execution status and records the event data

步驟230:從伺服器與主伺服器同步資料 Step 230: Synchronize data between the slave server and the master server

步驟240:從伺服器於偵測到事件資料時,產生下載通知訊息並傳送下載通知訊息至消費主機 Step 240: When the event data is detected from the server, generate a download notification message and send the download notification message to the consumer host

步驟250:從伺服器依據下載通知訊息是否成功傳送給消費主機更新執行狀態 Step 250: Update the execution status from the server according to whether the download notification message is successfully sent to the consumer host

步驟260:消費主機於接收到下載通知訊息後,至從伺服器讀取目標資料 Step 260: After receiving the download notification message, the consumer host reads the target data from the server

步驟270:從伺服器於成功傳送下載通知訊息至消費主機後,依據消費主機是否讀取目標資料更新執行狀態 Step 270: After successfully sending the download notification message from the server to the consumer host, update the execution status according to whether the consumer host reads the target data

步驟280:從伺服器依據執行狀態判斷消費主機及從伺服器與消費主機間之連線是否異常 Step 280: Judging from the server according to the execution status of the consumer host and whether the connection between the slave server and the consumer host is abnormal

Claims (10)

一種透過更新執行狀態判斷裝置運作狀況之方法,該方法至少包含下列步驟:一主伺服器於判斷一目標資料發生變化時,產生對應之一事件資料並記錄該事件資料,該事件資料包含一執行狀態;一從伺服器與該主伺服器同步資料;該從伺服器於偵測到該事件資料時,產生一下載通知訊息並傳送該下載通知訊息至一消費主機;該從伺服器依據該下載通知訊息是否成功傳送給該消費主機更新該執行狀態;該消費主機於接收到該下載通知訊息後,至該從伺服器讀取該目標資料;該從伺服器於成功傳送該下載通知訊息至該消費主機後,依據該消費主機是否讀取該目標資料更新該執行狀態;及該從伺服器依據該執行狀態判斷該消費主機及該從伺服器與該消費主機間之連線是否異常。 A method for judging the operating status of a device by updating the execution status. The method includes at least the following steps: when a master server determines that a target data has changed, it generates a corresponding event data and records the event data. The event data includes an execution Status; a slave server synchronizes data with the master server; when the slave server detects the event data, it generates a download notification message and sends the download notification message to a consumer host; the slave server follows the download Whether the notification message is successfully sent to the consumer host to update the execution status; after the consumer host receives the download notification message, it reads the target data from the slave server; the slave server successfully sends the download notification message to the After the consuming host, the execution status is updated according to whether the consuming host reads the target data; and the slave server determines whether the consuming host and the connection between the slave server and the consuming host are abnormal according to the execution status. 如請求項1所述之透過更新執行狀態判斷裝置運作狀況之方法,其中該方法於該從伺服器與該主伺服器同步資料後,更包含該主伺服器依據該執行狀態判斷該從伺服器及該主伺服器與該從伺服器間之連線是否異常之步驟。 The method for judging the operation status of the device by updating the execution status as described in claim 1, wherein the method further includes the master server judging the slave server according to the execution status after the slave server and the master server synchronize data And the steps of whether the connection between the master server and the slave server is abnormal. 如請求項1所述之透過更新執行狀態判斷裝置運作狀況之方法,其中該方法更包含該消費主機傳送該目標資料之一目標識別資料給該主伺 服器,該主伺服器傳送該目標識別資料及該消費主機之一網路識別資料至該從伺服器,該從伺服器記錄該目標識別資料及該網路識別資料之步驟。 The method for judging the operating status of the device by updating the execution status as described in claim 1, wherein the method further includes the consumer host sending a target identification data of the target data to the host server Server, the master server transmits the target identification data and a network identification data of the consumer host to the slave server, and the slave server records the target identification data and the network identification data. 如請求項1所述之透過更新執行狀態判斷裝置運作狀況之方法,其中該從伺服器偵測該事件資料之步驟為該從伺服器持續監控一事件表是否寫入該事件資料或於特定時間查詢該事件表是否記錄事件資料。 The method for judging the operating status of the device by updating the execution status as described in claim 1, wherein the step of detecting the event data from the server is that the slave server continuously monitors whether the event data is written in an event table or at a specific time Query whether the event table records event data. 如請求項1所述之透過更新執行狀態判斷裝置運作狀況之方法,其中該主伺服器判斷該目標資料發生變化之步驟為該主伺服器依據該目標資料之操作事件是否被觸發以判斷該目標資料是否發生變化。 The method for judging the operation status of the device by updating the execution status as described in claim 1, wherein the step of the master server determining that the target data has changed is that the master server determines the target according to whether the operation event of the target data is triggered Whether the data has changed. 一種透過更新執行狀態判斷裝置運作狀況之系統,該系統至少包含:一主伺服器,用以於判斷一目標資料發生變化時,產生對應之一事件資料並記錄該事件資料,該事件資料包含一執行狀態;一消費主機;及一從伺服器,用以與該主伺服器同步資料,並在偵測到該事件資料時,產生一下載通知訊息並傳送該下載通知訊息至該消費主機,及依據該下載通知訊息是否成功傳送給該消費主機更新該執行狀態,使該消費主機於接收到該下載通知訊息時至該從伺服器讀取該目標資料,及用以於成功傳送該下載通知訊息至該消費主機後,依據該消費主機是否讀取該目標資料更新該執行狀態,並依據該執行狀態判斷該消費主機及該從伺服器與該消費主機間之連線是否異常。 A system for judging the operating status of the device by updating the execution status. The system at least includes: a main server for generating a corresponding event data and recording the event data when judging a target data change. The event data includes a Execution status; a consumer host; and a slave server for synchronizing data with the master server, and when the event data is detected, a download notification message is generated and the download notification message is sent to the consumer host, and The execution status is updated according to whether the download notification message is successfully sent to the consumer host, so that the consumer host reads the target data from the server when receiving the download notification message, and is used to successfully send the download notification message After reaching the consumer host, update the execution status according to whether the consumer host reads the target data, and judge whether the connection between the consumer host and the slave server and the consumer host is abnormal according to the execution status. 如請求項6所述之透過更新執行狀態判斷裝置運作狀況之系統,其中該主伺服器更用以依據與該從伺服器同步後之該執行狀態判斷該從伺服器及與該從伺服器間之連線是否異常。 As described in claim 6, the system for judging the operating status of the device by updating the execution status, wherein the master server is further used to determine the slave server and the connection between the slave server and the slave server based on the execution status after synchronizing with the slave server Whether the connection is abnormal. 如請求項6所述之透過更新執行狀態判斷裝置運作狀況之系統,其中該消費主機更用以傳送該目標資料之一目標識別資料給該主伺服器,該主伺服器更用以傳送該目標識別資料及該消費主機之一網路識別資料至該從伺服器,該從伺服器更用以記錄該目標識別資料及該網路識別資料。 The system for judging the operation status of the device by updating the execution status as described in claim 6, wherein the consumer host is further used to send a target identification data of the target data to the host server, and the host server is further used to send the target The identification data and one of the network identification data of the consumer host are sent to the slave server, and the slave server is further used to record the target identification data and the network identification data. 如請求項6所述之透過更新執行狀態判斷裝置運作狀況之系統,其中該從伺服器是持續監控一事件表是否寫入該事件資料或於特定時間查詢該事件表是否記錄事件資料以偵測該事件資料。 The system for judging the operating status of the device by updating the execution status as described in claim 6, wherein the slave server continuously monitors whether an event table is written in the event data or inquires whether the event table records the event data at a specific time to detect The event information. 如請求項6所述之透過更新執行狀態判斷裝置運作狀況之系統,其中該主伺服器是依據該目標資料之操作事件是否被觸發以判斷該目標資料是否發生變化。The system for judging the operating status of the device by updating the execution status as described in claim 6, wherein the main server determines whether the target data has changed according to whether the operation event of the target data is triggered.
TW109132382A 2020-09-18 2020-09-18 System and method for determining operation status of device by updating execution status TWI748653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109132382A TWI748653B (en) 2020-09-18 2020-09-18 System and method for determining operation status of device by updating execution status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109132382A TWI748653B (en) 2020-09-18 2020-09-18 System and method for determining operation status of device by updating execution status

Publications (2)

Publication Number Publication Date
TWI748653B true TWI748653B (en) 2021-12-01
TW202213100A TW202213100A (en) 2022-04-01

Family

ID=80680874

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109132382A TWI748653B (en) 2020-09-18 2020-09-18 System and method for determining operation status of device by updating execution status

Country Status (1)

Country Link
TW (1) TWI748653B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI443507B (en) * 2011-12-05 2014-07-01 Giga Byte Tech Co Ltd Self-repairing system and self-repairing method thereof
TW201619828A (en) * 2014-11-28 2016-06-01 英業達股份有限公司 Rack server system with replying state layer by layer
JP2017055298A (en) * 2015-09-10 2017-03-16 富士ゼロックス株式会社 Connection control device and program
US20170228273A1 (en) * 2016-02-10 2017-08-10 Dell Products, Lp System and Method for Encoding Exception Conditions Included at a Remediation Database
TWI639125B (en) * 2016-06-15 2018-10-21 國泰人壽保險股份有限公司 Financial system, financial server and synchronizing method
CN109816124A (en) * 2019-02-12 2019-05-28 山东云尚信息科技有限公司 Enterprise's computer software fault Monitoring and maintenance system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI443507B (en) * 2011-12-05 2014-07-01 Giga Byte Tech Co Ltd Self-repairing system and self-repairing method thereof
TW201619828A (en) * 2014-11-28 2016-06-01 英業達股份有限公司 Rack server system with replying state layer by layer
JP2017055298A (en) * 2015-09-10 2017-03-16 富士ゼロックス株式会社 Connection control device and program
US20170228273A1 (en) * 2016-02-10 2017-08-10 Dell Products, Lp System and Method for Encoding Exception Conditions Included at a Remediation Database
TWI639125B (en) * 2016-06-15 2018-10-21 國泰人壽保險股份有限公司 Financial system, financial server and synchronizing method
CN109816124A (en) * 2019-02-12 2019-05-28 山东云尚信息科技有限公司 Enterprise's computer software fault Monitoring and maintenance system

Also Published As

Publication number Publication date
TW202213100A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
US7961594B2 (en) Methods and systems for history analysis for access paths in networks
EP1267518B1 (en) Multiple device management method and system
US7797412B2 (en) Method and system for managing server configuration data
JP5548829B2 (en) Computer system, data management method, and data management program
KR101109980B1 (en) Facilitating synchronization of servers in a coordinated timing network
CN103248725B (en) A kind of safe and reliable domain name mapping restorative procedure and system
WO2017020715A1 (en) Method and device for monitoring status of cdn node
JP2011204192A (en) Switching device, information processing device, and failure notification control program
TWI748653B (en) System and method for determining operation status of device by updating execution status
KR102665749B1 (en) Method and apparatus for ensuring continued device operational reliability in cloud-degraded mode
US20080243882A1 (en) Updating of link to data repository
CN104954505B (en) Monitoring method and system for DNS data updating overall process
JP2009206731A (en) Monitoring system, monitoring device, monitoring method, and program
CN114285863B (en) System and method for judging device operation status by updating execution status
CN114268619B (en) System and method for selecting mirror server to obtain data according to identification data
US7734640B2 (en) Resource discovery and enumeration in meta-data driven instrumentation
CN111090648B (en) Relational database data synchronization conflict resolution method
US7805507B2 (en) Use of URI-specifications in meta-data driven instrumentation
EP3895015B1 (en) Collecting repeated diagnostics data from across users participating in a document collaboration session
CN113708973B (en) Resource state monitoring system and method
US12095851B2 (en) Domain name system based global server load balancing service
JP2023129154A (en) Remote operation system, timestamp correction method, and timestamp correction program
CN117955991A (en) Service processing method, device, equipment and storage medium
JP5331749B2 (en) Fault tolerant computer system and data access method
US20070299846A1 (en) System and method for meta-data driven instrumentation