JP2004185226A - Dynamic application program replacement system - Google Patents

Dynamic application program replacement system Download PDF

Info

Publication number
JP2004185226A
JP2004185226A JP2002350302A JP2002350302A JP2004185226A JP 2004185226 A JP2004185226 A JP 2004185226A JP 2002350302 A JP2002350302 A JP 2002350302A JP 2002350302 A JP2002350302 A JP 2002350302A JP 2004185226 A JP2004185226 A JP 2004185226A
Authority
JP
Japan
Prior art keywords
aps
load
loading
reference relation
load state
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.)
Pending
Application number
JP2002350302A
Other languages
Japanese (ja)
Inventor
Hideki Sumioka
英樹 住岡
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2002350302A priority Critical patent/JP2004185226A/en
Publication of JP2004185226A publication Critical patent/JP2004185226A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable definition without consideration for loading order in the definition of APs linked to a process. <P>SOLUTION: AP reference relation table updating means 10 update information in an AP reference relation table 11 when an AP reference relation definition file 8 is updated. When the AP reference relation table updating means 10 are executed, AP updating means 5 update an AP loading state management table 6; and after the update of the AP loading state management table 6, inquire of AP loading/unloading order control means 7 which APs should be unloaded to unload APs designated by the AP loading/unloading order control means 7, and inquire of the AP loading/unloading order control means 7 which order update APs should be loaded in to load APs designated by the AP loading/unloading order control means 7 from an AP storage file 1. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明はアプリケーションプログラム動的置換方式および方法に関し、特にプロセスにリンクするAP間に片方向の参照関係があるシステムにおけるアプリケーションプログラム動的置換方式および方法に関する。
【0002】
【従来の技術】
24時間稼働するシステムにおいては、業務を停止することなくアプリケーションプログラム(以下、APと略記する)の置換を行う必要がある。
【0003】
このような機能を実現するアプリケーションプログラムの動的置換方式については既に発表されているが(例えば、特許文献1参照)、そこでは以下のような制御が行われる。
【0004】
プロセスの起動は、動的置換の対象となるAPを定義された順番でロードする。
【0005】
プロセスの終了は、起動時にロードされたのと逆の順番でAPをアンロードする。
【0006】
また、APを動的に置換したい場合、指示されたAPのみを、それらがロードされた順番の逆順でアンロードして、再び定義順にロードするか、全てのAPをアンロードして再ロードする。
【0007】
【特許文献1】
特開平08−185318号公報(第5−6頁、図1)
【0008】
【発明が解決しようとする課題】
上述した従来の技術では、大規模システムにおいては個々の業務にリンクされるAPの数も多くなるため、AP間に参照関係が発生する可能性も大きくなるが、AP間に参照関係がある場合、APのロードは被参照APから順番に行う必要があり、アンロードは参照APから順番に行う必要があるため、以下のような保守性および性能面での問題点が発生する。
【0009】
第1の問題点は、ユーザはロードされる順番を考えて、その順番にAPを定義する必要がある。
【0010】
第2の問題点は、一部の修正されたAPを動的に変更したい場合、APの参照関係についての定義が行われていないため、変更したいAPを参照しているAPまで考慮して置換するAPを定義する必要があるが、APの数が多くなる大規模システムにおいては保守性に問題がある。
【0011】
第3の問題点は、上記作業を省略したい場合に、無条件に全てのAPをアンロードしてロードし直すという方法もあるが、APの数が多くなる大規模システムにおいて、ロード/アンロードにかかる時間が増大し、性能面で問題がある。
【0012】
このため、AP間に参照関係があるようなシステムの保守性を向上させ、置換にかかる時間を短縮する技術が必要となる。
【0013】
本発明の目的は、プロセスにリンクするAP間に片方向の参照関係がある場合のAPの動的置換の保守性および性能を向上させるアプリケーションプログラム動的置換方式および方法を提供することにある。
【0014】
【課題を解決するための手段】
本発明のアプリケーションプログラム動的置換方式は、プロセスにリンクするAP間に片方向の参照関係があるシステムにおいて、各プロセスにリンクするAPの片方向の参照関係を定義するAP参照関係テーブルと、このAP参照関係テーブルの情報を基に各APの片方向の参照関係を把握し、起動時は被参照APから順にロードされるように、終了時は参照APから順にアンロードされるようにAPのロード/アンロードの順番を制御するAPロード/アンロード順制御手段とを備えることを特徴とする。
【0015】
また、本発明のアプリケーションプログラム動的置換方式は、AP間に片方向の参照関係があるAP群のうちの、あるAPを置換する際に、このAPのアンロードに必要なAPのアンロード/ロードのみを行うことを特徴とする。
【0016】
さらに、本発明のアプリケーションプログラム動的置換方式は、プロセスにリンクするAP間に片方向の参照関係があるシステムにおいて、全てのAPが格納されているAP格納ファイルと、各プロセスに動的にリンクされるAP名,およびそのAPが参照するAP名を格納するAP参照関係定義ファイルと、前記AP参照関係定義ファイルに定義された情報に加えて被参照情報をテーブル内に持つAP参照関係テーブルと、前記AP参照関係テーブルの情報のうち、各プロセスに関連する情報に加え、各APのロード状態および未解決AP数を持つAPロード状態管理テーブルと、前記AP参照関係定義ファイルの情報を前記AP参照関係テーブルに展開するAP参照関係テーブル初期化手段と、前記AP参照関係定義ファイルが更新された場合に前記AP参照関係テーブルの情報を更新するAP参照関係テーブル更新手段と、プロセスのプロセス初期化処理から呼び出され、前記APロード状態管理テーブルを作成するAPロード状態管理テーブル初期化手段と、前記AP参照関係テーブルの情報を基に各APの片方向の参照関係を把握し、起動時は被参照APから順にロードされるように、終了時は参照APから順にアンロードされるようにAPのロード/アンロードの順番を制御するAPロード/アンロード順制御手段と、プロセスのプロセス初期化処理から呼び出され、APのロード順を前記APロード/アンロード順制御手段に問い合わせ、指示されたAPを前記AP格納ファイルからロードするAPロード手段と、前記AP参照関係テーブル更新手段が実行されたときに前記APロード状態管理テーブルを更新し、前記APロード状態管理テーブルの更新後、アンロードの必要なAPを前記APロード/アンロード順制御手段に対して問い合わせ、前記APロード/アンロード順制御手段から指示されたAPをアンロードし、更新後のAPのロード順を前記APロード/アンロード順制御手段に問い合わせ、前記APロード/アンロード順制御手段から指示されたAPを前記AP格納ファイルからロードするAP更新手段とを有することを特徴とする。
【0017】
さらにまた、本発明のアプリケーションプログラム動的置換方式は、前記APロード/アンロード順制御手段が、APのロード状態をアンロード予定に変更し、APの未解決AP数に被参照APの数を設定し、被参照APについてロード状態をアンロード予定に変更し、未解決AP数に被参照AP数を設定し、被参照APに設定されていたAPのロード状態をアンロード予定に変更し、被参照APがなくなるまで繰り返し、ロード状態がアンロード予定のAPについて、未解決AP数を参照し、値が0の場合に、APをアンロードし、ロード状態をOFFにし、そのAPが参照しているAPのうち、ロード状態がアンロード予定のAPの未解決AP数を1減らし、APのロード状態がアンロード予定のAPがなくなるまで繰り返し、アンロードが終了したならば、APのロード状態がOFFのAPについて、参照しているAPのうち、ロード状態がOFFのAP数を未解決AP数に設定し、ロード状態がOFFのAPの未解決AP数を参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らし、全てのAPのロード状態がONになるまで繰り返すことを特徴とする。
【0018】
一方、本発明のアプリケーションプログラム動的置換方法は、プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、AP参照関係テーブル更新手段が、置換後の情報に更新されたAP参照関係定義ファイルを読み込んでAP参照関係テーブルを更新する工程と、AP参照関係テーブル更新手段が、AP参照関係テーブルの更新が終了後に、起動しているプロセスのAP更新手段に対して更新要求する工程と、AP更新手段が、更新要求を受けたときに更新されたAP参照関係テーブルの情報を元にAPロード状態管理テーブルを更新する工程と、AP更新手段が、APロード状態管理テーブルの更新後に、アンロードの必要なAPをAPロード/アンロード順制御手段に対して問い合わせる工程と、APロード/アンロード順制御手段が、更新のあったAP,および該APを参照しているAPの情報を元にアンロードすべきAPをアンロード順にAP更新手段に対して指示する工程と、AP更新手段が、指示されたAPをアンロードする工程と、AP更新手段が、更新後のAPのロード順をAPロード/アンロード順制御手段に問い合わせる工程と、APロード/アンロード順制御手段が、ロードするAPを指示し、APロード状態管理テーブルのロード状態および未解決AP数を更新する工程と、AP更新手段が、指示されたAPをAP格納ファイルからロードする工程とを含むことを特徴とする。
【0019】
また、本発明のアプリケーションプログラム動的置換方法は、プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、AP参照関係テーブル初期化手段が、AP参照関係定義ファイルの情報を読み込む工程と、AP参照関係テーブル初期化手段が、その情報にAPに対する被参照情報を加えてAP参照関係テーブルを作成する工程とを含むAP参照関係テーブルの初期化処理と、APロード状態管理テーブル初期化手段が、各プロセスのプロセス初期化処理から呼び出されたときにAP参照関係テーブルを参照して自プロセスに関連する情報を検索し、検索結果から自プロセスの情報をAPロード状態管理テーブルに展開し、各APのロード状態を全てOFF、未解決AP数に各APの参照AP数を設定して、APロード状態管理テーブルを作成する工程と、プロセス初期化処理が、APロード手段を呼び出す工程と、APロード手段が、APのロード順をAPロード/アンロード順制御手段に問い合わせる工程と、APロード/アンロード順制御手段が、ロードするAPを指示し、APロード状態管理テーブルのロード状態および未解決AP数を更新する工程と、APロード手段が、指示されたAPをAP格納ファイルからロードする工程とを含む各プロセスの起動時の処理と、AP参照関係テーブル更新手段が、置換後の情報に更新されたAP参照関係定義ファイルを読み込んでAP参照関係テーブルを更新する工程と、AP参照関係テーブル更新手段が、AP参照関係テーブルの更新が終了後に、起動しているプロセスのAP更新手段に対して更新要求する工程と、AP更新手段が、更新要求を受けたときに更新されたAP参照関係テーブルの情報を元にAPロード状態管理テーブルを更新する工程と、AP更新手段が、APロード状態管理テーブルの更新後に、アンロードの必要なAPをAPロード/アンロード順制御手段に対して問い合わせる工程と、APロード/アンロード順制御手段が、更新のあったAP,およびそのAPを参照しているAPの情報を元にアンロードすべきAPをアンロード順にAP更新手段に対して指示する工程と、AP更新手段が、指示されたAPをアンロードする工程と、AP更新手段が、更新後のAPのロード順をAPロード/アンロード順制御手段に問い合わせる工程と、APロード/アンロード順制御手段が、ロードするAPを指示し、APロード状態管理テーブルのロード状態および未解決AP数を更新する工程と、AP更新手段が、指示されたAPをAP格納ファイルからロードする工程とを含むAP動的置換処理とからなることを特徴とする。
【0020】
さらに、本発明のアプリケーションプログラム動的置換方法は、プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、APのロード状態をアンロード予定に変更する工程と、APの未解決AP数に被参照APの数を設定する工程と、被参照APについてロード状態をアンロード予定に変更する工程と、未解決AP数に被参照AP数を設定し、被参照APに設定されていたAPのロード状態をアンロード予定に変更する工程と、被参照APがなくなるまで繰り返す工程と、ロード状態がアンロード予定のAPについて、未解決AP数を参照し、値が0の場合に、APをアンロードし、ロード状態をOFFにし、そのAPが参照しているAPのうち、ロード状態がアンロード予定のAPの未解決AP数を1減らす工程と、上記工程をAPのロード状態がアンロード予定のAPがなくなるまで繰り返す工程と、アンロードが終了したならば、APのロード状態がOFFのAPについて、参照しているAPのうち、ロード状態がOFFのAP数を未解決AP数に設定する工程と、ロード状態がOFFのAPの未解決AP数を参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす工程と、上記工程を全てのAPのロード状態がONになるまで繰り返す工程とを含むことを特徴とする。
【0021】
さらにまた、本発明のアプリケーションプログラム動的置換方法は、プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、APロード状態管理テーブルのロード状態を全てOFF、未解決AP数に各APが参照しているAPの数を設定する工程と、ロード状態がOFFのAPの未解決AP数を定義順に参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす工程と、上記工程を、全てのAPのロード状態がONになるまで繰り返す工程と、ロード状態がONにならないAPが存在する場合に相互参照があるものと判断してエラーで終了する工程とを含むロード処理と、APのロード状態をアンロード予定に変更する工程と、APの未解決AP数に被参照APの数を設定する工程と、被参照APについてロード状態をアンロード予定に変更する工程と、未解決AP数に被参照AP数を設定し、被参照APに設定されていたAPのロード状態をアンロード予定に変更する工程と、被参照APがなくなるまで繰り返す工程と、ロード状態がアンロード予定のAPについて、未解決AP数を参照し、値が0の場合に、APをアンロードし、ロード状態をOFFにし、そのAPが参照しているAPのうち、ロード状態がアンロード予定のAPの未解決AP数を1減らす工程と、上記工程をAPのロード状態がアンロード予定のAPがなくなるまで繰り返す工程と、アンロードが終了したならば、APのロード状態がOFFのAPについて、参照しているAPのうち、ロード状態がOFFのAP数を未解決AP数に設定する工程と、ロード状態がOFFのAPの未解決AP数を参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす工程と、上記工程を全てのAPのロード状態がONになるまで繰り返す工程とを含むAP動的置換処理とを備えることを特徴とする。
【0022】
本発明は、プロセスにリンクするAP間に片方向の参照関係がある場合のAPの動的置換の保守性および性能を向上させる手段を提供するものであるが、これらを実現するための手段として、各プロセスにリンクするAPの片方向の参照関係を定義したAP参照関係テーブルと、その情報を基にAPのロード/アンロードの順番を制御するAPロード/アンロード手段とを持つ。
【0023】
APの片方向の参照関係を初期化するための手段(以降、AP参照関係初期化手段と呼ぶ)は、APの片方向の参照関係を定義したファイル(以降、AP参照関係定義ファイルと呼ぶ)の情報を元に、AP参照関係テーブルを作成する。
【0024】
各プロセスの起動時に、AP参照関係テーブルを参照し、各APが参照しているAPが全てロードされてからロードを行うように順番を制御する。
【0025】
APの動的置換時には、置換対象となったAPを参照しているAPを参照順にアンロードし、被参照順に再ロードするように順番を制御する。
【0026】
各プロセスの終了時には、AP参照関係テーブルを参照し、各APを参照しているAPが全てアンロードされてからアンロードを行うように順番を制御する。
【0027】
このようにして、AP間に片方向の参照関係がある場合のAPの動的置換の保守性および性能を向上させる。
【0028】
【発明の実施の形態】
以下、本発明の実施の形態について図面を参照して詳細に説明する。
【0029】
図1は、本発明の第1の実施の形態に係るアプリケーションプログラム動的置換方式の構成を示すブロック図である。本実施の形態に係るアプリケーションプログラム動的置換方式は、AP格納ファイル1と、APロード状態管理テーブル初期化手段2と、プロセス初期化処理3と、APロード手段4と、AP更新手段5と、APロード状態管理テーブル6と、APロード/アンロード順制御手段7と、AP参照関係定義ファイル8と、AP参照関係テーブル初期化手段9と、AP参照関係テーブル更新手段10と、AP参照関係テーブル11とから、その主要部が構成されている。なお、APロード状態管理テーブル初期化手段2,プロセス初期化処理3,APロード手段4,AP更新手段5,APロード状態管理テーブル6,およびAPロード/アンロード順制御手段7は、プロセスに含まれる。
【0030】
AP格納ファイル1には、APロード手段4およびAP更新手段5から参照される全てのAPが格納されていて、指示されたAPのロードが行われる。
【0031】
図2は、プロセスにリンクする片方向の参照関係があるAP群の一例を示す図である。この例では、プロセス1にリンクする9つのAP1〜AP9間に図示のような片方向の参照関係があるものとする。
【0032】
AP参照関係定義ファイル8は、各プロセスに動的にリンクされるAP名,およびそのAPが参照するAP名を格納してある。
【0033】
図3は、AP参照関係定義ファイル8の構造を示す図である。記入されている値は、図2に例として示した片方向の参照関係を持つようなプロセス1についての値である。
【0034】
AP参照関係テーブル初期化手段9は、AP参照関係定義ファイル8の情報をAP参照関係テーブル11に展開する。
【0035】
AP参照関係テーブル11は、AP参照関係定義ファイル8に定義された情報に加えて、被参照情報をテーブル内に持つ。
【0036】
図4は、AP参照関係テーブル11の構造を示す図である。記入されている値は、図2に例として示した片方向の参照関係を持つようなプロセス1についての値である。
【0037】
AP参照関係テーブル更新手段10は、AP参照関係定義ファイル8が更新された場合、AP参照関係テーブル11の情報を更新する。AP参照関係テーブル更新手段10は、実行されると、各プロセスのAP更新手段5を呼び出す。
【0038】
APロード状態管理テーブル6は、AP参照関係テーブル11の情報のうち、各プロセスに関連する情報に加え、各APのロード状態と、未解決AP数という項目を持つテーブルである。未解決AP数には、各APをロード/アンロードするために、ロード/アンロードする必要があるAP数が格納されている。
【0039】
図5は、APロード状態管理テーブル6の構造を示す図である。記入されている値は、図2に例として示した片方向の参照関係を持つようなプロセス1についての値である。また、図5のAPロード状態管理テーブル6のロード状態および未解決AP数については、プロセス起動後APが1つもロードされていない状態での値を示した。
【0040】
APロード状態管理テーブル初期化手段2は、各プロセスのプロセス初期化処理3から呼び出されると、APロード状態管理テーブル6を作成する。
【0041】
APロード手段4は、APのロード順をAPロード/アンロード順制御手段7に問い合わせ、指示されたAPをAP格納ファイル1からロードする。
【0042】
AP更新手段5は、AP参照関係テーブル更新手段10が実行されると呼び出され、APロード状態管理テーブル6を更新する。
【0043】
APロード/アンロード順制御手段7は、AP参照関係テーブル11の情報を基に各APの片方向の参照関係を把握し、起動時は被参照APから順にロードされるように、終了時は参照APから順にアンロードされるようにAPのロード/アンロードの順番を制御する。
【0044】
図6を参照すると、AP参照関係テーブル11の初期化処理は、AP参照関係定義ファイル読み込みステップS101と、AP参照関係テーブル作成ステップS102とからなる。
【0045】
図7を参照すると、各プロセスの起動時の処理は、AP参照関係テーブル参照ステップS201と、APロード状態管理テーブル作成ステップS202と、APロード手段呼び出しステップS203と、APロード順問い合わせステップS204と、ロードAP指示ステップS205と、指示APロードステップS206と、AP有無判定ステップS207とからなる。
【0046】
図8を参照すると、AP動的置換処理は、AP参照関係テーブル更新ステップS301と、更新要求ステップS302と、APロード状態管理テーブル更新ステップS303と、アンロードAP問い合わせステップS304と、アンロードAP指示ステップS305と、APアンロードステップS306と、AP有無判定ステップS307と、APロード順問い合わせステップS308と、ロードAP指示ステップS309と、指示APロードステップS310と、AP有無判定ステップS311とからなる。
【0047】
次に、このように構成された第1の実施の形態に係るアプリケーションプログラム動的置換方式の動作について、図1ないし図8を参照しながら説明する。
【0048】
図1をもとに、片方向の参照関係のあるAPのロード,更新,およびアンロードの流れを説明する。
【0049】
[テーブル初期化処理]
まず、各プロセスが共通で参照するAP参照関係テーブル11の初期化処理について説明する。
【0050】
(a) AP参照関係テーブル初期化手段9は、AP参照関係定義ファイル8の情報を読み込む(ステップS101)。
【0051】
(b) AP参照関係テーブル初期化手段9は、その情報にAPに対する被参照情報を加えてAP参照関係テーブル11を作成する(ステップS102)。
【0052】
[ロード処理]
次に、各プロセスの起動時のロード処理について説明する。
【0053】
(c) 各プロセスのプロセス初期化処理3から呼び出されると、APロード状態管理テーブル初期化手段2は、AP参照関係テーブル11を参照し、自プロセスに関連する情報を検索する(ステップS201)。
【0054】
(d) 検索結果から、APロード状態管理テーブル初期化手段2は、自プロセスの情報をAPロード状態管理テーブル6に展開し、各APのロード状態を全てOFF、未解決AP数に各APの参照AP数を設定して、APロード状態管理テーブル6を作成する(ステップS202)。
【0055】
(e) 引き続き、プロセス初期化処理3は、APロード手段4を呼び出す(ステップS203)。
【0056】
(f) APロード手段4は、APのロード順をAPロード/アンロード順制御手段7に問い合わせ(ステップS204)、APロード/アンロード順制御手段7は、APロード状態管理テーブル6を参照してロードするAPを指示する(ステップS205)。このとき、APロード/アンロード順制御手段7は、APロード状態管理テーブル6のロード状態および未解決AP数を随時更新する。
【0057】
(g) APロード手段4は、指示されたAPをAP格納ファイル1からロードする(ステップS206)。
【0058】
(h) APロード手段4は、(f)および(g)をロードするAPがなくなるまで繰り返す(ステップS207)。
【0059】
[AP動的置換処理]
次に、APの動的置換処理について説明する。
【0060】
(i) AP参照関係テーブル更新手段10は、置換後の情報に更新されたAP参照関係定義ファイル8を読み込み、AP参照関係テーブル11を更新する(ステップS301)。
【0061】
(j) AP参照関係テーブル11の更新が終了したならば、AP参照関係テーブル更新手段10は、起動しているプロセスのAP更新手段5に対して更新要求する(ステップS302)。
【0062】
(k) AP更新手段5は、更新要求を受けると、更新されたAP参照関係テーブル11の情報を元にAPロード状態管理テーブル6を更新する(ステップS303)。
【0063】
(l) APロード状態管理テーブル6の更新後、AP更新手段5は、アンロードの必要なAPをAPロード/アンロード順制御手段7に対して問い合わせる(ステップS304)。
【0064】
(m) APロード/アンロード順制御手段7は、更新のあったAP,およびそのAPを参照しているAPの情報を元にアンロードすべきAPをアンロード順にAP更新手段5に対して指示する(ステップS305)。
【0065】
(n) AP更新手段5は、指示されたAPをアンロードする(ステップS306)。
【0066】
(o) AP更新手段5は、(m)および(n)をアンロードするAPがなくなるまで繰り返す(ステップS307)。
【0067】
(p) AP更新手段5は、更新後のAPのロード順をAPロード/アンロード順制御手段7に問い合わせ(ステップS308)、APロード/アンロード順制御手段7は、APロード状態管理テーブル6を参照してロードするAPを指示する(ステップS309)。このとき、APロード/アンロード順制御手段7は、APロード状態管理テーブル6のロード状態および未解決AP数を随時更新する。
【0068】
(q) AP更新手段5は、指示されたAPをAP格納ファイル1からロードする(ステップS310)。
【0069】
(r) AP更新手段5は、(p)および(q)をロードするAPがなくなるまで繰り返す(ステップS311)。
【0070】
ここで、APロード/アンロード順制御手段7のロード処理およびAP動的置換処理での動作を、図5および図9ないし図12に示すAPロード状態管理テーブル6の内容例を用いてより具体的に説明する。
【0071】
[ロード処理]
(1) 図5に示すように、APロード状態管理テーブル6のロード状態を全てOFF、未解決AP数に各APが参照しているAPの数を設定する。
【0072】
(2) ロード状態がOFFのAPの未解決AP数を定義順に参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす処理を実行する。
【0073】
(3) 一巡したときの状態を、図9に示す(AP1, AP9がロードされ、AP7, AP8がロード可能状態になっている)。
【0074】
(4) (2)の処理を、全てのAPのロード状態がONになるまで繰り返す。
【0075】
(5) ロード状態がONにならないAPが存在する場合、相互参照があるものと判断し、エラーで終了する。
【0076】
[AP動的置換処理]
AP8を置換したい場合の処理を、以下に示す。
【0077】
(1) AP8のロード状態をアンロード予定(以下、TO−OFFと記述)に変更する。
【0078】
(2) AP8の未解決AP数に被参照APの数(ここではAP5,AP6なので2)を設定する。
【0079】
(3) 被参照APのAP5, AP6について、ロード状態をTO−OFFに変更する。
【0080】
(4) (2)と同様に未解決AP数に被参照AP数を設定し、被参照APに設定されていたAPのロード状態をTO−OFFに変更する。
【0081】
(5) 被参照APがなくなるまで繰り返す(図10は、この処理が終了した状態のAPロード状態管理テーブル6)。
【0082】
(6) ロード状態がTO−OFFのAPについて、未解決AP数を参照し、値が0の場合に、APをアンロードし、ロード状態をOFFにし、そのAPが参照しているAPのうち、ロード状態がTO−OFFのAPの未解決AP数を1減らす処理を実行する。
【0083】
(7) 一巡したときの状態を図11に示す(AP2, AP3がアンロードされ、AP5, AP6がアンロード可能状態になっている)。
【0084】
(8) (6)の処理をAPのロード状態がTO−OFFのAPがなくなるまで繰り返す。
【0085】
(9) アンロードが終了したならば、APのロード状態がOFFのAPについて、参照しているAPのうち、ロード状態がOFFのAP数を未解決AP数に設定する(図12は、この処理が終了した状態のAPロード状態管理テーブル6)。
【0086】
(10) ロード状態がOFFのAPの未解決AP数を参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす処理を実行する。
【0087】
(11) (10)の処理を、全てのAPのロード状態がONになるまで繰り返す。
【0088】
【発明の効果】
本発明によれば、以下のような効果が得られる。
【0089】
第1の効果は、プロセスにリンクされるAPを定義する際に、ロードされる順番を意識せずに定義できることである。その理由は、AP参照関係テーブルに、ロードされる順番ではなしに、各プロセスにリンクするAPの片方向の参照関係を定義するからである。
【0090】
第2の効果は、ユーザがAPを変更・置換する際に、変更したAP以外で置換すべきAPを検証する作業をなくすことができることである。その理由は、AP参照関係テーブルが更新されると、APロード/アンロード順制御手段が、AP参照関係テーブルの情報を基に各APの片方向の参照関係を把握し、起動時は被参照APから順にロードされるように、終了時は参照APから順にアンロードされるようにAPのロード/アンロードの順番を制御するからである。
【0091】
第3の効果は、全てのAPを置換するのではなく、必要なAPのみを置換することで置換にかかる時間を短縮できることである。その理由は、APロード/アンロード順制御手段が、AP間に片方向の参照関係があるAP群のうちの、あるAPを置換する際に、このAPのアンロードに必要なAPのアンロード/ロードのみを行うように制御するからである。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態に係るアプリケーションプログラム動的置換方式の構成を示すブロック図である。
【図2】プロセスにリンクする片方向の参照関係があるAP群の一例を示す図である。
【図3】図1中のAP参照関係定義ファイルの構造を示す図である。
【図4】図1中のAP参照関係テーブルの構造を示す図である。
【図5】図1中のAPロード状態管理テーブル(プロセス起動時、ロード前)の内容を示す図である。
【図6】第1の実施の形態に係るアプリケーションプログラム動的置換方式におけるAP参照関係テーブルの初期化処理を示すフローチャートである。
【図7】第1の実施の形態に係るアプリケーションプログラム動的置換方式における各プロセスの起動時の処理を示すフローチャートである。
【図8】第1の実施の形態に係るアプリケーションプログラム動的置換方式におけるAPの動的置換処理を示すフローチャートである。
【図9】図1中のAPロード状態管理テーブル(プロセス起動時、ロード一巡終了後)の内容を示す図である。
【図10】図1中のAPロード状態管理テーブル(AP動的置換時、アンロード前)の内容を示す図である。
【図11】図1中のAPロード状態管理テーブル(AP動的置換時、アンロード一巡終了後)の内容を示す図である。
【図12】図1中のAPロード状態管理テーブル(AP動的置換時、アンロード後、ロード前)の内容を示す図である。
【符号の説明】
1 AP格納ファイル
2 APロード状態管理テーブル初期化手段
3 プロセス初期化処理
4 APロード手段
5 AP更新手段
6 APロード状態管理テーブル
7 APロード/アンロード順制御手段
8 AP参照関係定義ファイル
9 AP参照関係テーブル初期化手段
10 AP参照関係テーブル更新手段
11 AP参照関係テーブル
S101 AP参照関係定義ファイル読み込みステップ
S102 AP参照関係テーブル作成ステップ
S201 AP参照関係テーブル参照ステップ
S202 APロード状態管理テーブル作成ステップ
S203 APロード手段呼び出しステップ
S204 APロード順問い合わせステップ
S205 ロードAP指示ステップ
S206 指示APロードステップ
S207 AP有無判定ステップ
S301 AP参照関係テーブル更新ステップ
S302 更新要求ステップ
S303 APロード状態管理テーブル更新ステップ
S304 アンロードAP問い合わせステップ
S305 アンロードAP指示ステップ
S306 APアンロードステップ
S307 AP有無判定ステップ
S308 APロード順問い合わせステップ
S309 ロードAP指示ステップ
S310 指示APロードステップ
S311 AP有無判定ステップ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an application program dynamic replacement method and method, and more particularly, to an application program dynamic replacement method and method in a system in which there is a one-way reference relationship between APs linking processes.
[0002]
[Prior art]
In a system that operates for 24 hours, it is necessary to replace an application program (hereinafter abbreviated as AP) without stopping business.
[0003]
Although a dynamic replacement method of an application program for realizing such a function has been already announced (for example, see Patent Document 1), the following control is performed there.
[0004]
Invoking the process loads the APs subject to dynamic replacement in a defined order.
[0005]
Termination of the process unloads the AP in the reverse order that it was loaded at startup.
[0006]
When dynamically replacing APs, only the designated APs are unloaded in the reverse order of the order in which they were loaded, and loaded again in the order of definition, or all APs are unloaded and reloaded. .
[0007]
[Patent Document 1]
JP-A-08-185318 (page 5-6, FIG. 1)
[0008]
[Problems to be solved by the invention]
According to the above-described conventional technology, in a large-scale system, the number of APs linked to individual tasks also increases, so the possibility that a reference relationship occurs between APs increases. , APs need to be loaded in order from the referenced AP, and unloading needs to be performed in order from the reference AP, causing the following problems in terms of maintainability and performance.
[0009]
The first problem is that the user needs to consider the order of loading and define the APs in that order.
[0010]
The second problem is that when it is desired to dynamically change some of the modified APs, the reference relation of the APs is not defined. It is necessary to define an AP to execute, but there is a problem in maintainability in a large-scale system in which the number of APs is large.
[0011]
The third problem is that when the above operation is to be omitted, there is a method of unloading and reloading all the APs unconditionally. However, in a large-scale system in which the number of APs is large, load / unload is performed. , And there is a problem in performance.
[0012]
For this reason, a technique for improving the maintainability of a system in which there is a reference relationship between APs and reducing the time required for replacement is required.
[0013]
An object of the present invention is to provide an application program dynamic replacement method and method for improving maintainability and performance of dynamic replacement of an AP when there is a one-way reference relationship between APs linked to a process.
[0014]
[Means for Solving the Problems]
According to the application program dynamic replacement method of the present invention, in a system having a one-way reference relationship between APs linking processes, an AP reference relationship table defining a one-way reference relationship of APs linking each process, Based on the information of the AP reference relation table, the one-way reference relation of each AP is grasped, and the APs are loaded so as to be sequentially loaded from the referenced AP at the time of activation and unloaded sequentially from the reference AP at the time of termination. AP load / unload order control means for controlling the load / unload order.
[0015]
In addition, the application program dynamic replacement method of the present invention, when replacing a certain AP in an AP group having a one-way reference relationship between APs, unloads / reloads the AP required to unload the AP. It is characterized in that only loading is performed.
[0016]
Further, the application program dynamic replacement method of the present invention provides a system in which there is a one-way reference relationship between APs linked to processes, an AP storage file in which all APs are stored, and a dynamic link to each process. An AP reference relation definition file storing an AP name to be referred to and an AP name referred to by the AP, and an AP reference relation table having referred information in the table in addition to the information defined in the AP reference relation definition file. Out of the information of the AP reference relation table, an AP load state management table having a load state of each AP and the number of unresolved APs, and information of the AP reference relation definition file. AP reference relation table initialization means for expanding the reference relation table, and the AP reference relation definition file is updated. An AP reference relation table updating means for updating information of the AP reference relation table, an AP load state management table initialization means which is called from a process initialization process of a process and creates the AP load state management table, Based on the information of the AP reference relation table, the one-way reference relation of each AP is grasped, and the APs are loaded so as to be sequentially loaded from the referenced AP at the time of activation and unloaded sequentially from the reference AP at the time of termination. AP load / unload order control means for controlling the load / unload order, and the AP load / unload order control means, which is called from the process initialization process of the process and inquires about the AP load order, Is loaded from the AP storage file, and the AP reference relation table updating means is executed. The AP load state management table is updated, and after the AP load state management table is updated, an AP that needs to be unloaded is inquired to the AP load / unload order control means, and the AP load / unload order control is performed. Unloads the AP specified by the means, inquires the AP load / unload order control means of the updated load order of the APs, and stores the AP specified by the AP load / unload order control means in the AP storage file. And an AP updating means for loading from an AP.
[0017]
Still further, in the dynamic application program replacing method according to the present invention, the AP load / unload order control means changes the load state of the AP to the unload schedule, and adds the number of referenced APs to the number of unresolved APs. Setting, changing the load state of the referenced AP to the unload schedule, setting the number of referenced APs to the number of unresolved APs, changing the load state of the AP set as the referenced AP to the unload schedule, Repeat until the referenced AP is exhausted, refer to the number of unresolved APs for the AP whose loading status is scheduled to be unloaded. If the value is 0, unload the AP, turn off the loading status, and refer to that AP. Of the APs, the number of unresolved APs of the APs whose loading status is to be unloaded is reduced by 1, and the loading status of the APs is repeated until there are no more APs whose loading status is to be unloaded. Is completed, the number of APs whose load state is OFF is set to the number of unresolved APs among the referenced APs for the APs whose load state is OFF, and the unresolved APs of the APs whose load state is OFF are set. Referring to the number, if the value is 0, the AP is loaded, the load state is turned on, the number of unresolved APs of the AP referencing the AP is reduced by 1, and the load state of all APs is turned on. It is characterized by repeating until
[0018]
On the other hand, according to the application program dynamic replacement method of the present invention, in the application program replacement method of a system in which there is a one-way reference relationship between the APs linked to the process, the AP reference relationship table updating means updates the information after replacement. Updating the AP reference relation table by reading the AP reference relation definition file, and updating the AP reference relation table by updating the AP reference relation table of the running process after the update of the AP reference relation table is completed. Requesting; updating the AP load state management table based on the information of the AP reference relation table updated when the update request is received; and updating the AP load state management table After updating the AP, query the AP that needs to be unloaded to the AP load / unload order control means. Matching step, and the AP load / unload order control means instructs the AP update means to unload the AP to be unloaded based on the information of the updated AP and the AP referring to the AP. The AP updating means unloading the designated AP; the AP updating means inquiring the AP loading / unloading order controlling means about the updated loading order of the APs; and AP loading / unloading. A step in which the load order control means designates an AP to be loaded and updates the load state and the number of unresolved APs in the AP load state management table; and a step in which the AP update means loads the designated AP from the AP storage file. It is characterized by including.
[0019]
Also, in the application program dynamic replacement method of the present invention, in the application program replacement method of a system in which there is a one-way reference relationship between the APs linked to the process, the AP reference relationship table initializing means includes: An AP reference relation table initialization process including a step of reading information, an AP reference relation table initializing unit adding the referred information to the AP to the information, and creating an AP reference relation table; The management table initialization means refers to the AP reference relation table when it is called from the process initialization processing of each process, searches for information related to the own process, and manages the information of the own process from the search result to the AP load state management. Expand to a table, set the load status of each AP to OFF, and set the number of unresolved APs to A Creating the AP load state management table by setting the number of reference APs, and calling the AP loading means in the process initialization processing, and the AP loading means changing the loading order of the APs to the AP loading / unloading order. The step of inquiring the control means, the step of loading / unloading the AP instructing the AP to load, and the step of updating the load state and the number of unresolved APs in the AP load state management table, and the step of loading the AP are instructed. At the start of each process including the step of loading the updated AP from the AP storage file, and the AP reference relation table updating means reads the AP reference relation definition file updated with the replaced information and reads the AP reference relation table. And updating the AP reference relation table by the AP reference relation table updating means after the update of the AP reference relation table is completed. Requesting an update to the AP update means of the application, updating the AP load state management table based on information of the AP reference relation table updated when the update request is received, A step of inquiring the AP load / unload order control means of an AP which needs to be unloaded after updating the AP load state management table; , And instructing the AP updating means in the unloading order the AP to be unloaded based on the information of the AP referencing the AP, and the AP updating means unloading the designated AP. The AP updating means inquiring of the AP loading / unloading order controlling means about the updated loading order of the APs; AP dynamic replacement processing including a step of instructing an AP to perform and updating the load state and the number of unresolved APs in the AP load state management table, and a step in which the AP updating means loads the designated AP from an AP storage file. And characterized by the following.
[0020]
Further, in the application program dynamic replacement method of the present invention, in the application program replacement method of a system in which there is a one-way reference relationship between the APs linked to the process, the step of changing the load state of the AP to the unload schedule is provided; Setting the number of referenced APs to the number of unresolved APs; changing the load state of the referenced APs to unload schedule; setting the number of referenced APs to the number of unresolved APs; Changing the load state of the set AP to the unload schedule, repeating the process until there are no more referenced APs, and referring to the number of unresolved APs for the AP whose load state is scheduled to be unloaded, and setting the value to 0 In this case, the AP is unloaded, the load state is turned off, and among the APs referred to by the AP, the load state is A which is to be unloaded. Reducing the number of unresolved APs by one, repeating the above steps until there are no more APs to be unloaded, and, when the unloading is completed, refer to the APs whose AP loading state is OFF. Setting the number of APs whose loading state is OFF to the number of unresolved APs, and referring to the number of unresolved APs of the APs whose loading state is OFF and loading the AP when the value is 0, Setting the load state to ON and reducing the number of unresolved APs of the APs referring to the AP by one, and repeating the above steps until the load states of all the APs are ON. I do.
[0021]
Still further, the application program dynamic replacement method of the present invention is the application program replacement method of a system in which there is a one-way reference relationship between APs linked to a process. Setting the number of APs referred to by each AP as the number of APs, and referring to the number of unresolved APs of the APs whose loading state is OFF, in the order of definition, and loading the AP if the value is 0, Is turned on, the number of unresolved APs of the APs referencing the AP is reduced by 1, a step of repeating the above steps until the load states of all the APs are turned on, If there is, the load process including the process of judging that there is a cross reference and ending with an error, and change the load status of the AP to unload schedule Setting the number of referenced APs to the number of unresolved APs of the AP, changing the load state of the referenced AP to unload schedule, and setting the number of referenced APs to the number of unresolved APs Changing the load state of the AP set as the referenced AP to the unload schedule, repeating the process until there are no more referenced APs, and referring to the number of unresolved APs for the AP whose load status is scheduled to be unloaded. , When the value is 0, unloading the AP, turning off the load state, and reducing the number of unresolved APs of the APs whose load state is to be unloaded among the APs referred to by the AP by 1, Repeating the above steps until the AP loading state is exhausted until there are no APs scheduled to be unloaded, and, when the unloading is completed, the APs whose AP loading state is OFF are referred to the AP Setting the number of APs whose load state is OFF to the number of unresolved APs, and referring to the number of unresolved APs of the APs whose load state is OFF, if the value is 0, load the AP and turn the load state ON. And an AP dynamic replacement process that includes a step of reducing the number of unresolved APs of APs referencing the AP by one, and a step of repeating the above steps until the load state of all APs is turned ON. Features.
[0022]
The present invention provides a means for improving the maintainability and performance of dynamic replacement of an AP when there is a one-way reference relationship between APs linked to a process. An AP reference relation table defining a one-way reference relation of an AP linked to each process, and an AP load / unload means for controlling an AP load / unload order based on the information.
[0023]
The means for initializing the one-way reference relationship of the AP (hereinafter referred to as AP reference relationship initialization means) is a file defining the one-way reference relationship of the AP (hereinafter referred to as an AP reference relationship definition file). An AP reference relation table is created based on the
[0024]
When each process is started, an AP reference relation table is referred to, and the order is controlled so that loading is performed after all the APs referred to by each AP are loaded.
[0025]
At the time of dynamic replacement of the APs, the order is controlled so that the APs referencing the APs to be replaced are unloaded in the order of reference and reloaded in the order of reference.
[0026]
At the end of each process, the order is controlled so that the AP is referred to the AP reference relation table and unloaded after all the APs referencing each AP are unloaded.
[0027]
In this way, the maintainability and performance of dynamic replacement of an AP when there is a one-way reference relationship between the APs are improved.
[0028]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0029]
FIG. 1 is a block diagram showing a configuration of an application program dynamic replacement system according to the first embodiment of the present invention. The application program dynamic replacement method according to the present embodiment includes an AP storage file 1, an AP load state management table initializing unit 2, a process initializing process 3, an AP loading unit 4, an AP updating unit 5, AP load state management table 6, AP load / unload order control means 7, AP reference relation definition file 8, AP reference relation table initialization means 9, AP reference relation table update means 10, AP reference relation table 11 constitutes the main part. The AP load state management table initialization means 2, the process initialization processing 3, the AP load means 4, the AP update means 5, the AP load state management table 6, and the AP load / unload order control means 7 are included in the process. It is.
[0030]
The AP storage file 1 stores all the APs referred to by the AP loading means 4 and the AP updating means 5, and the designated AP is loaded.
[0031]
FIG. 2 is a diagram illustrating an example of an AP group having a one-way reference relationship linked to a process. In this example, it is assumed that a nine-way AP1 to AP9 linked to the process 1 has a one-way reference relationship as illustrated.
[0032]
The AP reference relationship definition file 8 stores an AP name dynamically linked to each process and an AP name referred to by the AP.
[0033]
FIG. 3 is a diagram showing the structure of the AP reference relationship definition file 8. The values entered are for the process 1 having a one-way reference relationship shown as an example in FIG.
[0034]
The AP reference relation table initialization means 9 expands the information of the AP reference relation definition file 8 into the AP reference relation table 11.
[0035]
The AP reference relation table 11 has referred information in the table in addition to the information defined in the AP reference relation definition file 8.
[0036]
FIG. 4 is a diagram showing the structure of the AP reference relation table 11. The values entered are for the process 1 having a one-way reference relationship shown as an example in FIG.
[0037]
The AP reference relation table updating means 10 updates information of the AP reference relation table 11 when the AP reference relation definition file 8 is updated. When executed, the AP reference relation table updating means 10 calls the AP updating means 5 of each process.
[0038]
The AP load status management table 6 is a table having information on the load status of each AP and the number of unresolved APs in addition to the information related to each process in the information of the AP reference relationship table 11. The number of unresolved APs stores the number of APs that need to be loaded / unloaded in order to load / unload each AP.
[0039]
FIG. 5 is a diagram showing the structure of the AP load status management table 6. The values entered are for the process 1 having a one-way reference relationship shown as an example in FIG. The values of the load state and the number of unresolved APs in the AP load state management table 6 in FIG. 5 are values in a state where no AP is loaded after the process is started.
[0040]
When called from the process initialization process 3 of each process, the AP load state management table initialization means 2 creates an AP load state management table 6.
[0041]
The AP loading means 4 inquires of the AP loading / unloading order controlling means 7 about the loading order of the APs, and loads the designated AP from the AP storage file 1.
[0042]
The AP updating means 5 is called when the AP reference relation table updating means 10 is executed, and updates the AP load state management table 6.
[0043]
The AP load / unload order control means 7 grasps the one-way reference relation of each AP based on the information of the AP reference relation table 11, so that the AP is loaded sequentially from the referenced AP at the time of activation, The load / unload order of the AP is controlled so that the AP is unloaded in order from the reference AP.
[0044]
Referring to FIG. 6, the initialization processing of the AP reference relation table 11 includes an AP reference relation definition file reading step S101 and an AP reference relation table creation step S102.
[0045]
Referring to FIG. 7, the process at the time of starting each process includes an AP reference relation table reference step S201, an AP load state management table creation step S202, an AP load means calling step S203, an AP load order inquiry step S204, It comprises a load AP instruction step S205, an instruction AP load step S206, and an AP presence / absence determination step S207.
[0046]
Referring to FIG. 8, the AP dynamic replacement process includes an AP reference relation table update step S301, an update request step S302, an AP load state management table update step S303, an unload AP inquiry step S304, and an unload AP instruction. It comprises a step S305, an AP unloading step S306, an AP presence / absence determination step S307, an AP load order inquiry step S308, a load AP instruction step S309, an instruction AP load step S310, and an AP presence / absence determination step S311.
[0047]
Next, the operation of the application program dynamic replacement method according to the first embodiment configured as described above will be described with reference to FIGS.
[0048]
The flow of loading, updating, and unloading of APs having a unidirectional reference relationship will be described with reference to FIG.
[0049]
[Table initialization processing]
First, an initialization process of the AP reference relation table 11 that is commonly referred to by each process will be described.
[0050]
(A) The AP reference relation table initialization means 9 reads information of the AP reference relation definition file 8 (step S101).
[0051]
(B) The AP reference relation table initializing means 9 creates the AP reference relation table 11 by adding the referred information for the AP to the information (step S102).
[0052]
[Load processing]
Next, the loading process at the time of starting each process will be described.
[0053]
(C) When called from the process initialization process 3 of each process, the AP load state management table initialization means 2 refers to the AP reference relation table 11 and searches for information related to its own process (step S201).
[0054]
(D) From the search result, the AP load status management table initialization means 2 expands the information of its own process in the AP load status management table 6, turns off the load status of each AP, and sets each AP to the number of unresolved APs. The number of reference APs is set, and the AP load status management table 6 is created (step S202).
[0055]
(E) Subsequently, the process initialization processing 3 calls the AP loading means 4 (step S203).
[0056]
(F) The AP loading means 4 inquires of the AP loading / unloading order controlling means 7 about the loading order of the APs (step S204), and the AP loading / unloading order controlling means 7 refers to the AP loading state management table 6. And the AP to be loaded (step S205). At this time, the AP load / unload order control means 7 updates the load status and the number of unresolved APs in the AP load status management table 6 as needed.
[0057]
(G) The AP loading means 4 loads the designated AP from the AP storage file 1 (Step S206).
[0058]
(H) The AP loading means 4 repeats until there are no more APs to load (f) and (g) (step S207).
[0059]
[AP dynamic replacement processing]
Next, the dynamic replacement process of the AP will be described.
[0060]
(I) The AP reference relationship table updating means 10 reads the updated AP reference relationship definition file 8 with the replaced information, and updates the AP reference relationship table 11 (step S301).
[0061]
(J) When the update of the AP reference relationship table 11 has been completed, the AP reference relationship table update means 10 requests an update to the AP update means 5 of the running process (step S302).
[0062]
(K) Upon receiving the update request, the AP update unit 5 updates the AP load status management table 6 based on the updated information of the AP reference relationship table 11 (Step S303).
[0063]
(L) After updating the AP load state management table 6, the AP updating means 5 inquires the AP loading / unloading order controlling means 7 of an AP that needs to be unloaded (step S304).
[0064]
(M) The AP loading / unloading order control means 7 sends the AP to be unloaded to the AP updating means 5 in the unloading order based on the information of the updated AP and the AP referencing the AP. An instruction is given (step S305).
[0065]
(N) The AP updating unit 5 unloads the specified AP (Step S306).
[0066]
(O) The AP updating unit 5 repeats (m) and (n) until there is no AP to unload (step S307).
[0067]
(P) The AP updating means 5 inquires of the AP loading / unloading order controlling means 7 about the loading order of the updated APs (step S308), and the AP loading / unloading order controlling means 7 sends the AP loading state management table 6 , And instruct an AP to be loaded (step S309). At this time, the AP load / unload order control means 7 updates the load status and the number of unresolved APs in the AP load status management table 6 as needed.
[0068]
(Q) The AP updating unit 5 loads the designated AP from the AP storage file 1 (Step S310).
[0069]
(R) The AP updating means 5 repeats until there are no more APs to load (p) and (q) (step S311).
[0070]
Here, the operations in the loading process and the AP dynamic replacement process of the AP load / unload order control means 7 will be more specifically described using the contents example of the AP load state management table 6 shown in FIGS. 5 and 9 to 12. Will be explained.
[0071]
[Load processing]
(1) As shown in FIG. 5, all load states of the AP load state management table 6 are set to OFF, and the number of APs referred to by each AP is set to the number of unresolved APs.
[0072]
(2) The number of unresolved APs of the APs whose load status is OFF is referred to in the order of definition. If the value is 0, the AP is loaded, the load status is turned ON, and the unresolved APs of the APs referencing the AP are loaded. A process for reducing the number by 1 is executed.
[0073]
(3) FIG. 9 shows a state after one cycle (AP1 and AP9 are loaded, and AP7 and AP8 are in a loadable state).
[0074]
(4) The process of (2) is repeated until the load status of all APs is turned on.
[0075]
(5) If there is an AP whose load state does not turn ON, it is determined that there is a cross reference, and the processing ends with an error.
[0076]
[AP dynamic replacement processing]
The process for replacing AP8 is described below.
[0077]
(1) Change the load state of the AP 8 to the unload schedule (hereinafter, described as TO-OFF).
[0078]
(2) The number of unreferenced APs of AP8 is set to the number of referenced APs (here, AP5, AP6, 2).
[0079]
(3) Change the load state of the referenced APs AP5 and AP6 to TO-OFF.
[0080]
(4) As in (2), the number of unreferenced APs is set to the number of referenced APs, and the load state of the AP set as the referenced AP is changed to TO-OFF.
[0081]
(5) Repeat until there are no more referenced APs (FIG. 10 shows the AP load status management table 6 in a state where this process is completed).
[0082]
(6) For APs whose load state is TO-OFF, refer to the number of unresolved APs, and if the value is 0, unload the AP, turn off the load state, and select the APs that the AP refers to. , The number of unresolved APs in the load state of the TO-OFF AP is reduced by one.
[0083]
(7) FIG. 11 shows a state after one cycle (AP2 and AP3 are unloaded, and AP5 and AP6 are in an unloadable state).
[0084]
(8) The process of (6) is repeated until there are no more APs whose load state of the AP is TO-OFF.
[0085]
(9) When the unloading is completed, the number of APs whose load state is OFF among the referenced APs is set as the number of unresolved APs for the APs whose load state of the AP is OFF (FIG. An AP load state management table 6 in a state where the processing is completed 6).
[0086]
(10) Referring to the number of unresolved APs of the APs whose load state is OFF, if the value is 0, the AP is loaded, the load state is turned ON, and the number of unresolved APs of the APs referencing the AP is calculated. Execute the process of reducing by one.
[0087]
(11) The process of (10) is repeated until the load status of all APs is turned on.
[0088]
【The invention's effect】
According to the present invention, the following effects can be obtained.
[0089]
The first effect is that when defining an AP linked to a process, the AP can be defined without being aware of the loading order. The reason is that the AP reference relation table defines a one-way reference relation of the AP linked to each process instead of the order of loading.
[0090]
A second effect is that when a user changes / replaces an AP, it is possible to eliminate the work of verifying an AP to be replaced by an AP other than the changed AP. The reason is that, when the AP reference relation table is updated, the AP load / unload order control means grasps the one-way reference relation of each AP based on the information of the AP reference relation table, and at the time of startup, the AP is referred to. This is because the loading / unloading order of the AP is controlled so that the loading is performed sequentially from the AP, and the loading is unloaded sequentially from the reference AP at the end.
[0091]
A third effect is that the time required for replacement can be reduced by replacing only necessary APs instead of replacing all APs. The reason is that when the AP loading / unloading order control means replaces a certain AP in an AP group having a one-way reference relationship between the APs, the AP unloading required for unloading the AP is performed. This is because control is performed so as to perform only / load.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an application program dynamic replacement system according to a first embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of an AP group having a unidirectional reference relationship linked to a process;
FIG. 3 is a diagram showing a structure of an AP reference relationship definition file in FIG. 1;
FIG. 4 is a diagram showing a structure of an AP reference relation table in FIG. 1;
FIG. 5 is a diagram showing the contents of an AP load state management table (at the time of process startup, before loading) in FIG. 1;
FIG. 6 is a flowchart showing an initialization process of an AP reference relation table in the dynamic replacement of application programs according to the first embodiment;
FIG. 7 is a flowchart showing a process at the time of starting each process in the application program dynamic replacement method according to the first embodiment.
FIG. 8 is a flowchart showing a dynamic AP replacement process in the application program dynamic replacement method according to the first embodiment;
FIG. 9 is a diagram showing the contents of an AP load state management table (at the time of starting a process and after the end of a load cycle) in FIG. 1;
FIG. 10 is a diagram showing the contents of an AP load status management table (at the time of AP dynamic replacement and before unloading) in FIG. 1;
11 is a diagram showing the contents of an AP load status management table (at the time of AP dynamic replacement and after one round of unloading) in FIG. 1;
12 is a diagram showing the contents of an AP load status management table (at the time of dynamic AP replacement, after unloading, and before loading) in FIG. 1;
[Explanation of symbols]
1 AP storage file
2 AP load state management table initialization means
3 Process initialization processing
4 AP loading means
5 AP update means
6 AP load status management table
7 AP load / unload order control means
8 AP reference relation definition file
9 AP reference relation table initialization means
10 AP reference relation table updating means
11 AP reference relation table
S101 AP reference relation definition file reading step
S102 AP reference relation table creation step
S201 AP reference relation table reference step
S202 AP load state management table creation step
S203 AP load means calling step
S204 AP load order inquiry step
S205 Load AP instruction step
S206 Instruction AP loading step
S207 AP presence / absence determination step
S301 AP reference relation table updating step
S302 Update request step
S303 AP load state management table update step
S304 Unload AP inquiry step
S305 Unload AP instruction step
S306 AP unloading step
S307 AP presence / absence determination step
S308 AP loading order inquiry step
S309 Load AP instruction step
S310 Instruction AP loading step
S311 AP presence / absence determination step

