JP2013054705A - Client device and control method therefor - Google Patents

Client device and control method therefor Download PDF

Info

Publication number
JP2013054705A
JP2013054705A JP2011194413A JP2011194413A JP2013054705A JP 2013054705 A JP2013054705 A JP 2013054705A JP 2011194413 A JP2011194413 A JP 2011194413A JP 2011194413 A JP2011194413 A JP 2011194413A JP 2013054705 A JP2013054705 A JP 2013054705A
Authority
JP
Japan
Prior art keywords
information
application
update
state
control unit
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
JP2011194413A
Other languages
Japanese (ja)
Inventor
Takayuki Masuda
貴之 増田
Kentaro Takahashi
健太郎 高橋
Keisuke Matsuoka
敬介 松岡
Koichi Oi
浩一 大井
Hidekazu Takagi
英一 高木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011194413A priority Critical patent/JP2013054705A/en
Publication of JP2013054705A publication Critical patent/JP2013054705A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable cache control depending on execution states of applications.SOLUTION: In a client device that executes a plurality of applications using information on a server device, the states of the executed applications are managed. Then, when information on the server device is updated, control is performed so that update information is cached in a storage device depending on the state of an application using the information.

Description

本発明は、サーバ装置の情報を利用する複数のアプリケーションを実行させるクライアント装置及びその制御方法に関する。   The present invention relates to a client device that executes a plurality of applications that use information of a server device and a control method thereof.

昨今、組み込み機器にアプリケーションが動作するアプリケーションプラットフォームを組み込むことで、様々なアプリケーションを動作させることが可能になってきている。特に、インターネットへのアクセスを行うことにより、Webの閲覧、メールやクラウドサービスと連携するアプリケーションなど、組み込み機器の機能向上を図る手法が一般的になってきている。   In recent years, it has become possible to operate various applications by incorporating an application platform on which an application operates in an embedded device. In particular, a method for improving functions of embedded devices such as Web browsing, applications linked with mail and cloud services by accessing the Internet has become common.

インターネットへのアクセスにおいて、パーソナルコンピュータ(PC)が持っているアクセス向上のための工夫も組み込み機器に取り入れられている。例えば、ブラウザでは標準的となっているアクセス向上のキャッシュ機構、即ち一旦アクセスしたWebページ情報を保持しておく。そして、再アクセスする時に保持済みデータを再利用することで、アクセス回数の低減を図るWebアクセスのキャッシュ機構である。また、アクセス頻度に応じて、データの再取得を制御するキャッシュ制御機構(例えば、特許文献1、非特許文献1)などである。   In the access to the Internet, a device for improving access possessed by a personal computer (PC) is also incorporated in the embedded device. For example, a cache mechanism for improving access, which is standard in browsers, that is, Web page information once accessed is held. A Web access cache mechanism that reduces the number of accesses by reusing retained data when re-accessing. Also, a cache control mechanism (for example, Patent Document 1 and Non-Patent Document 1) that controls data reacquisition according to the access frequency.

特開2008−252376号公報JP 2008-252376 A

Google Sync<http://www.google.com/mobile/sync>Google Sync <http://www.google.com/mobile/sync>

しかしながら、上記従来の技術では、個々のアプリケーションがそれぞれ工夫するものであるため、キュッシュするデータの保持や保全で個別のアプリケーション毎に不揮発性メモリや記憶装置などの記憶領域が必要となる。   However, in the above-described conventional technique, each application is devised, so that storage areas such as a nonvolatile memory and a storage device are required for each individual application for holding and maintaining the data to be cached.

また、アプリケーションプラットフォームが搭載され、PC相当の機能を持つ組み込み機器では、マルチタスクによるアプリケーションの動作も行われる。そのため、比較的に小さな表示部しかもたない機器の場合、表示しておらずユーザが利用していないアプリケーションもネットワークにアクセスし、個々のキャッシュ情報更新を行っており、CPUリソース消費も大きくなってしまう。その結果、インターネットへのアクセス頻度が増加してしまうとともに、全体的な動作が遅くなってしまうという問題があった。   In addition, in an embedded device equipped with an application platform and having a function equivalent to a PC, an application operation by multitasking is also performed. Therefore, in the case of a device having only a relatively small display unit, an application that is not displayed and is not used by a user also accesses the network, updates individual cache information, and consumes more CPU resources. End up. As a result, there are problems that the frequency of access to the Internet increases and the overall operation becomes slow.

本発明は上述の問題を解決するためになされたもので、アプリケーションの実行状態に応じて、キャッシュ制御を可能とする装置及び方法を提供することを目的とする。   The present invention has been made to solve the above-described problems, and an object thereof is to provide an apparatus and a method that enable cache control according to the execution state of an application.

本発明は、サーバ装置の情報を利用する複数のアプリケーションを実行させるクライアント装置であって、
前記複数のアプリケーションを実行させる実行手段と、
前記実行手段によって実行させるアプリケーションの状態を管理する管理手段と、
前記サーバ装置の情報が更新された際に、当該情報を利用するアプリケーションの状態に応じて、更新情報を記憶装置にキャッシュするように制御する制御手段と、
を有することを特徴とする。
The present invention is a client device that executes a plurality of applications using information of a server device,
Execution means for executing the plurality of applications;
Management means for managing the state of the application executed by the execution means;
Control means for controlling the update information to be cached in the storage device according to the state of the application using the information when the information of the server device is updated;
It is characterized by having.

本発明によれば、画面に表示しておらずユーザから利用されていないような状態にあるアプリケーションのキャッシュ情報更新を抑制することにより、情報更新にかかるCPUリソースの消費やインターネットへのアクセスを軽減できる。その結果、システム全体の応答速度を速めることができるとともに、電力消費量を軽減することができる。   According to the present invention, it is possible to reduce consumption of CPU resources for information update and access to the Internet by suppressing cache information update of an application that is not displayed on the screen and is not used by a user. it can. As a result, the response speed of the entire system can be increased and the power consumption can be reduced.