Claims (8)

プロセスにリンクするAP間に片方向の参照関係があるシステムにおいて、
各プロセスにリンクするAPの片方向の参照関係を定義するAP参照関係テーブルと、
このAP参照関係テーブルの情報を基に各APの片方向の参照関係を把握し、起動時は被参照APから順にロードされるように、終了時は参照APから順にアンロードされるようにAPのロード/アンロードの順番を制御するAPロード/アンロード順制御手段と
を備えることを特徴とするアプリケーションプログラム動的置換方式。
In a system where there is a one-way reference relationship between APs linking processes,
An AP reference relation table defining a one-way reference relation of an AP linked to each process;
Based on the information of the AP reference relation table, the one-way reference relation of each AP is grasped, and the AP is loaded so as to be sequentially loaded from the referenced AP at the time of activation and unloaded sequentially from the reference AP at the time of termination. And an AP load / unload order control means for controlling a load / unload order of the application program.
前記APロード/アンロード順制御手段が、AP間に片方向の参照関係があるAP群のうちの、あるAPを置換する際に、このAPのアンロードに必要なAPのアンロード/ロードのみを行うように制御することを特徴とする請求項1記載のアプリケーションプログラム動的置換方式。When the AP load / unload order control means replaces a certain AP in an AP group having a one-way reference relationship between the APs, only the AP unloading / loading necessary for unloading the AP is performed. 2. The application program dynamic replacement method according to claim 1, wherein the application program is controlled to perform the following. プロセスにリンクするAP間に片方向の参照関係があるシステムにおいて、
全てのAPが格納されているAP格納ファイルと、
各プロセスに動的にリンクされるAP名,およびそのAPが参照するAP名を格納するAP参照関係定義ファイルと、
前記AP参照関係定義ファイルに定義された情報に加えて被参照情報をテーブル内に持つAP参照関係テーブルと、
前記AP参照関係テーブルの情報のうち、各プロセスに関連する情報に加え、各APのロード状態および未解決AP数を持つAPロード状態管理テーブルと、
前記AP参照関係定義ファイルの情報を前記AP参照関係テーブルに展開するAP参照関係テーブル初期化手段と、
前記AP参照関係定義ファイルが更新された場合に前記AP参照関係テーブルの情報を更新するAP参照関係テーブル更新手段と、
プロセスのプロセス初期化処理から呼び出され、前記APロード状態管理テーブルを作成するAPロード状態管理テーブル初期化手段と、
前記AP参照関係テーブルの情報を基に各APの片方向の参照関係を把握し、起動時は被参照APから順にロードされるように、終了時は参照APから順にアンロードされるようにAPのロード/アンロードの順番を制御するAPロード/アンロード順制御手段と、
プロセスのプロセス初期化処理から呼び出され、APのロード順を前記APロード/アンロード順制御手段に問い合わせ、指示されたAPを前記AP格納ファイルからロードするAPロード手段と、
前記AP参照関係テーブル更新手段が実行されたときに前記APロード状態管理テーブルを更新し、前記APロード状態管理テーブルの更新後、アンロードの必要なAPを前記APロード/アンロード順制御手段に対して問い合わせ、前記APロード/アンロード順制御手段から指示されたAPをアンロードし、更新後のAPのロード順を前記APロード/アンロード順制御手段に問い合わせ、前記APロード/アンロード順制御手段から指示されたAPを前記AP格納ファイルからロードするAP更新手段と
を有することを特徴とするアプリケーションプログラム動的置換方式。
In a system where there is a one-way reference relationship between APs linking processes,
An AP storage file in which all APs are stored,
An AP reference relation definition file storing an AP name dynamically linked to each process and an AP name referred to by the AP;
An AP reference relation table having, in the table, referred information in addition to the information defined in the AP reference relation definition file;
An AP load state management table having the load state of each AP and the number of unresolved APs, in addition to the information related to each process among the information of the AP reference relation table;
AP reference relation table initializing means for expanding information of the AP reference relation definition file into the AP reference relation table;
AP reference relation table updating means for updating information of the AP reference relation table when the AP reference relation definition file is updated;
AP load state management table initialization means which is called from a process initialization process of a process and creates the AP load state management table;
Based on the information of the AP reference relation table, the one-way reference relation of each AP is grasped, and the AP is loaded so as to be sequentially loaded from the referenced AP at the time of startup, and is unloaded sequentially from the reference AP at the time of termination. Load / unload order control means for controlling the load / unload order of
AP loading means which is called from the process initialization process of the process, inquires the AP loading / unloading order controlling means about the loading order of the APs, and loads the designated AP from the AP storage file;
The AP load state management table is updated when the AP reference relation table update means is executed, and after the update of the AP load state management table, the AP that needs to be unloaded is sent to the AP load / unload order control means. And inquires the AP load / unload order control means for unloading the AP designated by the AP load / unload order control means, and inquires the AP load / unload order control means of the updated AP load order. An application updating means for loading an AP specified by the control means from the AP storage file.
前記APロード/アンロード順制御手段が、APのロード状態をアンロード予定に変更し、APの未解決AP数に被参照APの数を設定し、被参照APについてロード状態をアンロード予定に変更し、未解決AP数に被参照AP数を設定し、被参照APに設定されていたAPのロード状態をアンロード予定に変更し、被参照APがなくなるまで繰り返し、ロード状態がアンロード予定のAPについて、未解決AP数を参照し、値が0の場合に、APをアンロードし、ロード状態をOFFにし、そのAPが参照しているAPのうち、ロード状態がアンロード予定のAPの未解決AP数を1減らし、APのロード状態がアンロード予定のAPがなくなるまで繰り返し、アンロードが終了したならば、APのロード状態がOFFのAPについて、参照しているAPのうち、ロード状態がOFFのAP数を未解決AP数に設定し、ロード状態がOFFのAPの未解決AP数を参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らし、全てのAPのロード状態がONになるまで繰り返すことを特徴とする請求項3記載のアプリケーションプログラム動的置換方式。The AP load / unload order control means changes the load status of the AP to the unload schedule, sets the number of referenced APs to the number of unresolved APs of the AP, and sets the load status of the referenced AP to unload schedule. Change, set the number of referenced APs to the number of unresolved APs, change the load state of the AP set as the referenced AP to the unload schedule, and repeat until there are no more referenced APs. The AP is referred to the number of unresolved APs, and if the value is 0, the AP is unloaded and the load state is turned off, and among the APs referred to by that AP, the AP whose load state is scheduled to be unloaded The number of unresolved APs is reduced by one, and the load state of the AP is repeated until there are no more APs scheduled to be unloaded. Of the APs that have been set, the number of APs whose load state is OFF is set to the number of unresolved APs, and the number of unresolved APs of the APs whose load state is OFF is referred to. 4. The dynamic replacement of application programs according to claim 3, wherein the load state is set to ON, the number of unresolved APs of the APs referring to the AP is reduced by 1, and the processing is repeated until the load states of all the APs are turned ON. method. プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、
AP参照関係テーブル更新手段が、置換後の情報に更新されたAP参照関係定義ファイルを読み込んでAP参照関係テーブルを更新する工程と、
AP参照関係テーブル更新手段が、AP参照関係テーブルの更新が終了後に、起動しているプロセスのAP更新手段に対して更新要求する工程と、
AP更新手段が、更新要求を受けたときに更新されたAP参照関係テーブルの情報を元にAPロード状態管理テーブルを更新する工程と、
AP更新手段が、APロード状態管理テーブルの更新後に、アンロードの必要なAPをAPロード/アンロード順制御手段に対して問い合わせる工程と、
APロード/アンロード順制御手段が、更新のあったAP,および該APを参照しているAPの情報を元にアンロードすべきAPをアンロード順にAP更新手段に対して指示する工程と、
AP更新手段が、指示されたAPをアンロードする工程と、
AP更新手段が、更新後のAPのロード順をAPロード/アンロード順制御手段に問い合わせる工程と、
APロード/アンロード順制御手段が、ロードするAPを指示し、APロード状態管理テーブルのロード状態および未解決AP数を更新する工程と、
AP更新手段が、指示されたAPをAP格納ファイルからロードする工程と
を含むことを特徴とするアプリケーションプログラム動的置換方法。
An application program replacement method for a system in which there is a one-way reference relationship between APs linked to a process,
AP reference relation table updating means for reading the AP reference relation definition file updated with the replaced information and updating the AP reference relation table;
An AP reference relation table updating means for requesting an update to the AP updating means of the running process after the update of the AP reference relation table is completed;
AP updating means for updating an AP load state management table based on information of an AP reference relation table updated when an update request is received;
AP updating means inquiring the AP loading / unloading order controlling means of an AP which needs to be unloaded after updating the AP loading state management table;
AP load / unload order control means instructing the AP update means to unload the APs to be unloaded based on information on the updated AP and the AP referring to the AP;
An AP updating means for unloading the designated AP;
AP update means inquiring the AP load / unload order control means about the updated AP load order;
A step in which the AP load / unload order control means designates an AP to be loaded and updates the load state and the number of unresolved APs in the AP load state management table;
Loading the designated AP from the AP storage file by the AP updating means.
プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、
AP参照関係テーブル初期化手段が、AP参照関係定義ファイルの情報を読み込む工程と、AP参照関係テーブル初期化手段が、その情報にAPに対する被参照情報を加えてAP参照関係テーブルを作成する工程とを含むAP参照関係テーブルの初期化処理と、
APロード状態管理テーブル初期化手段が、各プロセスのプロセス初期化処理から呼び出されたときにAP参照関係テーブルを参照して自プロセスに関連する情報を検索し、検索結果から自プロセスの情報をAPロード状態管理テーブルに展開し、各APのロード状態を全てOFF、未解決AP数に各APの参照AP数を設定して、APロード状態管理テーブルを作成する工程と、プロセス初期化処理が、APロード手段を呼び出す工程と、APロード手段が、APのロード順をAPロード/アンロード順制御手段に問い合わせる工程と、APロード/アンロード順制御手段が、ロードするAPを指示し、APロード状態管理テーブルのロード状態および未解決AP数を更新する工程と、APロード手段が、指示されたAPをAP格納ファイルからロードする工程とを含む各プロセスの起動時の処理と、
AP参照関係テーブル更新手段が、置換後の情報に更新されたAP参照関係定義ファイルを読み込んでAP参照関係テーブルを更新する工程と、AP参照関係テーブル更新手段が、AP参照関係テーブルの更新が終了後に、起動しているプロセスのAP更新手段に対して更新要求する工程と、AP更新手段が、更新要求を受けたときに更新されたAP参照関係テーブルの情報を元にAPロード状態管理テーブルを更新する工程と、AP更新手段が、APロード状態管理テーブルの更新後に、アンロードの必要なAPをAPロード/アンロード順制御手段に対して問い合わせる工程と、APロード/アンロード順制御手段が、更新のあったAP,およびそのAPを参照しているAPの情報を元にアンロードすべきAPをアンロード順にAP更新手段に対して指示する工程と、AP更新手段が、指示されたAPをアンロードする工程と、AP更新手段が、更新後のAPのロード順をAPロード/アンロード順制御手段に問い合わせる工程と、APロード/アンロード順制御手段が、ロードするAPを指示し、APロード状態管理テーブルのロード状態および未解決AP数を更新する工程と、AP更新手段が、指示されたAPをAP格納ファイルからロードする工程とを含むAP動的置換処理と
からなることを特徴とするアプリケーションプログラム動的置換方法。
An application program replacement method for a system in which there is a one-way reference relationship between APs linked to a process,
A step in which the AP reference relation table initializing means reads information of the AP reference relation definition file; a step in which the AP reference relation table initializing means adds the referred information for the AP to the information to create an AP reference relation table; Initialization processing of an AP reference relation table including
The AP load status management table initialization means refers to the AP reference relation table when searching from the process initialization processing of each process to search for information related to the own process, and extracts information of the own process from the search result to the AP. The process of developing the load status management table, setting the load status of each AP to all OFF, setting the number of reference APs of each AP to the number of unresolved APs, and creating an AP load status management table, and the process initialization process include: A step of invoking the AP loading means; a step in which the AP loading means inquires of the AP loading / unloading order controlling means about an loading order of the APs; and a step in which the AP loading / unloading order controlling means instructs an AP to be loaded; Updating the load status and the number of unresolved APs in the status management table; and loading the designated AP into an AP storage file. And processing at the start of each process and a step of loading from,
A step in which the AP reference relation table updating means reads the AP reference relation definition file updated with the replaced information and updates the AP reference relation table, and the AP reference relation table updating means finishes updating the AP reference relation table Afterwards, a step of requesting an update to the AP update means of the running process, and the AP update means updates the AP load state management table based on the information of the AP reference relation table updated when the update request is received. An updating step, wherein the AP updating means inquires of the AP loading / unloading order controlling means about an AP which needs to be unloaded after updating the AP loading state management table; The AP to be unloaded is updated in the unloading order based on information on the updated AP and the AP referencing the AP. Instructing the stage, the AP updating means unloading the instructed AP, and the AP updating means inquiring of the AP loading / unloading order controlling means about the updated AP loading order. The AP load / unload order control means instructs the AP to be loaded, and updates the load status and the number of unresolved APs in the AP load status management table. Dynamic replacement of an application program, which comprises a step of loading from an application.
プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、
APのロード状態をアンロード予定に変更する工程と、
APの未解決AP数に被参照APの数を設定する工程と、
被参照APについてロード状態をアンロード予定に変更する工程と、
未解決AP数に被参照AP数を設定し、被参照APに設定されていたAPのロード状態をアンロード予定に変更する工程と、
被参照APがなくなるまで繰り返す工程と、
ロード状態がアンロード予定のAPについて、未解決AP数を参照し、値が0の場合に、APをアンロードし、ロード状態をOFFにし、そのAPが参照しているAPのうち、ロード状態がアンロード予定のAPの未解決AP数を1減らす工程と、
上記工程をAPのロード状態がアンロード予定のAPがなくなるまで繰り返す工程と、
アンロードが終了したならば、APのロード状態がOFFのAPについて、参照しているAPのうち、ロード状態がOFFのAP数を未解決AP数に設定する工程と、
ロード状態がOFFのAPの未解決AP数を参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす工程と、
上記工程を全てのAPのロード状態がONになるまで繰り返す工程と
を含むことを特徴とするアプリケーションプログラム動的置換方法。
An application program replacement method for a system in which there is a one-way reference relationship between APs linked to a process,
Changing the load state of the AP to unload schedule;
Setting the number of referenced APs to the number of unresolved APs of the AP;
Changing the load state of the referenced AP to the unload schedule;
Setting the number of referenced APs to the number of unresolved APs, and changing the load state of the AP set as the referenced AP to unload schedule;
A step of repeating until there is no more referenced AP;
For the AP whose load status is scheduled to be unloaded, the number of unresolved APs is referred to. If the value is 0, the AP is unloaded, the load status is turned off, and the load status of the APs referred to by that AP is read. Reducing the number of unresolved APs of APs to be unloaded by one,
Repeating the above steps until there is no more AP to be unloaded;
When the unloading is completed, setting the number of APs whose load state is OFF to the number of unresolved APs among the APs that are referred to for the APs whose load state of the AP is OFF;
A step of referring to the number of unresolved APs of the APs whose load state is OFF, loading the AP if the value is 0, turning the load state ON, and reducing the number of unresolved APs of the APs referencing the AP by 1 When,
Repeating the above steps until the load states of all the APs are turned on.
プロセスにリンクするAP間に片方向の参照関係があるシステムのアプリケーションプログラム置換方法において、
APロード状態管理テーブルのロード状態を全てOFF、未解決AP数に各APが参照しているAPの数を設定する工程と、ロード状態がOFFのAPの未解決AP数を定義順に参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす工程と、上記工程を、全てのAPのロード状態がONになるまで繰り返す工程と、ロード状態がONにならないAPが存在する場合に相互参照があるものと判断してエラーで終了する工程とを含むロード処理と、
APのロード状態をアンロード予定に変更する工程と、APの未解決AP数に被参照APの数を設定する工程と、被参照APについてロード状態をアンロード予定に変更する工程と、未解決AP数に被参照AP数を設定し、被参照APに設定されていたAPのロード状態をアンロード予定に変更する工程と、被参照APがなくなるまで繰り返す工程と、ロード状態がアンロード予定のAPについて、未解決AP数を参照し、値が0の場合に、APをアンロードし、ロード状態をOFFにし、そのAPが参照しているAPのうち、ロード状態がアンロード予定のAPの未解決AP数を1減らす工程と、上記工程をAPのロード状態がアンロード予定のAPがなくなるまで繰り返す工程と、アンロードが終了したならば、APのロード状態がOFFのAPについて、参照しているAPのうち、ロード状態がOFFのAP数を未解決AP数に設定する工程と、ロード状態がOFFのAPの未解決AP数を参照し、値が0の場合に、APをロードし、ロード状態をONにし、そのAPを参照しているAPの未解決AP数を1減らす工程と、上記工程を全てのAPのロード状態がONになるまで繰り返す工程とを含むAP動的置換処理と
を備えることを特徴とするアプリケーションプログラム動的置換方法。
An application program replacement method for a system in which there is a one-way reference relationship between APs linked to a process,
A step of setting the number of APs referred to by each AP to the number of unresolved APs in the AP load state management table with all load states being OFF, If the value is 0, the AP is loaded, the loading state is turned ON, and the number of unresolved APs of the APs referring to the AP is reduced by one. A load process including a step of repeating until a load state is reached, and a step of determining that there is a cross-reference when there is an AP whose load state does not turn ON and terminating with an error.
Changing the load state of the AP to the unload schedule, setting the number of referenced APs to the number of unresolved APs of the AP, changing the load state of the referenced AP to unload schedule, Setting the number of referenced APs to the number of APs, changing the load state of the AP set as the referenced AP to the unload schedule, repeating the process until there are no more referenced APs, For the AP, the number of unresolved APs is referred to, and when the value is 0, the AP is unloaded and the load state is turned off, and among the APs referred to by that AP, the load state of the AP to be unloaded is A step of reducing the number of unresolved APs by one, a step of repeating the above steps until there are no more APs to be unloaded, and, if the unloading is completed, the AP loading state becomes OF Setting the number of APs whose load state is OFF among the referenced APs to the number of unresolved APs, and referring to the number of unresolved APs of the APs whose load state is OFF and the value is 0 A step of loading an AP, turning the load state ON, and reducing the number of unresolved APs of APs referencing the AP by one, and a step of repeating the above steps until the load state of all APs is ON. And a dynamic AP application replacement process.
JP2002350302A 2002-12-02 2002-12-02 Dynamic application program replacement system Pending JP2004185226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002350302A JP2004185226A (en) 2002-12-02 2002-12-02 Dynamic application program replacement system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002350302A JP2004185226A (en) 2002-12-02 2002-12-02 Dynamic application program replacement system

Publications (1)

Publication Number Publication Date
JP2004185226A true JP2004185226A (en) 2004-07-02

Family

ID=32752566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002350302A Pending JP2004185226A (en) 2002-12-02 2002-12-02 Dynamic application program replacement system

Country Status (1)

Country Link
JP (1) JP2004185226A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009107349A1 (en) * 2008-02-25 2009-09-03 パナソニック株式会社 Information processing device
WO2019134310A1 (en) * 2018-01-03 2019-07-11 Huawei Technologies Co., Ltd. Method to manage multiple versions of parts of a software application and to retire older versions in a dynamically updatable software system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009107349A1 (en) * 2008-02-25 2009-09-03 パナソニック株式会社 Information processing device
CN101960464B (en) * 2008-02-25 2013-01-16 松下电器产业株式会社 Information processing device
JP5411122B2 (en) * 2008-02-25 2014-02-12 パナソニック株式会社 Information processing device
WO2019134310A1 (en) * 2018-01-03 2019-07-11 Huawei Technologies Co., Ltd. Method to manage multiple versions of parts of a software application and to retire older versions in a dynamically updatable software system
US10564955B2 (en) 2018-01-03 2020-02-18 Huawei Technologies Co., Ltd. Method to manage multiple versions of parts of a software application and to retire older versions in a dynamically updatable software system