キャッシュ情報制御システムの構成の一例を示す図。The figure which shows an example of a structure of a cache information control system. (A)は各アプリケーションの状態を管理するテーブルの例を示す図、(B)はアプリケーションの状態と更新カウンタ値との対応例を示す図。(A) is a figure which shows the example of the table which manages the state of each application, (B) is a figure which shows the example of a response | compatibility with the state of an application, and an update counter value. 実施形態1の実行状態におけるキャッシュ制御処理を示すフローチャート。3 is a flowchart showing cache control processing in an execution state according to the first embodiment. 実施形態1の状態変化におけるキャッシュ制御処理を示すフローチャート。5 is a flowchart showing cache control processing in a state change according to the first embodiment. 変形例におけるテーブルの例を示す図。The figure which shows the example of the table in a modification. アプリケーションの状態と更新経過時間との対応例を示す図。The figure which shows the example of a response | compatibility with the state of an application, and update elapsed time. アプリケーションの他の状態と更新カウンタ値との対応例を示す図。The figure which shows the example of a response | compatibility with the other state of an application, and an update counter value. 実施形態2の実行状態におけるキャッシュ制御処理を示すフローチャート。9 is a flowchart illustrating cache control processing in an execution state according to the second embodiment. 実施形態2の状態変化におけるキャッシュ制御処理を示すフローチャート。9 is a flowchart illustrating cache control processing in a state change according to the second embodiment.

以下、図面を参照しながら発明を実施するための形態について詳細に説明する。   Hereinafter, embodiments for carrying out the invention will be described in detail with reference to the drawings.

[実施形態1]
まず、実施形態1におけるキャッシュ情報制御システムの構成の一例を、図1を用いて説明する。図1に示す例では、キャッシュ情報制御システム100は、クライアント装置101、サーバ装置102、入力装置103を有する。
[Embodiment 1]
First, an example of the configuration of the cache information control system according to the first embodiment will be described with reference to FIG. In the example illustrated in FIG. 1, the cache information control system 100 includes a client device 101, a server device 102, and an input device 103.

クライアント装置101は、不図示のネットワークを介してインターネット上のサーバ装置102に接続し、サーバ装置102上で更新された情報を受信し、クライアント装置101内の記憶領域に保存する。また、クライアント装置101は、キャッシュ情報制御部104、アプリケーションステータス管理部105、システムプロパティ管理部106、サーバ通信部107、キャッシュデータ更新管理部108、記憶装置109、UI表示部110を有する。更に、クライアント装置101は、複数のアプリケーション111〜113、アプリケーション実行部114、アプリケーションライフサイクル管理部115を有する。   The client apparatus 101 connects to the server apparatus 102 on the Internet via a network (not shown), receives information updated on the server apparatus 102, and stores it in a storage area in the client apparatus 101. The client apparatus 101 also includes a cache information control unit 104, an application status management unit 105, a system property management unit 106, a server communication unit 107, a cache data update management unit 108, a storage device 109, and a UI display unit 110. Furthermore, the client apparatus 101 includes a plurality of applications 111 to 113, an application execution unit 114, and an application life cycle management unit 115.

サーバ装置102は、文字列や画像データなどの各種情報を保存し、クライアント装置101からの要求に応じて、情報を提供する。尚、各種情報には、システム内で一意の値であるURI(Uniform Resource Identifier)が割り当てられている。   The server device 102 stores various information such as character strings and image data, and provides information in response to a request from the client device 101. Note that a URI (Uniform Resource Identifier), which is a unique value in the system, is assigned to each type of information.

入力装置103は、キーボード、マウス、又はタッチセンサーなどによりユーザが入力を行うためのものである。そして、この入力装置103からの入力は、クライアント装置101のUI表示部110に表示される。   The input device 103 is for a user to input using a keyboard, a mouse, a touch sensor, or the like. The input from the input device 103 is displayed on the UI display unit 110 of the client device 101.

クライアント装置101のキャッシュ情報制御部104は、サーバ装置102から受信した情報を記憶装置109のキャッシュに保存する。アプリケーションステータス管理部105は、アプリケーションの状態(例えば、起動状態、起動中状態、停止状態、停止中状態、アンインストール状態)をアプリケーション毎に管理する。各アプリケーションの状態を管理するテーブルの例を図2の(A)に示す。   The cache information control unit 104 of the client device 101 stores the information received from the server device 102 in the cache of the storage device 109. The application status management unit 105 manages an application state (for example, a start state, a start state, a stop state, a stop state, an uninstall state) for each application. An example of a table for managing the state of each application is shown in FIG.

システムプロパティ管理部106は、クライアント装置101のシステムプロパティを管理する。システムプロパティには、アプリケーションの状態に対応する更新カウンタ値が定義されている。アプリケーションの状態と更新カウンタ値との対応例を図2の(B)に示す。更新カウンタ値とは、キャッシュ情報制御部104が更新情報を記憶装置109のキャッシュに格納する際に判定するためのカウンタ上限値である。   The system property management unit 106 manages system properties of the client apparatus 101. In the system property, an update counter value corresponding to the application state is defined. A correspondence example between the application state and the update counter value is shown in FIG. The update counter value is a counter upper limit value for determination when the cache information control unit 104 stores update information in the cache of the storage device 109.

具体的には、サーバ装置102に保存されている情報が更新され、キャッシュ情報制御部104がサーバ装置102から情報更新通知を受信すると、アプリケーションに対応するカウンタの値をカウントアップする。例えば、アプリケーションに対応するカウンタの値が更新カウンタ値に達している場合、その情報更新通知の更新情報をキャッシュに格納すると判定する。尚、この判定処理の詳細は、更に後述する。また、情報更新通知とは、サーバ装置102で更新された情報のURIを通知することである。   Specifically, when the information stored in the server apparatus 102 is updated and the cache information control unit 104 receives an information update notification from the server apparatus 102, the counter value corresponding to the application is incremented. For example, when the counter value corresponding to the application reaches the update counter value, it is determined that the update information of the information update notification is stored in the cache. Details of this determination process will be described later. Further, the information update notification is to notify the URI of information updated by the server apparatus 102.

サーバ通信部107は、サーバ装置102と情報を送受信する。キャッシュデータ更新管理部108は、サーバ通信部107がサーバ装置102から受信された情報更新通知を管理する。記憶装置109は、各種情報を保存する。   The server communication unit 107 transmits and receives information to and from the server device 102. The cache data update management unit 108 manages the information update notification received by the server communication unit 107 from the server device 102. The storage device 109 stores various information.

UI表示部110は、各アプリケーションやシステムプロパティ管理部106のユーザインタフェースを表示する。アプリケーション111、112、113は、クライアント装置101上で動作し、サーバ装置102上の情報を処理する。アプリケーション実行部114は、各アプリケーションの実行を制御する。アプリケーションライフサイクル管理部115は、アプリケーションのライフサイクルを管理する。   The UI display unit 110 displays a user interface of each application and the system property management unit 106. The applications 111, 112, and 113 operate on the client device 101 and process information on the server device 102. The application execution unit 114 controls the execution of each application. The application life cycle management unit 115 manages the life cycle of the application.

尚、ライフサイクルとは、アプリケーションのインストール、不要になったアプリケーションのアンインストール、インストールしたアプリケーションの実行、実行中のアプリケーションの停止などである。   The life cycle includes installation of an application, uninstallation of an unnecessary application, execution of an installed application, stop of an application being executed, and the like.

以上の構成において、キャッシュ情報制御システム100がサーバ装置102から情報更新通知を受信してから更新情報を記憶装置109に保存するまでの処理を、図3に示すフローチャートを用いて説明する。   In the above configuration, a process from when the cache information control system 100 receives the information update notification from the server apparatus 102 to when the update information is stored in the storage device 109 will be described with reference to the flowchart shown in FIG.

まず、更新情報を利用するアプリケーションの実行状態が起動状態の場合を説明する。アプリケーションの状態が起動状態になると、キャッシュ情報制御部104がシステムプロパティ管理部106からシステムプロパティを取得する(S301)。尚、キャッシュ情報制御部104は、システム起動時に一度だけシステムプロパティを取得すればよい。   First, a case where the execution state of an application that uses update information is in the activated state will be described. When the application state is activated, the cache information control unit 104 acquires system properties from the system property management unit 106 (S301). Note that the cache information control unit 104 only needs to acquire the system property once when the system is activated.

ここで、サーバ装置102において情報が更新されると、サーバ装置102からサーバ通信部107へ情報更新通知が送信される(S302)。サーバ通信部107は情報更新通知をキャッシュデータ更新管理部108へ転送する(S303)。ここで、キャッシュデータ更新管理部108は、情報更新通知を記憶装置109に保存すると共に(S304)、キャッシュ情報制御部104に送信する(S305)。   Here, when information is updated in the server apparatus 102, an information update notification is transmitted from the server apparatus 102 to the server communication unit 107 (S302). The server communication unit 107 transfers the information update notification to the cache data update management unit 108 (S303). Here, the cache data update management unit 108 stores the information update notification in the storage device 109 (S304) and transmits it to the cache information control unit 104 (S305).

一方、キャッシュ情報制御部104は、更新された情報を利用するアプリケーションを識別する(S306)。この場合、識別されたアプリケーションの状態が起動状態であることからキャッシュ情報制御部104は、アプリケーションステータス管理部105からアプリケーションの実行状態として起動状態を取得する(S308)。   On the other hand, the cache information control unit 104 identifies an application that uses the updated information (S306). In this case, since the identified application state is the activated state, the cache information control unit 104 acquires the activated state as the application execution state from the application status management unit 105 (S308).

次に、キャッシュ情報制御部104は、上述のプロパティからアプリケーションの状態に対応する更新カウンタ値を取得する(S309)。この場合、アプリケーションの状態が起動状態であるので、図2の(B)に示すように、キャッシュ情報制御部104は更新カウンタ値として“1”を取得する。   Next, the cache information control unit 104 acquires an update counter value corresponding to the state of the application from the above-described property (S309). In this case, since the application state is the active state, as shown in FIG. 2B, the cache information control unit 104 acquires “1” as the update counter value.

次に、キャッシュ情報制御部104は、記憶装置109からアプリケーションに対応するカウンタを記憶装置109から取得する(S310)。カウンタの初期値はゼロである。そして、キャッシュ情報制御部104は、カウンタを1加算し(S311)、カウンタが更新カウンタ値に達しているか否かを判定する(S312)。尚、この判定処理でNoの場合は処理をS316へ進める。   Next, the cache information control unit 104 acquires a counter corresponding to the application from the storage device 109 from the storage device 109 (S310). The initial value of the counter is zero. Then, the cache information control unit 104 adds 1 to the counter (S311), and determines whether or not the counter has reached the update counter value (S312). If the determination process is No, the process proceeds to S316.

ここで、更新カウンタ値は“1”であるため、カウンタの値は更新カウンタ値に達していることになる(S312でYes)。その結果、キャッシュデータ更新管理部108が最新の情報更新通知に対応する更新情報を取得し、サーバ通信部107を経由してサーバ装置102から更新情報を取得する(S313)。そして、キャッシュ情報制御部104は、取得した更新情報を記憶装置109に保存し(S314)、カウンタをゼロに初期化する(S315)。その後、キャッシュ情報制御部104は、カウンタを記憶装置109に保存する(S316)。   Here, since the update counter value is “1”, the counter value has reached the update counter value (Yes in S312). As a result, the cache data update management unit 108 acquires update information corresponding to the latest information update notification, and acquires update information from the server apparatus 102 via the server communication unit 107 (S313). Then, the cache information control unit 104 stores the acquired update information in the storage device 109 (S314), and initializes the counter to zero (S315). Thereafter, the cache information control unit 104 stores the counter in the storage device 109 (S316).