Similar Documents

Publication Publication Date Title
JP4370336B2 (en) Low power consumption job management method and computer system
US6059840A (en) Automatic scheduling of instructions to reduce code size
JP4740238B2 (en) Method, software, and device for using application state history information when restarting an application
JP4838305B2 (en) Processor controller with different modes
JP4170364B2 (en) Processor
JP2004185226A (en) Dynamic application program replacement system
JP2010044574A (en) Portable terminal, portable terminal control method and portable terminal control program
US20050188365A1 (en) Flash memory and method of dynamically loading firmware operation module in optical drive
US8555285B2 (en) Executing a general-purpose operating system as a task under the control of a real-time operating system
WO2009034316A2 (en) Boot loading
JP4300196B2 (en) Command execution device, command execution method, and command execution program
JP2007065753A (en) Starting method and navigation device
JP3005562B1 (en) Task management device and task scheduling method
JPH0916521A (en) Parallel batch processing system
JPH07271603A (en) Overlay program loading system
JP4062242B2 (en) Application program dynamic replacement method
WO2005001688A1 (en) Java applet updating device, java applet execution device, java applet updating program, and java applet execution program
JP2570198B2 (en) Time slice dispatching system
JPH09269902A (en) Resource management device for information processor and resource management method in information processing system
JP2003296111A (en) Program generator
JP2000207192A (en) Device and method for updating file
KR100489044B1 (en) Multi package management method
JP2000276360A (en) Method and device for scheduling task
JP2007048094A (en) Plan execution device, plan execution method and plan execution program
CN116009888A (en) Kubernetes resource release method and device for blue-green release

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040427

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050124

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060704

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060803

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060905

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061030

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061219