次に、更新情報を利用するアプリケーションの実行状態が停止状態の場合を説明する。この場合、アプリケーションの状態が起動状態の場合におけるS301〜S306と同様に処理する。ここで、アプリケーションの状態が停止状態であることからキャッシュ情報制御部104は、アプリケーションステータス管理部105からアプリケーションの実行状態として停止状態を取得する(S308)。   Next, a case where the execution state of an application that uses update information is in a stopped state will be described. In this case, processing is performed in the same manner as S301 to S306 when the application state is the active state. Here, since the application state is the stop state, the cache information control unit 104 acquires the stop state as the application execution state from the application status management unit 105 (S308).

次に、キャッシュ情報制御部104は、上述のプロパティからアプリケーションの状態に対応する更新カウンタ値を取得する(S309)。この場合、アプリケーションの状態が停止状態であるので、図2の(B)に示すように、キャッシュ情報制御部104は更新カウンタ値として“10”を取得する。   Next, the cache information control unit 104 acquires an update counter value corresponding to the state of the application from the above-described property (S309). In this case, since the application state is the stopped state, the cache information control unit 104 acquires “10” as the update counter value, as shown in FIG.

次に、キャッシュ情報制御部104は、アプリケーションに対応するカウンタを記憶装置109から取得する(S310)。そして、キャッシュ情報制御部104は、カウンタを1加算し(S311)、カウンタの値が更新カウンタ値に達しているか否かを判定する(S312)。この場合、カウンタの値が更新カウンタ値“10”に達していないので(S312でNo)、そのままカウンタを記憶装置109に保存する(S316)。   Next, the cache information control unit 104 acquires a counter corresponding to the application from the storage device 109 (S310). Then, the cache information control unit 104 adds 1 to the counter (S311), and determines whether or not the counter value has reached the update counter value (S312). In this case, since the counter value has not reached the update counter value “10” (No in S312), the counter is stored in the storage device 109 as it is (S316).

以上の処理は、更新情報を利用するアプリケーションがクライアント装置101に予めインストールされている場合に実行される。また、アプリケーションがアンインストールされている場合は、この処理は実行されない。   The above processing is executed when an application that uses update information is installed in the client apparatus 101 in advance. In addition, this process is not executed when the application is uninstalled.

次に、アプリケーションの状態が変更した際に、サーバ装置102から更新情報を取得して記憶装置109に保存するまでのキャッシュ情報制御部104の処理を、図4に示すフローチャートを用いて説明する。   Next, processing performed by the cache information control unit 104 until update information is acquired from the server device 102 and stored in the storage device 109 when the application state changes will be described with reference to the flowchart shown in FIG.

まず、アプリケーションの状態がアンインストール状態から起動状態へ遷移したときの処理を説明する。キャッシュ情報制御部104は、システムプロパティ管理部106からシステムプロパティを取得する(S401)。   First, processing when the application state transitions from the uninstalled state to the activated state will be described. The cache information control unit 104 acquires system properties from the system property management unit 106 (S401).

次に、アプリケーションの実行状態がアンインストール状態から起動状態へ遷移したとき、アプリケーションステータス管理部105は、アプリケーションライフサイクル管理部115から起動状態への変更通知を受信する(S402)。そして、アプリケーションステータス管理部105は、システムプロパティからアプリケーションの実行状態として起動状態を取得してキャッシュ情報制御部104に通知する(S403)。   Next, when the application execution state transitions from the uninstalled state to the activated state, the application status management unit 105 receives a notification of change to the activated state from the application life cycle management unit 115 (S402). Then, the application status management unit 105 acquires the activation state as the application execution state from the system property and notifies the cache information control unit 104 of it (S403).

一方、キャッシュ情報制御部104では、システムプロパティからアプリケーションの起動状態に対応する更新カウンタ値として“1”を取得する(S404)。そして、キャッシュ情報制御部104は、記憶装置109からアプリケーションに対応するカウンタを取得する(S405)。   On the other hand, the cache information control unit 104 acquires “1” as an update counter value corresponding to the activation state of the application from the system property (S404). Then, the cache information control unit 104 acquires a counter corresponding to the application from the storage device 109 (S405).

次に、S405で取得した更新カウンタ値が“−1”(アンインストール状態)であるか否かを判定し(S406)、この場合、更新カウンタ値は“1”であるので、S407へ処理を進める。このS407で、更新カウンタ値が“1”(起動状態)で、且つ、情報更新通知が存在するか否かを判定し、ここで、情報更新通知が存在すればS409へ処理を進める。また、情報更新通知が存在しなければ(S407でNo)、S412へ処理を進める。   Next, it is determined whether or not the update counter value acquired in S405 is “−1” (uninstalled state) (S406). In this case, since the update counter value is “1”, the process proceeds to S407. Proceed. In S407, it is determined whether or not the update counter value is “1” (active state) and there is an information update notification. If there is an information update notification, the process proceeds to S409. If there is no information update notification (No in S407), the process proceeds to S412.

S409では、キャッシュデータ更新管理部108は、最新の情報更新通知に対応する更新情報を取得し、サーバ通信部107を経由してサーバ装置102から更新情報を取得する。次に、キャッシュデータ更新管理部108は、取得した更新情報を記憶装置109に保存し(S410)、カウンタをゼロに初期化する(S411)。その後、キャッシュ情報制御部104は、カウンタを記憶装置109に保存する(S412)。   In S <b> 409, the cache data update management unit 108 acquires update information corresponding to the latest information update notification, and acquires update information from the server apparatus 102 via the server communication unit 107. Next, the cache data update management unit 108 stores the acquired update information in the storage device 109 (S410), and initializes the counter to zero (S411). Thereafter, the cache information control unit 104 stores the counter in the storage device 109 (S412).

次に、アプリケーションの実行状態が起動状態から停止状態へと遷移したときの処理を説明する。上述したS401〜S405の処理で、アプリケーションの状態が停止状態に変更された場合なので、図2の(B)から、更新カウンタ値として“10”を取得する。そして、S406の判定処理でNoと判定され、S407の判定処理でNoと判定され、キャッシュ情報制御部104は、カウンタを記憶装置109に保存し(S412)、この処理を終了する。   Next, processing when the application execution state transitions from the start state to the stop state will be described. Since the application state is changed to the stopped state in the processing of S401 to S405 described above, “10” is acquired as the update counter value from FIG. Then, it is determined No in the determination process of S406, No is determined in the determination process of S407, and the cache information control unit 104 stores the counter in the storage device 109 (S412), and ends this process.

次に、アプリケーションの実行状態が停止状態から起動状態へ遷移したときの処理は、上述したアプリケーションの実行状態がアンインストール状態から起動状態へと遷移したときと同様の処理を実行する。   Next, the process when the application execution state transitions from the stopped state to the activated state executes the same process as that when the application execution state transitions from the uninstalled state to the activated state.

次に、アプリケーションの実行状態が停止状態からアンインストール状態へと遷移したときの処理を説明する。上述したS401〜S405の処理で、アプリケーションの状態がアンインストール状態に変更された場合なので、図2の(B)から、更新カウンタ値として“−1”を取得する。そして、S406の判定処理でYesと判定され、この処理を終了する。   Next, processing when the application execution state transitions from the stopped state to the uninstalled state will be described. Since the application state is changed to the uninstalled state in the processing of S401 to S405 described above, “−1” is acquired as the update counter value from FIG. And it determines with Yes by the determination process of S406, and complete | finishes this process.

尚、アプリケーションの状態遷移と更新情報の受信とが同時に実行された場合、どちらの処理を優先するかはシステムプロパティで決定するものとする。   Note that, when the application state transition and the reception of update information are executed simultaneously, it is determined by the system property which processing is prioritized.

実施形態1によれば、アプリケーションの実行状態に応じて、キャッシュの更新頻度が変わるため、キャッシュ情報更新にかかるリソース消費量を軽減できる。   According to the first embodiment, since the cache update frequency changes according to the execution state of the application, it is possible to reduce the resource consumption for the cache information update.

[変形例]
キャッシュ情報制御部104は、アプリケーションの実行状態の変化により、アプリケーションから使用されない状態になったデータを識別することが可能である。キャッシュ情報制御部104は、アプリケーションと当該アプリケーションが利用するデータを図5に示すアプリケーションデータ管理テーブルで管理する。キャッシュ情報制御部104は、アプリケーションから使用されない状態になったデータをアプリケーションデータ管理テーブルから識別し、キャッシュデータ更新管理部108に当該データを記憶装置109から削除するように通知することが可能である。
[Modification]
The cache information control unit 104 can identify data that is not used by the application due to a change in the execution state of the application. The cache information control unit 104 manages the application and the data used by the application using the application data management table shown in FIG. The cache information control unit 104 can identify data that is no longer used by an application from the application data management table, and can notify the cache data update management unit 108 to delete the data from the storage device 109. .

また、複数のアプリケーションが記憶装置109に保存されている同一のデータを使用する場合がある。キャッシュ情報制御部104は、図5に示すように、データに対して、当該データを利用するアプリケーションが複数対応付けられている。   A plurality of applications may use the same data stored in the storage device 109. As shown in FIG. 5, in the cache information control unit 104, a plurality of applications that use the data are associated with the data.

従って、キャッシュ情報制御部104は、各アプリケーションの実行状態の変化により全てのアプリケーションから使用されていない状態になったデータを識別できる。よって、キャッシュデータ更新管理部108に当該データを記憶装置109から削除するように通知することが可能である。   Therefore, the cache information control unit 104 can identify data that has not been used by all applications due to a change in the execution state of each application. Therefore, it is possible to notify the cache data update management unit 108 to delete the data from the storage device 109.

尚、上述した更新カウンタ値は、更新時間の間隔である更新経過時間に変えてもよい。アプリケーションステータスと更新経過時間の対応を図6に示す。キャッシュ情報制御部104は、アプリケーションの実行状態に応じて、システムプロパティから取得した更新経過時間毎に、最新の情報更新通知に対応する更新情報を記憶装置109に保存するようにキャッシュデータ更新管理部108に通知する。   The update counter value described above may be changed to an update elapsed time that is an update time interval. FIG. 6 shows the correspondence between the application status and the update elapsed time. The cache information control unit 104 stores the update information corresponding to the latest information update notification in the storage device 109 for each update elapsed time acquired from the system property according to the execution state of the application. 108 is notified.

また、図2の(A)に示すように、各アプリケーションをアプリケーションの実行状態で管理しているが、アプリケーションが表示するユーザインタフェースの状態で管理してもよい。その場合、ユーザインタフェースの状態に応じて、図7の(A)に示すように、上述した更新カウンタ値を対応付ければよい。   Further, as shown in FIG. 2A, each application is managed in the application execution state, but may be managed in the state of the user interface displayed by the application. In that case, the update counter values described above may be associated with each other as shown in FIG.

更に、アプリケーションの実行状態を、アプリケーションのプロセスの状態として管理してもよい。その場合、プロセスの状態に応じて、図7の(B)に示すように、上述した更新カウンタ値を対応付ければよい。   Furthermore, the execution state of the application may be managed as the state of the application process. In that case, the update counter values described above may be associated with each other as shown in FIG.

[実施形態2]
次に、図面を参照しながら本発明に係る実施形態2を詳細に説明する。実施形態2では、図6に示すアプリケーションの実行状態に対応する更新経過時間(秒単位)に応じて、サーバ装置から更新情報を取得してキャッシュに保存するものである。尚、実施形態2におけるキャッシュ情報制御システムの構成は、図1に示す実施形態1と同様であり、その説明は省略する。
[Embodiment 2]
Next, Embodiment 2 according to the present invention will be described in detail with reference to the drawings. In the second embodiment, update information is acquired from the server device and stored in the cache according to the update elapsed time (in seconds) corresponding to the execution state of the application shown in FIG. The configuration of the cache information control system in the second embodiment is the same as that in the first embodiment shown in FIG.

以下、キャッシュ情報制御システム100がサーバ装置102から情報更新通知を受信してから更新情報を記憶装置109に保存するまでの処理を、図8に示すフローチャートを用いて説明する。図8に示すS801〜S808までの処理は、図3に示すS301〜S308までの処理と同じであり、実施形態2の特徴である更新経過時間に関する処理について説明する。   Hereinafter, processing from when the cache information control system 100 receives the information update notification from the server apparatus 102 to when the update information is stored in the storage device 109 will be described with reference to the flowchart shown in FIG. The processing from S801 to S808 shown in FIG. 8 is the same as the processing from S301 to S308 shown in FIG. 3, and processing related to the update elapsed time, which is a feature of the second embodiment, will be described.

まず、更新情報を利用するアプリケーションの実行状態が起動状態の場合を説明する。この場合、キャッシュ情報制御部104は、システムプロパティからアプリケーションの起動状態に対応する更新経過時間を取得する(S809)。ここで、図6に示すように、キャッシュ情報制御部104が取得した更新経過時間はゼロである。   First, a case where the execution state of an application that uses update information is in the activated state will be described. In this case, the cache information control unit 104 acquires the update elapsed time corresponding to the application activation state from the system property (S809). Here, as illustrated in FIG. 6, the update elapsed time acquired by the cache information control unit 104 is zero.

次に、キャッシュ情報制御部104は、記憶装置109からアプリケーションに対応する情報更新通知経過時間を取得する(S810)。情報更新通知経過時間とは、各アプリケーションに対応するタイマーであり、情報更新が通知されるまでの時間を計時するものである。そして、キャッシュ情報制御部104は、情報更新通知経過時間に対して、前回の情報更新通知からの経過時間を加算し(S811)、情報更新通知経過時間が更新経過時間に達しているか否かを判定する(812)。尚、この判定処理でNoの場合は処理をS816へ進める。   Next, the cache information control unit 104 acquires the information update notification elapsed time corresponding to the application from the storage device 109 (S810). The information update notification elapsed time is a timer corresponding to each application, and measures the time until the information update is notified. Then, the cache information control unit 104 adds the elapsed time from the previous information update notification to the information update notification elapsed time (S811), and determines whether the information update notification elapsed time has reached the update elapsed time. Determine (812). If the determination process is No, the process proceeds to S816.

ここで、更新経過時間はゼロであるため、情報更新通知経過時間は必ず更新経過時間に達していると判定される(S812でYes)。その結果、キャッシュデータ更新管理部108が最新の情報更新通知に対応する更新情報を取得し、サーバ通信部107を経由してサーバ装置102から更新情報を取得する(S813)。そして、キャッシュ情報制御部104は、取得した更新情報を記憶装置109に保存し(S814)、情報更新通知経過時間をゼロに初期化する(S815)。その後、キャッシュ情報制御部104は、情報更新通知経過時間を記憶装置109に保存する(S816)。   Here, since the update elapsed time is zero, it is determined that the information update notification elapsed time has reached the update elapsed time (Yes in S812). As a result, the cache data update management unit 108 acquires update information corresponding to the latest information update notification, and acquires update information from the server apparatus 102 via the server communication unit 107 (S813). Then, the cache information control unit 104 stores the acquired update information in the storage device 109 (S814), and initializes the information update notification elapsed time to zero (S815). Thereafter, the cache information control unit 104 stores the information update notification elapsed time in the storage device 109 (S816).

次に、更新情報を利用するアプリケーションの実行状態が停止状態の場合を説明する。この場合、アプリケーションの実行状態が停止状態であるので、キャッシュ情報制御部104は、図6の(B)に示すようにシステムプロパティから更新経過時間として“60”を取得する(S809)。   Next, a case where the execution state of an application that uses update information is in a stopped state will be described. In this case, since the execution state of the application is in the stopped state, the cache information control unit 104 acquires “60” as the update elapsed time from the system property as shown in FIG. 6B (S809).

次に、キャッシュ情報制御部104は、アプリケーションに対応する情報更新通知経過時間を記憶装置109から取得する(S810)。そして、キャッシュ情報制御部104は、情報更新通知経過時間に対して、前回の情報更新通知からの経過時間を加算し(S811)、情報更新通知経過時間が更新経過時間に達しているか否かを判定する(S812)。ここで、達している場合は、上述のアプリケーションの実行状態が起動状態の場合と同様に、処理をS813へ進めるが、達していない場合は、情報更新通知経過時間を記憶装置109に保存する(S816)。   Next, the cache information control unit 104 acquires the information update notification elapsed time corresponding to the application from the storage device 109 (S810). Then, the cache information control unit 104 adds the elapsed time from the previous information update notification to the information update notification elapsed time (S811), and determines whether the information update notification elapsed time has reached the update elapsed time. Determination is made (S812). Here, if it has been reached, the process proceeds to S813 as in the case where the execution state of the above-described application is the startup state, but if not, the information update notification elapsed time is stored in the storage device 109 ( S816).

以上の処理は、更新情報を利用するアプリケーションがクライアント装置101に予めインストールされている場合に実行される。また、アプリケーションがアンインストールされている場合は、この処理は実行されない。   The above processing is executed when an application that uses update information is installed in the client apparatus 101 in advance. In addition, this process is not executed when the application is uninstalled.

次に、アプリケーションの状態が変更した際に、サーバ装置102から更新情報を取得して記憶装置109に保存するまでのキャッシュ情報制御部104の処理を、図9に示すフローチャートを用いて説明する。図9に示すS901〜S903までの処理は、図4に示すS401〜S403までの処理と同じであり、実施形態2の特徴である更新経過時間に関する処理について説明する。   Next, processing performed by the cache information control unit 104 until update information is acquired from the server device 102 and stored in the storage device 109 when the application state changes will be described with reference to the flowchart shown in FIG. The processing from S901 to S903 shown in FIG. 9 is the same as the processing from S401 to S403 shown in FIG. 4, and processing relating to the update elapsed time, which is a feature of the second embodiment, will be described.

まず、アプリケーションの状態がアンインストール状態から起動状態へ遷移したときの処理を説明する。実施形態1と同様に、S901〜S903へと処理を進め、キャッシュ情報制御部104は、システムプロパティからアプリケーションの起動状態に対する更新経過時間として“0”を取得する(S904)。そして、キャッシュ情報制御部104は、記憶装置109からアプリケーションの情報更新通知経過時間を取得する(S905)。   First, processing when the application state transitions from the uninstalled state to the activated state will be described. As in the first embodiment, the process proceeds to S901 to S903, and the cache information control unit 104 acquires “0” as the update elapsed time for the activation state of the application from the system property (S904). The cache information control unit 104 acquires the application information update notification elapsed time from the storage device 109 (S905).

次に、その情報更新通知経過時間が“−1”(アンインストール状態)であるか否かを判定し(S906)、この場合、更新経過時間は“0”であるので、S907へ処理を進める。このS907で、情報更新通知経過時間が更新経過時間に達している、かつ、情報更新通知が存在するか否かを判定し、ここで、情報更新通知が存在すればS909へ処理を進める。また、情報更新通知が存在しなければ(S907でNo)、S912へ処理を進める。   Next, it is determined whether or not the information update notification elapsed time is “−1” (uninstalled state) (S906). In this case, since the update elapsed time is “0”, the process proceeds to S907. . In S907, it is determined whether or not the information update notification elapsed time has reached the update elapsed time and there is an information update notification. If there is an information update notification, the process proceeds to S909. If there is no information update notification (No in S907), the process proceeds to S912.

S909では、キャッシュデータ更新管理部108は、最新の情報更新通知に対応する更新情報を取得し、サーバ通信部107を経由し、サーバ装置102から更新情報を取得する。次に、キャッシュデータ更新管理部108は、取得した更新情報を記憶装置109に保存し(S910)、情報更新通知経過時間をゼロに初期化する(S911)。その後、キャッシュ情報制御部104は、情報更新通知経過時間を記憶装置109に保存する(S912)。   In step S <b> 909, the cache data update management unit 108 acquires update information corresponding to the latest information update notification, and acquires update information from the server apparatus 102 via the server communication unit 107. Next, the cache data update management unit 108 stores the acquired update information in the storage device 109 (S910), and initializes the information update notification elapsed time to zero (S911). Thereafter, the cache information control unit 104 stores the information update notification elapsed time in the storage device 109 (S912).

次に、アプリケーションの実行状態が起動状態から停止状態へと遷移したときの処理を説明する。上述したS901〜S905の処理で、アプリケーションの状態が停止状態に変更された場合なので、図6から、更新経過時間として“60”を取得する。そして、S906の判定処理でNoと判定され、S907の判定処理でNoと判定され、キャッシュ情報制御部104は、情報更新通知経過時間を記憶装置109に保存し(S912)、この処理を終了する。   Next, processing when the application execution state transitions from the start state to the stop state will be described. Since the application state is changed to the stopped state in the processing of S901 to S905 described above, “60” is acquired as the update elapsed time from FIG. Then, it is determined No in the determination process of S906, No is determined in the determination process of S907, and the cache information control unit 104 stores the information update notification elapsed time in the storage device 109 (S912), and ends this process. .

次に、アプリケーションの実行状態が停止状態から起動状態に遷移したときの処理は、上述したアプリケーションの実行状態がアンインストール状態から起動状態へと遷移したときと同様の処理を実行する。   Next, the process when the application execution state transitions from the stop state to the start state executes the same process as when the application execution state transitions from the uninstall state to the start state.

次に、アプリケーションの実行状態が停止状態からアンインストール状態へと遷移したときの処理を説明する。上述したS901〜S905の処理で、アプリケーションの状態がアンインストール状態に変更された場合なので、図6から更新経過時間として“−1”を取得する。そして、S906の判定処理でYesと判定され、この処理を終了する。   Next, processing when the application execution state transitions from the stopped state to the uninstalled state will be described. Since the application state is changed to the uninstalled state in the above-described processing of S901 to S905, “−1” is acquired as the update elapsed time from FIG. And it determines with Yes by the determination process of S906, and complete | finishes this process.

尚、アプリケーションの状態遷移と更新情報の受信とが同時に実行された場合、どちらの処理を優先するかはシステムプロパティで決定するものとする。   Note that, when the application state transition and the reception of update information are executed simultaneously, it is determined by the system property which processing is prioritized.

実施形態2によれば、アプリケーションの実行状態に応じて、キャッシュの更新頻度が変わるため、キャッシュ情報更新にかかるリソース消費量を軽減できる。   According to the second embodiment, since the cache update frequency changes according to the execution state of the application, it is possible to reduce the resource consumption for the cache information update.

[他の実施形態]
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Embodiments]
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (9)

サーバ装置の情報を利用する複数のアプリケーションを実行させるクライアント装置であって、
前記複数のアプリケーションを実行させる実行手段と、
前記実行手段によって実行させるアプリケーションの状態を管理する管理手段と、
前記サーバ装置の情報が更新された際に、当該情報を利用するアプリケーションの状態に応じて、更新情報を記憶装置にキャッシュするように制御する制御手段と、
を有することを特徴とするクライアント装置。
A client device that executes a plurality of applications using information of a server device,
Execution means for executing the plurality of applications;
Management means for managing the state of the application executed by the execution means;
Control means for controlling the update information to be cached in the storage device according to the state of the application using the information when the information of the server device is updated;
A client device comprising:
前記制御手段は、前記サーバ装置の情報を利用するアプリケーションが起動状態として管理されている場合には前記更新情報を前記記憶装置にキャッシュするように制御することを特徴とする請求項1に記載のクライアント装置。   2. The control unit according to claim 1, wherein, when an application that uses information of the server device is managed as an activated state, the control unit controls the update information to be cached in the storage device. Client device. 前記制御手段は、前記サーバ装置の情報を利用するアプリケーションが停止状態として管理されている場合には前記更新情報を前記記憶装置にキャッシュするか否かを判定し、判定の結果に応じて、前記更新情報を前記記憶装置にキャッシュするように制御することを特徴とする請求項1に記載のクライアント装置。   The control means determines whether or not to cache the update information in the storage device when an application that uses the information of the server device is managed as a stopped state, and according to a result of the determination, The client device according to claim 1, wherein update information is controlled to be cached in the storage device. 前記判定は、前記情報の更新をカウントアップするカウンタの値によって判定することを特徴とする請求項3に記載のクライアント装置。   The client apparatus according to claim 3, wherein the determination is performed based on a value of a counter that counts up the update of the information. 前記判定は、前記情報が更新されるまでの更新経過時間によって判定することを特徴とする請求項3に記載のクライアント装置。   The client apparatus according to claim 3, wherein the determination is made based on an update elapsed time until the information is updated. 前記制御手段は、前記サーバ装置の情報を利用するアプリケーションが表示するユーザインタフェースの状態に応じて、前記更新情報を前記記憶装置にキャッシュするように制御することを特徴とする請求項1に記載のクライアント装置。   2. The control unit according to claim 1, wherein the control unit controls the update information to be cached in the storage device in accordance with a state of a user interface displayed by an application that uses the information of the server device. Client device. 前記制御手段は、前記サーバ装置の情報を利用するアプリケーションが実行されているプロセスの状態に応じて、前記更新情報を前記記憶装置にキャッシュするように制御することを特徴とする請求項1に記載のクライアント装置。   2. The control unit according to claim 1, wherein the control unit performs control so that the update information is cached in the storage device in accordance with a state of a process in which an application using the information of the server device is executed. Client device. サーバ装置の情報を利用する複数のアプリケーションを実行させるクライアント装置の制御方法であって、
実行手段が、前記複数のアプリケーションを実行させる実行工程と、
管理手段が、前記実行工程において実行させるアプリケーションの状態を管理する管理工程と、
制御手段が、前記サーバ装置の情報が更新された際に、当該情報を利用するアプリケーションの状態に応じて、更新情報を記憶装置にキャッシュするように制御する制御工程と、
を有することを特徴とするクライアント装置の制御方法。
A method of controlling a client device that executes a plurality of applications using information of a server device,
An execution step of executing the plurality of applications;
A management step in which the management means manages the state of the application to be executed in the execution step;
A control step in which when the information of the server device is updated, the control means controls to cache the update information in the storage device according to the state of the application that uses the information;
A method for controlling a client device, comprising:
コンピュータを請求項1乃至7の何れか1項に記載のクライアント装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the client apparatus of any one of Claims 1 thru | or 7.
JP2011194413A 2011-09-06 2011-09-06 Client device and control method therefor Withdrawn JP2013054705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011194413A JP2013054705A (en) 2011-09-06 2011-09-06 Client device and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011194413A JP2013054705A (en) 2011-09-06 2011-09-06 Client device and control method therefor

Publications (1)

Publication Number Publication Date
JP2013054705A true JP2013054705A (en) 2013-03-21

Family

ID=48131605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011194413A Withdrawn JP2013054705A (en) 2011-09-06 2011-09-06 Client device and control method therefor

Country Status (1)

Country Link
JP (1) JP2013054705A (en)

Similar Documents

Publication Publication Date Title
KR102224760B1 (en) Automatic application updates
US10754683B1 (en) Optimizing preemptive operating system with motion sensing
TWI528282B (en) Method for customizing launching of applications
JP5930236B2 (en) Web application architecture
US10469979B2 (en) Managing data access in mobile devices
JP6072441B2 (en) Haptic theme framework
KR20160069445A (en) User apparatus for managing web application and method therefor
TW201033832A (en) Programming model for synchronizing browser caches across devices and web services
US20160197773A1 (en) Techniques for sharing applications
EP2815311A1 (en) Using an application cache to update resources of installed applications
RU2597468C2 (en) Method and device for browsing web pages at weak illumination by browser for mobile terminal
CN110727525A (en) Companion application for campaign collaboration
KR20130114699A (en) Dynamic device configuration using predicates
KR20120009434A (en) Input content to application via web browser
CN103902238B (en) Information processor and setting information management method
EP2760175A1 (en) Scene-sound set operating method and portable device
JP4978329B2 (en) Backlight control program, information processing apparatus, and backlight control method
JP2013054705A (en) Client device and control method therefor
US10891017B1 (en) Rotating icon selection and interaction software development kit (SDK)
JP2016218541A (en) Information processing device and program
WO2012081079A1 (en) Information processing device, method of controlling power, and power control program
US11379102B1 (en) Native application development techniques
JP2008269602A (en) Device and method for selective engagement in software distribution
CN112148399B (en) Application icon switching method and device and storage medium
JP2017157177A (en) Smart device, method for deleting saved data, and program for deleting saved data

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141202