JP2004206298A - Job processing system and program - Google Patents

Job processing system and program Download PDF

Info

Publication number
JP2004206298A
JP2004206298A JP2002372973A JP2002372973A JP2004206298A JP 2004206298 A JP2004206298 A JP 2004206298A JP 2002372973 A JP2002372973 A JP 2002372973A JP 2002372973 A JP2002372973 A JP 2002372973A JP 2004206298 A JP2004206298 A JP 2004206298A
Authority
JP
Japan
Prior art keywords
job
log file
execution
host computer
program
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
JP2002372973A
Other languages
Japanese (ja)
Inventor
Atsushi Otsubo
淳 大坪
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.)
Casio Computer Co Ltd
Casio Soft Co Ltd
Original Assignee
Casio Computer Co Ltd
Casio Soft Co Ltd
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 Casio Computer Co Ltd, Casio Soft Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2002372973A priority Critical patent/JP2004206298A/en
Publication of JP2004206298A publication Critical patent/JP2004206298A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Multi Processors (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a new job processing system in which job execution is requested to each other between a plurality of computers having the same platform and respectively executing jobs. <P>SOLUTION: Every time the job is fed to the job input part 11 (21) of a host computer 1 (2), a job management part 12 (22) stores the job in a job log file 141 (241) and makes a job execution part 12 (22) execute the job according to the job execution start time. In receiving the detection notification of a job execution request event from an event detection part 15 (25), the job management part 12 (22) file-transfers the job log file 141 (241) to the other host computer 2 (1), performs a merging processing with the job log file 241 (141) in the other host computer 2 (1) and updates a file. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、同一の構成からなり、各々がジョブ処理機能をする複数のホストコンピュータ間におけるジョブ処理技術に関し、特に、自ホストコンピュータに投入されたジョブの実行委託を他のホストコンピュータに対して行なうジョブ処理技術に関する。
【0002】
【従来の技術】
従来、各々が投入されたジョブの実行を同じプラットフォームを用いて行なうホストコンピュータ間を接続し、ジョブが投入された際に自己コンピュータの負荷状態が限界値を超えた場合に、他のホストコンピュータのうち負荷が一番少ないホストコンピュータに対して投入ジョブの実行委託を行う複数のコンピュータで構成される分散コンピュータシステムを実現している(例えば、特許文献1参照。)。
また、実行しているホストコンピュータに何らかの障害が発生した場合には、他のホストコンピュータに切替え、他方のホストコンピュータに対して障害が発生したホストコンピュータのジョブ情報を投入することにより、障害の回復を待たずに、他方のホストコンピュータにより速やかにそのジョブの再実行を行なうジョブ実行処理システムを実現している(例えば、特許文献2参照。)。
【0003】
【特許文献1】
特開平5−101019号公報
【特許文献2】
特開平10−326201号公報
【0004】
【発明が解決しようとする課題】
上述した従来技術は、自コンピュータおける過負荷状態でジョブが投入される度に、或いは障害によりジョブを再実行する必要が生じる度に、ジョブを他のコンピュータに転送することが前提になっている。従って、ジョブ実行委託を受けたコンピュータでは、ジョブ実行委託を受ける度に自コンピュータに投入されたジョブの実行を行なうことができず、実行委託ジョブ処理に費やす処理時間の如何によっては自コンピュータにおける業務処理遂行スケジュールに支障をきたす可能性がある。
また、障害が回復するまでは、障害発生時以降に投入されるべき他のジョブの実行を実施することはできず、その回復作業の如何によってはジョブ実行スケジュールに支障をきたす可能性がある。
【0005】
以上の問題を鑑み、複数のコンピュータからなるシステムを構成する各コンピュータのジョブ情報を取得する手段を有するコンピュータシステムにおけるジョブ実行処理を効率的に行なう新たな技術を提供することが本発明の課題である。
【0006】
【課題を解決するための手段】
本発明の態様のひとつであるジョブ処理システムは、個々に独立してジョブ処理を行なう複数のホストコンピュータがネットワークに接続されるジョブ処理システムにおいて、前記ホストコンピュータは、ジョブ名とジョブ実行プログラムを対応付けて記憶するプログラムファイルと、ジョブ情報を格納するジョブログファイルと、少なくともジョブ名とジョブ開始日時からなるジョブ情報が入力される毎に、該ジョブ情報とジョブ名に対応する実行プログラムの格納先情報との組をジョブ開始日時に応じて前記ジョブログファイルに格納制御するジョブログファイル管理手段と、前記ジョブログファイルに格納されたジョブ情報のうち現在日時と一致するジョブ開始日時を有するジョブ情報のジョブ名に従って前記プログラムファイル内のジュブ実行プログラムの起動を行なうジュブ管理手段と、各種イベントを検出するイベント検出手段と、前記イベント検出手段が他ホストコンピュータに対するジョブ実行委託を示す特定イベントを検出した際、他ホストコンピュータにジョブ実行依頼要求を送出し、該要求に対する応答が戻ってきたときに、前記ジョブログファイルを他ホストコンピュータに転送して他ホストコンピュータでのジョブログファイルの更新処理を行なうファイル転送手段と、を備えることによって前述した課題を解決する。
【0007】
こうすることによって、ジョブ実行委託先のホストコンピュータのジョブスケジュールにジョブ実行委託元のホストコンピュータ上のジョブスケジュールを自動的に組み込むことが可能となる。
【0008】
なお、前述した本発明に係るジョブ処理システムにおいて、入力されたジョブ名に対応する実行プログラムの格納先を示す情報はプログラム格納先テーブルから取得が行われるので、容易に入力されたジョブ情報に付加することができる。
【0009】
また、前述した本発明に係るジョブ処理システムにおいて、ジョブ実行委託先へのファイル転送はTCP/IP通信手順に従って行われるので、特別な通信手順を用いることなく、そのファイル転送速度が向上する。
また、本発明の別の実施形態のひとつであるジョブ処理システムは、個々に独立してジョブ処理を行なう複数のホストコンピュータがネットワークに接続されるジョブ処理システムにおいて、前記ホストコンピュータは、ジョブ名とジョブ実行プログラムを対応付けて記憶するプログラムファイルと、ジョブ情報を格納するジョブログファイルと、少なくともジョブ名とジョブ開始日時からなるジョブ情報が入力される毎に、該ジョブ情報とジョブ名に対応する実行プログラムの格納先情報との組をジョブ開始日時に応じて前記ジョブログファイルに格納制御するジョブログファイル管理手段と、前記ジョブログファイルに格納されたジョブ情報のうち現在日時と一致するジョブ開始日時を有するジョブ情報のジョブ名に従って前記プログラムファイル内のジュブ実行プログラムの起動を行なうジュブ管理手段と、他ホストコンピュータからのジョブ実行委託要求を受信する受信手段と、前記受信手段がジョブ実行委託要求を受信した際に、前記ジョブ管理手段によって実行待機中の次回ジョブが設定されていれば該ジョブの実行を中止にした後に、前記要求に対する受諾応答を前記他ホストコンピュータに送出する第1の応答手段と、前記応答手段により送出された受諾応答により前記他ホストコンピュータからファイル転送されるジョブログファイルと前記ジョブログファイルを合併して前記ジョブログファイルを更新するファイル更新手段と、前記ファイル更新手段により更新されたジョブログファイル内の各ジョブ情報に従ってジョブ実行を再開するジョブ再開手段と、を備えることによって前述した課題を解決する。
【0010】
こうすることによって、ジョブ実行委託先のホストコンピュータのジョブスケジュールにジョブ実行委託元のホストコンピュータ上のジョブスケジュールを確実に組み込むことが可能となる。
【0011】
なお、ジョブ実行委託先のホストコンピュータにおけるジョブログファイルの更新処理が終了した後に、ファイル更新処理終了応答をジョブ実行委託元のホストコンピュータに送出を行なうので、ジョブ実行委託元のホストコンピュータにおけるジョブ実行委託終了処理を確実に行なうことが可能となる。
【0012】
また、前述した本発明に係るジョブ処理システムに相当する処理をコンピュータに行わせるためのプログラムであっても、そのプログラムをコンピュータに読み込ませて実行させることによって、前述した本発明に係るジョブ処理システムと同様な作用・効果が得られ、前述した課題が解決される。
【0013】
【発明の実施の形態】
以下、本発明の実施の形態を図面に基づいて説明する。
本実施形態では、一以上の複数のホストコンピュータにより構成されるシステムを前提とする。複数のホストコンピュータは相互に通信を行う手段として、TCP/IP(Transmission Control Protocol/Internet Protocol)プロトコルのベースのネットワークにより接続されているものとする。
図1は、本実施形態のジョブ処理システムの全体構成を示す図であり、複数のホストコンピュータ、本実施形態ではホストコンピュータ1とホストコンピュータ2とがローカルネットワーク3により接続されて、その主要部が構成されている。
【0014】
ホストコンピュータ1は、通常、投入されたジョブをジョブスケジュールに従って実行するものであり、ホストコンピュータ1に接続される端末(図示せず)から投入されるジョブを入力するジョブ入力部11、ジョブ実行を管理するジョブ管理部12、ジョブを実行するジョブ実行部13、ジョブ実行ログファイル141、ジョブ実行プログラムファイル142、およびジョブ結果ファイル143からなる記憶部14、システム状態の監視を行なうイベント検出部15、実行中のジョブ状態を監視するジョブ実行状態監視部16、及びホストコンピュータ2と通信を行なう通信部17とを備えている。
【0015】
ホストコンピュータ2も、ホストコンピュータ1と同様に構成されており、投入されたジョブをジョブスケジュールに従って実行するものであり、ジョブ入力部21、ジョブ管理部22、ジョブ実行部23、記憶部24、システム状態監視部25、ジョブ実行状態監視部26、及び通信部27とを備えている。
【0016】
ジョブ入力部11(21)は、ホストコンピュータ1(2)に接続されている端末(図示せず)からジョブの投入を受け付け、該投入ジョブ情報をジョブ管理部12(22)に出力を行なう。
【0017】
ジョブ管理部12(22)は、ジョブ実行の開始及びスケジュールの制御を行なう。ジョブ管理部12(22)はジョブが投入される毎に、ジョブ管理部12(22)内部に設けられている図2に示すようなテーブル構造を有するジョブ実行プログラム格納先テーブルを参照してそのジョブを起動するジョブ実行プログラムが格納されている場所を抽出してログファイル141に実行開始日時の順に格納してログファイル141の管理を行なう。
【0018】
ジョブ実行ログファイル141(241)の構造を図3に示す。同図に示すように、ジュブ実行ログファイル141(241)では、ジョブ名、パス名、引数、及びジョブ開始日付、時刻で1つのレコードが構成され、各レコードにはレコード番号が付されて格納される。
【0019】
ジョブ実行部13(23)は、ジョブ実行ログファイル141に格納されているジョブレコードのジョブ開始日時(スケジュール)に従ってジョブ管理部12(22)から渡されるジョブ実行パラメータにより記憶部14(24)のジョブ実行プログラムファイル142からジョブに対応するジョブ実行プログラムを読み出してジョブの実行を行なうと共に、ジョブ結果を記憶部14のジョブ結果ファイル143に保存を行なう。
【0020】
ジョブ実行プログラムファイル142と243は共にハードディスク装置等の外部記憶装置で構成され、各々のジョブに対応する実行プログラムを同一のパス名および同一の引数で示される同一の場所に格納される。
【0021】
イベント検出部15(25)は、システム状態の監視を常時行ない、システム障害やジョブ実行委託のイベントが発生した際に、そのイベント情報をジョブ管理部12(22)に通知を行なう。
【0022】
ジョブ実行状態監視部16(26)は、システムにおいてジョブ実行状態の監視を常時行ない、ジョブ管理部12(22)からの要求に応答してジョブ実行状態の通知を行なう。
【0023】
更に、ジョブ管理部12(22)はシステム状態監視部16でジョブ実行委託を示すイベント情報が検出されたことの通知を受けると、該ジョブ実行委託イベント検出の通知に応答してホストコンピュータ2(1)にジョブ実行委託を要求し、ジョブ実行ログファイル141(242)の転送を行なう。また、ジョブ管理部12は他のホストコンピュータ2(1)からジョブ実行委託要求を受けると、ジョブ実行状態監視部16によりジョブ実行中状態でなければジョブ実行ログファイルを受け付け、受け付けたログファイル内の各々のジョブパラメータを該パラメータに含まれるジョブ開始日時に基づいてログファイルに格納し、ログファイル141の更新を行なってログファイル141(142)の管理を行なう。
【0024】
通信部17(27)は、ローカルネットワーク3、例えばTCP/IPのベースのLAN(Local Area Network)で接続されるホストコンピュータ1と2間でログファイル141および242をFTP(File Transfer Protocol)形式によって送受信の制御を行なう。
【0025】
本発明の実施対応のジョブ処理システムは以上のように構成されている。
なお、図1に示したホストコンピュータ1(2)の構成のうち、ジョブ入力部11(21)、ジョブ管理部12(22)、ジョブ実行部13(23)、イベント検出部15(25)、ジョブ実行状態漢字部16(26)、及び通信部17(27)は、標準的な構成を有するコンピュータ、すなわち、制御プログラムを実行することで各構成要素を制御するCPUと、ROMやRAM及び磁気記憶装置などからなり、CPUに各構成要素を制御させる制御プログラムの記憶やCPUが制御プログラムを実行する際のワークエリアあるいは各種データの記憶領域として使用される記憶部と、ユーザによる操作に対応する各種データが取得される入力部と、ディスプレイなどに各種データを提示してユーザに通知する出力部、ネットワークに接続するためのインターフェース機能を提供するI/F部とを備えるコンピュータで構成することもできる。
【0026】
以下、ホストコンピュータ1(2)で行なわれる処理の手順について説明する。
図4はホストコンピュータ1(2)で行われるジョブ実行処理の処理内容を示すフローチャートである。ホストコンピュータ1とホストコンピュータ2では同様な処理が行われる。
尚、説明を簡単にするためホストコンピュータ1でのジョブ実行処理を説明し、ホストコンピュータ2でのジョブ実行処理の説明は省略する。
【0027】
まず、S101では、ホストコンピュータ1に接続されている端末装置(図示せず)を用いて、オペレータにより新たな起動対象のジョブ名とその開始日付、開始時刻からなるジョブ情報がジョブ入力部11に入力されたか否かが判別される。そして、この判別結果がYesならばS102に進み、ジョブ処理が開始される。またNoならばジョブ入力が行われるまで待つ。
【0028】
S102では、ジョブ入力部11にジョブ情報が入力された際に、既に投入されているジョブが実行中か否かをジョブ実行監視部16にジョブ管理部12が問い合わせ、問い合わせの結果がYesならば、つまりジョブが実行されていないと判別された場合にはS103に進み、Noならば、つまりジョブ実行中ならばその実行中のジョブが終了するまで待ってS103に進み、
【0029】
S103では、ジョブログファイル141に待ちジョブがあるか否かがジョブ管理部12によって判別される。この判別結果がYesならば、つまり待ちジョブがあると判別されるとS104に進み、Noならば、つまり待ちジョブがないと判別されるとS105に進む。
【0030】
S104では、ジョブの登録処理のためにジョブ管理部12によって次回実行対象ジョブである待ちジョブの実行の停止処理を行なう。
【0031】
S105では、待ちジョブの実行停止処理が終了すると、ジョブ入力部11は一時的に保存されているジョブ情報をジョブ管理部12に渡す。
S106では、ジョブ管理部12において渡されたジョブ情報に含まれるジョブ名に該当する実行プログラムの格納位置を示すパス名と引数が図8(a)に示すジョブ格納先テーブルから取得される。
【0032】
S107では、ジョブ管理部12において、S106で取得されたパス名と引数と、前述したS105で受け付けたジョブ情報(ジョブ名、ジョブ開始日時)とからなるレコードの生成が行なわれる。
【0033】
S108では、S107で生成されたレコードをジョブ情報に含まれるジョブ開示日時に応じてジョブログファイルにジョブ管理部12によって格納される。つまり、ジョブの実行スケジュールの再設定が行われる。
【0034】
S109では、S108にて再設定が行われたスケジュールに従って、現在日時以降のS104の処理にて中断していたジョブ実行の再開処理が行われる。このジョブ実行再開処理の詳細は後述する。
【0035】
これまでの処理がジョブ実行処理である。
次に図4に示したジョブ実行処理におけるS109の処理において行われるジョブ実行再開処理の詳細について説明する。この処理は、オペレータにより入力されたジョブを含み再設定されたジョブ実行スケジュールの現在日時以降の先頭ジョブからジョブ実行を再開するものである。尚、この処理は全てジョブ管理部12によって行われる。
【0036】
図5はジョブ実行再開処理の処理内容を示すフローチャートである。
まず、S201では、現在時刻Trをシステム時計(図示せず)から現在時刻Trの取得が行われ、内部メモリ(図示せず)に一時的に格納が行われる。
【0037】
S202では、変数Nに初期値である「1」が代入される。
S203では、変数Nの値で示されるレコード番号がNであるジョブ情報のジョブ開始日時Tsをジョブログファイルから取得が行なわれる。
【0038】
S204では、前述したS201とS203の各々の処理により取得してある現在時刻Trとジョブ開始日時Tsとの比較が行なわれ、現在時刻Trよりジョブ開始日時Tsが未来の時間空間にあるか否かが判別される。そして、この判別結果がYesであればS206に処理が進み、NoあればS205に処理が進む。
【0039】
S205では、N+1なる加算が行なわれ、この加算結果が変数Nに代入される。この処理が終わった後にはS203へと処理が戻って上述した処理が繰り返される。
【0040】
S206では、変数mに初期値である「1」が代入される。
S207では、変数Nの値で示されるレコード番号がNに該当するレコードから実行プログラムが格納されている格納場所を示すジョブ情報(パス名、引数)の取得が行われる。
【0041】
S208では、前述したS207の処理でジョブ情報(パス名、引数)が取得できたか否かが判別される。この判別結果がYesであればS209の処理が進み、Noであればジョブログファイル141内に格納されているジョブの全てが実行されたものと見なして、ジョブ実行再開処理が終了する。
【0042】
S209では、変数mが「1」か否かが判別される。この判別結果がYes、つまりジョブ実行再開処理における最初のジョブの実行である場合にはS210に処理が進み、Noであれば、2番目以降のジョブの実行であると見なし、S211に処理が進む。
【0043】
S210では、S203の処理で取得してあるジョブ開始時刻TsとS201の処理で取得してある現在時刻Tsとの時間差Tiを求め、この時間差の値T1をジョブ実行時刻計時用タイマ(図示せず)への設定が行なわれる。
【0044】
S211では、現在実行中のジョブの開始時刻Ts-1と次ジョブの実行開始時刻Tsまでの時間差T2を求め、求めた値T2をジョブ実行時刻計時用タイマへの設定が行われる。
【0045】
S212では、上述したS210またはS211の処理でジョブ実行時刻計時用タイマに値が設定されると同時にダウンカウントが開始される。このタイマは一定の時間が経過することに1つずつデクリメントされる。
S213では、タイマ値が「0」か否かが判別される。この判別結果がYesならば、S214の処理に進み、Noならば、タイマ値が「0」になるまで待つ。
【0046】
S214では、S207の処理で取得したジョブ情報(パス名、引数)をジョブ実行部13に渡し、ジョブ実行部13によって渡されたジョブ情報で示される実行プログラムファイル142内の格納場所に格納されている実行プログラムが起動される。
【0047】
S215では、S214の処理で実行プログラムが起動されると、N+1なる加算がジョブ管理部12において行なわれてこの計算結果が変数Nに代入されると共に、m+1なる加算がジョブ管理部12によって行なわれてこの計算結果が変数mに代人される。そして、この処理が終わった後にはS207に処理が戻ってS207〜S216の処理が繰り返される。つまり、ジョブログファイル141に格納されてスケジューリングされている最終のジョブが起動されるまで上述した処理が繰り返される。
【0048】
これまでの処理がホストコンピュータ1とホストコンピュータ2の各々におけるジョブ実行再開処理である。
次に、ホストコンピュータでジョブ実行委託要求が発生したときの他のホストコンピュータへのジョブ実行委託処理、およびジョブ実行委託を受けたホストコンピュータにおけるジョブログファイル更新処理について説明する。この処理は、ホストコンピュータ1とホストコンピュータ2とがインターネット等のTCP/IPベースのネットワークに接続されていることを前提とする。
【0049】
尚、説明を簡単にするためにホストコンピュータ1をジョブ実行委託要求が発生したジョブ実行委託元とし、ホストコンピュータ2をジョブ実行委託先として説明する。
図6はホストコンピュータ1におけるジョブ実行委託処理を示すフローチャートである。
【0050】
まず、S310では、イベント検出部15からのジョブ実行委託や各種障害の特定イベントの検出通知をジョブ管理部12において受けたか否かが判別される。この判別結果がYesならばS311の処理に進み、Noならば特定イベント発生の通知を受けるまで待つ。
【0051】
S311では、ジョブ管理部12が通信部17に対してホストコンピュータ2とのコネクション開設の要求を行ってホストコンピュータ2間のコネクションが確立した後に、ジョブ管理部12においてジョブログファイル141の転送許可要求の生成を行ってその要求を通信部17からホストコンピュータ2に対して行なわれる。
【0052】
S312では、転送許可要求に応答してホストコンピュータ2から返信されてくる転送準備完了通知を受信したか否かが判別される。この判別結果がYesであればS314の処理に進み、NoであればS313の処理に進む。
S313では、前述のS311の処理によって転送許可要求を行なってから経過した時間がジョブ管理部12によって所定時間内か否かが判別される。この判別結果がYesならばS311の処理に戻ってS311〜S312の処理を繰り返して行ない、Noならば準備完了通知の受信を待つ。
【0053】
S314では、S312にてホストコンピュータ2からの転送準備完了通知を受け取ると即座にジョブ管理部12によってジョブログファイル141の内容を通信部17を介してジョブ実行委託先のホストコンピュータ2にFTP形式でファイル転送が行なわれる。
【0054】
S315では、ファイル転送に応答してホストコンピュータ2から返信されてくるログファイル転送完了通知を受信したか否かがジョブ管理部12によって判別される。この判別結果がYesであればS317の処理に進み、NoならばS316の処理に進む。
【0055】
S316では、S314の処理によってファイル転送を行なってから経過した時間が所定時間内か否かがジョブ管理部12によって判別される。この判別結果がYesならばファイル転送エラーやジョブ実行委託先のホストコンピュータ2において何らかの障害が発生してファイル転送が失敗したものと見做され、S311の処理に戻ってS311〜S316の処理を繰り返して行ない、Noならば転送完了通知の受信を待つ。
【0056】
S317では、S310でイベント検出部15によって検出されて一時的に保存されているイベントがジョブ実行委託イベントか否かが判別される。こんも判別結果がYesであればS318の処理に進み、Noであれば電源遮断イベントであると見做してS319の処理に進む。
【0057】
S318では、ジョブログファイル141の内容がジョブ管理部12によって削除されて、ジョブログファイル141の初期化が行われる。
S319では、電源制御部(図示せず)の制御下でオープンされているファイルのクローズ処理等の電源遮断処理を行なわれる。
【0058】
これまでの処理がホストコンピュータ1またはホストコンピュータ2でのジョブ実行委託処理である。
次に、ジョブ実行委託先コンピュータとしてのホストコンピュータの処理を詳細に説明する。
【0059】
図7はジョブ実行委託先であるホストコンピュータ2におけるジョブログファイル更新処理を示すフローチャートである。
まず、S410では、ジョブ実行委託元のホストコンピュータ1からのジョブログファイル転送許可要求を受信したか否かがジョブ管理部22によって判別される。この判別結果がYesならばS411の処理に進み、Noならばジョブログファイル転送許可要求を受信するまで待つ。
【0060】
S411では、ジョブ実行部23でジョブが実行されていないか否かを判別される。この判別処理はジョブ管理部22がジョブ実行状態監視部26に対して問い合わせた結果に基づいて判別される。この判別結果がYesであればS412の処理に進み、Noであれば現在実行中のジョブが終了するまで待つ。
【0061】
S412では、ジョブログファイル241に次回の待ちジョブがあるか否かがジョブ管理部22によって判別される。この判別結果がYesであればS413の処理に進み、NoであればS414の処理に進む。
【0062】
S413では、ジョブ実行部23に対してジョブ管理部22から次回待ちジョブの実行開始処理の中止指令が出される。そしてジョブ実行部23におけるジョブ実行開始中止処理が終わった後にS414の処理に進む。
【0063】
S414では、転送ファイルの受入OKであるレディ状態にあることを示す準備完了通知をジョブ管理部22によって依頼元のホストコンピュータ1に対して送信部27を介して送信を行なう。
【0064】
S415では、送信した準備完了通知に応答して依頼元からFTP形式により転送されてくるジョブログファイル(図1のログファイル141)を受信したか否かが判別される。この判別結果がYesならばS416の処理に進み、NoならばS417の処理に進む。
【0065】
S416では、受信したジョブ実行委託元のログファイル(図1のログファイル141)を一時的に内部メモリ(図示せず)に保存を行って、保存された依頼元ログファイルと自己ログファイル241とをジョブ開始日時をキーとする図8に示すようなマージ処理がジョブ管理部22において行われる。このマージ処理によって依頼元で投入されたジョブが依頼先のジョブスケジュールとして再設定されたことになる。
【0066】
S417では、前述のS414の処理で準備完了通知を依頼元に送信を行ってから経過した時間が所定時間内か否かがジョブ管理部22において判別される。この判別結果がYesならば、何らかの伝送エラーや依頼元において障害が発生したものと見做してジョブログファイル更新処理が終了する。Noであれば、つまり所定時間内ならばS415の処理に戻って依頼元からログファイルの転送を待つ。
【0067】
S418では、前述のS416のマージ処理が終了した後に、ログファイル受入終了通知をジョブ管理部22によって通信部27を介して依頼元への送信が行われる。
【0068】
以上の処理がジョブ実行委託先で行われるジョブログファイル更新処理である。
なお、前述した図4から図7にかけて示した各種の処理を前述したような標準的な構成を有するコンピュータに行わせるための制御プログラムを作成し、その制御プログラムをそのコンピュータに読み込ませて実行させることにより、上述の実施の形態における各種処理に相当する機能をそのようなコンピュータに行わせることも可能である。また、」このような制御プログラムをコンピュータで読み取り可能な記録媒体、例えばフレキシブルディスク、CD−ROM、DVD−ROM等に記録させ、そのプログラムを記録媒体からコンピュータに読み出させて実行させることによって上述の処理に相当する機能をこのようなコンピュータに行わせることも可能である。
また、記録媒体はネットワークを介してコンピュータと接続される、プログラムサーバとして機能するコンピュータが備えている記憶装置であってもよい。この場合には、制御プログラムを表現するデータ信号で搬送波を変調して得られる伝送信号を、プログラムサーバから伝送媒体であるネットワークを通じて伝送するようにし、コンピュータでは受信した伝送信号を復調して制御プログラムを再生することで当該制御プログラムを実行できるようになる。
【0069】
【発明の効果】
以上詳細に説明したように、本発明は、ジュブログファイルに格納されているジョブの実行スケジュール情報に従ってジョブを実行する少なくとも2台のホストコンピュータ間において、一方のホストコンピュータによるジョブ実行委託要求に従ってその委託元のコンピュータのログファイルをファイル転送処理によりジョブ実行委託先の他コンピュータのログファイルとのマージ処理を行なうことで、委託先ホストコンピュータのジョブログファイルの更新を行なう。
【0070】
こうすることにより、ジョブ実行委託先ホストコンピュータのジョブスケジュールの再設定を自動的に行なうことが可能となり、従来、管理者が努力して依頼先のホストコンピュータにおけるジョブスケジュールの設定を行なう必要がなくなり、容易にジョブの負荷分散を行なうことができるという効果がある。
【図面の簡単な説明】
【図1】本発明の実施形態にかかるジョブ処理システムの構成を示す図である。
【図2】ジョブ実行プログラム格納先テーブルの構造を示す図である。
【図3】ジョブログファイルの構造を示す図である。
【図4】ジョブ実行処理の処理内容を示すフローチャートである。
【図5】図4におけるS109のジョブ実行再開処理の処理内容を示すフローチャートである。
【図6】ジョブ実行委託処理の処理内容を示すフローチャートである。
【図7】ジョブログファイル更新処理の処理内容を示すフローチャートである。
【図8】ジョブログファイルのマージ処理結果を示す図である。
【符号の説明】
1、2 ホストコンピュータ
3 ローカルネットワーク
11、21 ジョブ入力部
12、22 ジョブ管理部
13、23 ジョブ実行部
14,24 記憶部
141、142 ジョブログファイル
142,242 プログラムファイル
143,243 ジョブ結果ファイル
15、25 システム状態監視部
16.26 ジョブ実行状態監視部
17,27 通信部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a job processing technique between a plurality of host computers each having the same configuration and each having a job processing function, and in particular, entrusts execution of a job input to its own host computer to another host computer. Related to job processing technology.
[0002]
[Prior art]
Conventionally, a host computer that executes each submitted job using the same platform is connected to each other, and when the load state of its own computer exceeds a limit value when the job is submitted, the other host computers are connected. A distributed computer system including a plurality of computers that outsource execution of an input job to a host computer having the least load is realized (for example, see Patent Document 1).
If a failure occurs in the executing host computer, the failure is recovered by switching to another host computer and submitting the job information of the failed host computer to the other host computer. A job execution processing system in which the other host computer promptly re-executes the job without waiting (see, for example, Patent Document 2).
[0003]
[Patent Document 1]
JP-A-5-101019
[Patent Document 2]
JP-A-10-326201
[0004]
[Problems to be solved by the invention]
The above-described prior art is based on the premise that a job is transferred to another computer each time a job is input in an overloaded state of the own computer or each time a job needs to be re-executed due to a failure. . Therefore, the computer entrusted with the job execution cannot execute the job input to the own computer every time the computer receives the job execution entrustment. There is a possibility that the processing execution schedule will be affected.
Further, until the failure is recovered, it is not possible to execute another job to be submitted after the occurrence of the failure, and the job execution schedule may be affected depending on the recovery work.
[0005]
In view of the above problems, it is an object of the present invention to provide a new technique for efficiently performing job execution processing in a computer system having means for acquiring job information of each computer constituting a system including a plurality of computers. is there.
[0006]
[Means for Solving the Problems]
A job processing system according to an aspect of the present invention is a job processing system in which a plurality of host computers that independently perform job processing are connected to a network, wherein the host computer associates a job name with a job execution program. A program file to be attached and stored, a job log file to store job information, and a storage location of an execution program corresponding to the job information and the job name each time job information including at least a job name and a job start date and time is input. Job log file management means for storing and controlling a set of information in the job log file according to the job start date and time, and job information having a job start date and time matching the current date and time among the job information stored in the job log file According to the job name Job execution means for starting a web execution program; event detection means for detecting various events; and job execution to another host computer when the event detection means detects a specific event indicating a job execution commission to another host computer. File transfer means for transmitting a request request and, when a response to the request is returned, transferring the job log file to another host computer and updating the job log file on the other host computer. Solves the above-described problem.
[0007]
By doing so, it becomes possible to automatically incorporate the job schedule on the host computer of the job execution contractor into the job schedule of the host computer of the job execution contractor.
[0008]
In the above-described job processing system according to the present invention, since the information indicating the storage location of the execution program corresponding to the input job name is obtained from the program storage destination table, it is easily added to the input job information. can do.
[0009]
Further, in the above-described job processing system according to the present invention, the file transfer to the job entrustment destination is performed according to the TCP / IP communication procedure, so that the file transfer speed is improved without using a special communication procedure.
Also, a job processing system according to another embodiment of the present invention is a job processing system in which a plurality of host computers that independently perform job processing are connected to a network. A program file that stores a job execution program in association with the job, a job log file that stores job information, and each time job information including at least a job name and a job start date and time is input, the job information and the job name correspond to the job information. Job log file management means for controlling storage of a set of execution program storage location information in the job log file according to the job start date and time, and job start matching the current date and time in the job information stored in the job log file According to the job name of the job information having the date and time, the program A job management unit that starts a job execution program in a file, a reception unit that receives a job execution commission request from another host computer, and a job execution unit that, when the reception unit receives the job execution commission request, First response means for sending an acceptance response to the request to the other host computer after stopping execution of the job if the next job waiting for execution has been set, and acceptance sent by the response means File updating means for updating the job log file by merging a job log file transferred from the other host computer in response to the job log file, and each job in the job log file updated by the file updating means A job resuming means for resuming job execution according to the information; To solve the problems described above by obtaining.
[0010]
By doing so, it is possible to reliably incorporate the job schedule on the host computer of the job execution contractor into the job schedule of the host computer of the job execution contractor.
[0011]
After the job log file update process on the job execution commissioned host computer is completed, a file update process end response is sent to the job execution commissioned host computer. It is possible to reliably perform the commission termination processing.
[0012]
Further, even a program for causing a computer to perform processing corresponding to the above-described job processing system according to the present invention, the program is read and executed by the computer to thereby execute the job processing system according to the present invention. The same operation and effect as those described above are obtained, and the above-described problem is solved.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
In the present embodiment, it is assumed that the system includes one or more host computers. It is assumed that a plurality of host computers are connected to each other via a network based on a TCP / IP (Transmission Control Protocol / Internet Protocol) protocol as a means for communicating with each other.
FIG. 1 is a diagram showing an overall configuration of a job processing system according to the present embodiment. A plurality of host computers, in this embodiment, a host computer 1 and a host computer 2 are connected by a local network 3, and a main part thereof is It is configured.
[0014]
The host computer 1 normally executes a submitted job in accordance with a job schedule, and a job input unit 11 for inputting a job submitted from a terminal (not shown) connected to the host computer 1; A job management unit 12 for managing, a job execution unit 13 for executing a job, a storage unit 14 including a job execution log file 141, a job execution program file 142, and a job result file 143; an event detection unit 15 for monitoring a system state; A job execution status monitoring unit 16 for monitoring the status of the job being executed and a communication unit 17 for communicating with the host computer 2 are provided.
[0015]
The host computer 2 has the same configuration as the host computer 1 and executes the input job in accordance with the job schedule. The job input unit 21, the job management unit 22, the job execution unit 23, the storage unit 24, the system A status monitoring unit 25, a job execution status monitoring unit 26, and a communication unit 27 are provided.
[0016]
The job input unit 11 (21) receives a job input from a terminal (not shown) connected to the host computer 1 (2), and outputs the input job information to the job management unit 12 (22).
[0017]
The job management unit 12 (22) starts job execution and controls a schedule. Every time a job is input, the job management unit 12 (22) refers to a job execution program storage destination table having a table structure as shown in FIG. 2 provided inside the job management unit 12 (22). The location where the job execution program for starting the job is stored is extracted and stored in the log file 141 in the order of the execution start date and time to manage the log file 141.
[0018]
FIG. 3 shows the structure of the job execution log file 141 (241). As shown in the figure, the job execution log file 141 (241) includes one record including a job name, a path name, an argument, a job start date, and a time. Each record is assigned a record number and stored. Is done.
[0019]
The job execution unit 13 (23) uses the job execution parameters passed from the job management unit 12 (22) according to the job start date and time (schedule) of the job record stored in the job execution log file 141 to store the job execution unit 13 (23). The job execution program corresponding to the job is read out from the job execution program file 142 to execute the job, and the job result is stored in the job result file 143 of the storage unit 14.
[0020]
Each of the job execution program files 142 and 243 is constituted by an external storage device such as a hard disk device, and stores execution programs corresponding to each job in the same location indicated by the same path name and the same argument.
[0021]
The event detection unit 15 (25) constantly monitors the system status, and notifies the job management unit 12 (22) of the event information when a system failure or a job execution commission event occurs.
[0022]
The job execution state monitoring unit 16 (26) constantly monitors the job execution state in the system, and notifies the job execution state in response to a request from the job management unit 12 (22).
[0023]
Further, upon receiving the notification that the event information indicating the job execution commission has been detected by the system status monitoring unit 16, the job management unit 12 (22) responds to the job execution commission event detection notice and responds to the notification of the job execution commission event detection. Request job execution consignment to 1), and transfer the job execution log file 141 (242). When the job management unit 12 receives a job execution consignment request from another host computer 2 (1), the job execution state monitoring unit 16 accepts a job execution log file if the job is not in the job execution state. Are stored in a log file based on the job start date and time included in the parameter, and the log file 141 is updated to manage the log file 141 (142).
[0024]
The communication unit 17 (27) converts log files 141 and 242 between the host computers 1 and 2 connected by a local network 3, for example, a LAN (Local Area Network) based on TCP / IP, in an FTP (File Transfer Protocol) format. Controls transmission and reception.
[0025]
The job processing system according to the present invention is configured as described above.
In the configuration of the host computer 1 (2) shown in FIG. 1, the job input unit 11 (21), the job management unit 12 (22), the job execution unit 13 (23), the event detection unit 15 (25), The job execution state kanji unit 16 (26) and the communication unit 17 (27) include a computer having a standard configuration, that is, a CPU that controls each component by executing a control program, a ROM, a RAM, and a magnetic field. A storage unit, which includes a storage device and the like, stores a control program for causing the CPU to control each component, and is used as a work area or a storage area for various data when the CPU executes the control program. An input unit for acquiring various data, an output unit for presenting various data on a display or the like to notify the user, and a network connection It may be constituted by a computer and a I / F unit that provides an interface function for.
[0026]
Hereinafter, a procedure of processing performed by the host computer 1 (2) will be described.
FIG. 4 is a flowchart showing the processing contents of the job execution processing performed by the host computer 1 (2). The host computer 1 and the host computer 2 perform the same processing.
Note that, for simplicity, the job execution process in the host computer 1 will be described, and the description of the job execution process in the host computer 2 will be omitted.
[0027]
First, in S101, using a terminal device (not shown) connected to the host computer 1, the operator inputs job information including a new start target job name, its start date, and start time to the job input unit 11. It is determined whether the input has been made. If the determination result is Yes, the process proceeds to S102, and the job processing is started. If No, the process waits until a job is input.
[0028]
In S102, when the job information is input to the job input unit 11, the job management unit 12 inquires of the job execution monitoring unit 16 whether or not the already input job is being executed. If the result of the inquiry is Yes, That is, if it is determined that the job has not been executed, the process proceeds to S103. If No, that is, if the job is being executed, the process waits until the job being executed is completed, and the process proceeds to S103.
[0029]
In S103, the job management unit 12 determines whether or not there is a waiting job in the job log file 141. If this determination result is Yes, that is, if it is determined that there is a waiting job, the process proceeds to S104. If No, that is, if it is determined that there is no waiting job, the process proceeds to S105.
[0030]
In S104, the job management unit 12 performs a process of stopping the execution of the waiting job, which is the job to be executed next, for the job registration process.
[0031]
In step S105, when the execution stop processing of the waiting job is completed, the job input unit 11 passes the temporarily stored job information to the job management unit 12.
In S106, the path name and the argument indicating the storage location of the execution program corresponding to the job name included in the job information passed by the job management unit 12 are acquired from the job storage destination table illustrated in FIG.
[0032]
In S107, the job management unit 12 generates a record including the path name and the argument acquired in S106 and the job information (job name, job start date and time) received in S105 described above.
[0033]
In S108, the job management unit 12 stores the record generated in S107 in a job log file according to the job disclosure date and time included in the job information. That is, the job execution schedule is reset.
[0034]
In S109, according to the schedule reset in S108, the process of resuming the job execution suspended in the process of S104 after the current date and time is performed. Details of the job execution resuming process will be described later.
[0035]
The processing so far is the job execution processing.
Next, details of the job execution resuming process performed in the process of S109 in the job executing process shown in FIG. 4 will be described. In this process, the job execution is restarted from the first job after the current date and time of the reset job execution schedule including the job input by the operator. Note that all of this processing is performed by the job management unit 12.
[0036]
FIG. 5 is a flowchart showing the contents of the job execution resuming process.
First, in S201, the current time Tr is obtained from a system clock (not shown) and temporarily stored in an internal memory (not shown).
[0037]
In S202, "1" which is an initial value is substituted for the variable N.
In S203, the job start date and time Ts of the job information whose record number indicated by the value of the variable N is N is obtained from the job log file.
[0038]
In S204, a comparison is made between the current time Tr and the job start date and time Ts acquired by the processing of each of S201 and S203 described above, and whether or not the job start date and time Ts is in the future time space from the current time Tr is determined. Is determined. If the determination result is Yes, the process proceeds to S206, and if No, the process proceeds to S205.
[0039]
In S205, an addition of N + 1 is performed, and the addition result is substituted for a variable N. After this processing is completed, the processing returns to S203, and the above-described processing is repeated.
[0040]
In S206, the initial value “1” is substituted for the variable m.
In S207, job information (path name, argument) indicating the storage location where the execution program is stored is obtained from the record whose record number indicated by the value of the variable N corresponds to N.
[0041]
In S208, it is determined whether or not the job information (path name, argument) has been acquired in the process of S207 described above. If the determination result is Yes, the process of S209 proceeds, and if No, it is regarded that all the jobs stored in the job log file 141 have been executed, and the job execution resuming process ends.
[0042]
In S209, it is determined whether or not the variable m is “1”. If this determination result is Yes, that is, the first job in the job execution resuming process is executed, the process proceeds to S210. If No, it is regarded that the second and subsequent jobs are executed, and the process proceeds to S211. .
[0043]
In S210, a time difference Ti between the job start time Ts obtained in the process of S203 and the current time Ts obtained in the process of S201 is obtained, and the value T1 of the time difference is used as a job execution time counting timer (not shown). ) Is set.
[0044]
In S211, a time difference T2 between the start time Ts-1 of the currently executing job and the execution start time Ts of the next job is obtained, and the obtained value T2 is set in a job execution time counting timer.
[0045]
In S212, a value is set to the job execution time counting timer in the processing of S210 or S211 described above, and at the same time, down counting is started. This timer is decremented by one when a certain time elapses.
In S213, it is determined whether the timer value is “0”. If the determination result is Yes, the process proceeds to S214. If the determination result is No, the process waits until the timer value becomes “0”.
[0046]
In S214, the job information (path name, argument) obtained in the process of S207 is passed to the job execution unit 13 and stored in the storage location in the execution program file 142 indicated by the job information passed by the job execution unit 13. Is started.
[0047]
In S215, when the execution program is started in the process of S214, an addition of N + 1 is performed in the job management unit 12 and this calculation result is substituted for the variable N, and an addition of m + 1 is performed by the job management unit 12. The calculation result of the lever is substituted for the variable m. Then, after this processing is completed, the processing returns to S207, and the processing of S207 to S216 is repeated. That is, the above-described processing is repeated until the last job stored and scheduled in the job log file 141 is started.
[0048]
The processing so far is the job execution restart processing in each of the host computer 1 and the host computer 2.
Next, a job execution entrustment process to another host computer when a job execution entrustment request is generated in the host computer, and a job log file update process in the host computer entrusted with the job execution entrustment will be described. This process is based on the premise that the host computer 1 and the host computer 2 are connected to a TCP / IP-based network such as the Internet.
[0049]
For simplicity of explanation, the host computer 1 will be described as a job execution commission source that has issued a job execution commission request, and the host computer 2 will be described as a job execution commission destination.
FIG. 6 is a flowchart showing the job execution commissioning process in the host computer 1.
[0050]
First, in S310, it is determined whether or not the job management unit 12 has received a job execution commission from the event detection unit 15 or a detection notification of a specific event of various failures. If the determination result is Yes, the process proceeds to S311; if No, the process waits until a specific event occurrence notification is received.
[0051]
In S311, after the job management unit 12 requests the communication unit 17 to open a connection with the host computer 2 and the connection between the host computers 2 is established, the job management unit 12 requests the transfer permission of the job log file 141. And the request is made from the communication unit 17 to the host computer 2.
[0052]
In S312, it is determined whether a transfer preparation completion notification returned from the host computer 2 in response to the transfer permission request has been received. If this determination result is Yes, the process proceeds to S314, and if No, the process proceeds to S313.
In S313, the job management unit 12 determines whether or not the time that has elapsed since the transfer permission request was made in the above-described processing of S311 is within a predetermined time. If the determination result is Yes, the process returns to the process of S311 and the processes of S311 to S312 are repeated, and if No, the reception of the preparation completion notification is waited.
[0053]
In step S314, upon receiving the transfer preparation completion notification from the host computer 2 in step S312, the job management unit 12 immediately transfers the contents of the job log file 141 to the host computer 2 of the job execution commission destination via the communication unit 17 in the FTP format. File transfer is performed.
[0054]
In S315, the job management unit 12 determines whether a log file transfer completion notification returned from the host computer 2 in response to the file transfer has been received. If the determination result is Yes, the process proceeds to S317, and if No, the process proceeds to S316.
[0055]
In step S316, the job management unit 12 determines whether the time elapsed since the file transfer was performed in step S314 is within a predetermined time. If the determination result is Yes, it is regarded that the file transfer has failed due to a file transfer error or some kind of failure in the host computer 2 to which the job execution is entrusted, and the process returns to S311 and repeats the processes of S311 to S316. If it is No, it waits for the reception of the transfer completion notification.
[0056]
In S317, it is determined whether or not the event detected by the event detection unit 15 in S310 and temporarily stored is a job execution consignment event. If the determination result is Yes, the process proceeds to S318. If the determination result is No, the process determines that the event is a power-off event and proceeds to the process of S319.
[0057]
In S318, the contents of the job log file 141 are deleted by the job management unit 12, and the job log file 141 is initialized.
In S319, a power shutoff process such as a process of closing a file opened under the control of a power control unit (not shown) is performed.
[0058]
The processing so far is the job execution entrustment processing in the host computer 1 or 2.
Next, the processing of the host computer as the job execution entrusted computer will be described in detail.
[0059]
FIG. 7 is a flowchart showing a job log file update process in the host computer 2 which is a job execution commission destination.
First, in S410, the job management unit 22 determines whether or not a job log file transfer permission request has been received from the host computer 1 that is the job execution contractor. If the determination result is Yes, the process proceeds to S411, and if No, the process waits until a job log file transfer permission request is received.
[0060]
In S411, it is determined whether or not the job is being executed by the job execution unit 23. This determination process is determined based on the result of the job management unit 22 inquiring the job execution status monitoring unit 26. If the determination result is Yes, the process proceeds to S412. If the determination result is No, the process waits until the currently executing job ends.
[0061]
In step S <b> 412, the job management unit 22 determines whether there is a next waiting job in the job log file 241. If the determination result is Yes, the process proceeds to S413, and if No, the process proceeds to S414.
[0062]
In step S413, the job management unit 22 issues a command to stop the execution start processing of the next waiting job to the job execution unit 23. Then, after the job execution start canceling process in the job executing unit 23 is completed, the process proceeds to S414.
[0063]
In step S414, the job management unit 22 transmits, via the transmission unit 27, a preparation completion notification indicating that the transfer file is in a ready state indicating that the transfer file has been accepted.
[0064]
In S415, it is determined whether the job log file (the log file 141 in FIG. 1) transferred from the request source in the FTP format has been received in response to the transmitted preparation completion notification. If the determination result is Yes, the process proceeds to S416, and if No, the process proceeds to S417.
[0065]
In S416, the received log file (log file 141 in FIG. 1) of the job execution commission source is temporarily stored in an internal memory (not shown), and the stored request source log file and self log file 241 are stored. The job management unit 22 performs a merge process as shown in FIG. As a result of this merge processing, the job submitted at the request source is reset as the job schedule of the request destination.
[0066]
In S417, the job management unit 22 determines whether or not the time that has elapsed since the preparation completion notification was transmitted to the request source in the above-described processing of S414 is within a predetermined time. If the result of this determination is Yes, it is considered that some transmission error or failure has occurred at the request source, and the job log file update processing ends. If No, that is, if within a predetermined time, the process returns to S415 and waits for transfer of a log file from the request source.
[0067]
In S418, after the merge processing in S416 is completed, a log file acceptance completion notification is transmitted by the job management unit 22 to the request source via the communication unit 27.
[0068]
The above processing is the job log file update processing performed by the job execution contractor.
A control program for causing a computer having the standard configuration as described above to execute the various processes shown in FIGS. 4 to 7 described above is created, and the control program is read and executed by the computer. Accordingly, it is also possible to cause such a computer to perform functions corresponding to various processes in the above-described embodiment. Further, the above-described control program is recorded on a computer-readable recording medium, for example, a flexible disk, a CD-ROM, a DVD-ROM, or the like, and the program is read out from the recording medium and executed by the computer. It is also possible to cause such a computer to perform a function corresponding to the above processing.
Further, the recording medium may be a storage device provided in a computer functioning as a program server and connected to the computer via a network. In this case, a transmission signal obtained by modulating a carrier wave with a data signal representing a control program is transmitted from a program server through a network which is a transmission medium, and the computer demodulates the received transmission signal to execute a control program. Is reproduced, the control program can be executed.
[0069]
【The invention's effect】
As described above in detail, according to the present invention, at least two host computers that execute a job according to the job execution schedule information stored in the jublog file, according to a job execution entrustment request by one of the host computers, The log file of the outsourced computer is merged with the log file of another computer to which the job is entrusted by file transfer processing to update the job log file of the outsourced host computer.
[0070]
By doing so, it is possible to automatically reset the job schedule of the host computer to which the job execution is to be entrusted, and it is unnecessary for the administrator to set the job schedule in the host computer of the request destination conventionally. Thus, there is an effect that the load of the job can be easily distributed.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of a job processing system according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating a structure of a job execution program storage destination table.
FIG. 3 is a diagram showing a structure of a job log file.
FIG. 4 is a flowchart illustrating processing contents of job execution processing.
FIG. 5 is a flowchart showing processing contents of a job execution resuming process in S109 in FIG. 4;
FIG. 6 is a flowchart illustrating processing contents of a job execution entrustment processing.
FIG. 7 is a flowchart illustrating processing contents of a job log file update processing.
FIG. 8 is a diagram illustrating a result of a merge process of a job log file.
[Explanation of symbols]
1, 2 Host computer
3 local network
11, 21 Job input section
12, 22 Job management unit
13,23 Job execution unit
14,24 storage unit
141, 142 Job log file
142,242 Program file
143,243 Job result file
15, 25 System status monitor
16.26 Job Execution Status Monitoring Unit
17, 27 Communication unit

Claims (7)

個々に独立してジョブ処理を行なう複数のホストコンピュータがネットワークに接続されるジョブ処理システムにおいて、
前記ホストコンピュータは、
ジョブ名とジョブ実行プログラムを対応付けて記憶するプログラムファイルと、
ジョブ情報を格納するジョブログファイルと、
少なくともジョブ名とジョブ開始日時からなるジョブ情報が入力される毎に、該ジョブ情報とジョブ名に対応する実行プログラムの格納先情報との組をジョブ開始日時に応じて前記ジョブログファイルに格納制御するジョブログファイル管理手段と、
前記ジョブログファイルに格納されたジョブ情報のうち現在日時と一致するジョブ開始日時を有するジョブ情報のジョブ名に従って前記プログラムファイル内のジュブ実行プログラムの起動を行なうジュブ管理手段と、
各種イベントを検出するイベント検出手段と、
前記イベント検出手段が他ホストコンピュータに対するジョブ実行委託を示す特定イベントを検出した際、他ホストコンピュータにジョブ実行委託要求を送出し、該要求に対する応答が戻ってきたときに、前記ジョブログファイルを他ホストコンピュータに転送して他ホストコンピュータでのジョブログファイルの更新処理を行なうファイル転送手段と、
を備えることを特徴とするジョブ処理システム。
In a job processing system in which a plurality of host computers that independently perform job processing are connected to a network,
The host computer,
A program file that stores a job name and a job execution program in association with each other;
A job log file for storing job information,
Each time job information including at least a job name and a job start date and time is input, a set of the job information and the storage location information of the execution program corresponding to the job name is stored in the job log file according to the job start date and time. Job log file management means to be executed;
A job management unit that starts a job execution program in the program file according to a job name of job information having a job start date and time that matches a current date and time among job information stored in the job log file;
An event detecting means for detecting various events;
When the event detecting means detects a specific event indicating a job execution commission to another host computer, it sends a job execution commission request to the other host computer, and when a response to the request is returned, the job log file is copied to another host computer. File transfer means for transferring the job log file to another host computer to update the job log file on another host computer;
A job processing system comprising:
前記ジョブログファイル管理手段は、実行プログラムの格納先を示す情報とジョブ名を対応付けたプログラム格納先テーブルを有し、
入力されたジョブ名に該当する実行プログラム格納先情報を取得して前記入力ジョブ情報に付加することを特徴とする請求項1記載のジョブ処理システム。
The job log file management unit has a program storage destination table in which information indicating a storage destination of an execution program and a job name are associated with each other,
2. The job processing system according to claim 1, wherein execution program storage destination information corresponding to the input job name is acquired and added to the input job information.
前記ファイル転送手段はTCP/IP通信手順に従って前記ジョブログファイル内のジョブ情報をファイル転送することを特徴とする請求項1記載のジョブ処理システム。2. The job processing system according to claim 1, wherein the file transfer unit transfers the job information in the job log file according to a TCP / IP communication procedure. 個々に独立してジョブ処理を行なう複数のホストコンピュータがネットワークに接続されるジョブ処理システムにおいて、
前記ホストコンピュータは、
ジョブ名とジョブ実行プログラムを対応付けて記憶するプログラムファイルと、
ジョブ情報を格納するジョブログファイルと、
少なくともジョブ名とジョブ開始日時からなるジョブ情報が入力される毎に、該ジョブ情報とジョブ名に対応する実行プログラムの格納先情報との組をジョブ開始日時に応じて前記ジョブログファイルに格納制御するジョブログファイル管理手段と、
前記ジョブログファイルに格納されたジョブ情報のうち現在日時と一致するジョブ開始日時を有するジョブ情報のジョブ名に従って前記プログラムファイル内のジュブ実行プログラムの起動を行なうジョブ管理手段と、
他ホストコンピュータからのジョブ実行委託要求を受信する受信手段と、
前記受信手段がジョブ実行委託要求を受信した際に、前記ジョブ管理手段によって実行待機中の次回ジョブが設定されていれば該ジョブの実行を中止にした後に、前記要求に対する受諾応答を前記他ホストコンピュータに送出する第1の応答手段と、
前記応答手段により送出された受諾応答により前記他ホストコンピュータからファイル転送されるジョブログファイルと前記ジョブログファイルを合併して前記ジョブログファイルを更新するファイル更新手段と、
前記ファイル更新手段により更新されたジョブログファイル内の各ジョブ情報に従ってジョブ実行を再開するジョブ再開手段と、
を備えることを特徴とするジョブ処理システム。
In a job processing system in which a plurality of host computers that independently perform job processing are connected to a network,
The host computer,
A program file that stores a job name and a job execution program in association with each other;
A job log file for storing job information,
Each time job information including at least a job name and a job start date and time is input, a set of the job information and the storage location information of the execution program corresponding to the job name is stored in the job log file according to the job start date and time. Job log file management means to be executed;
Job management means for starting a job execution program in the program file according to a job name of job information having a job start date and time matching the current date and time among the job information stored in the job log file;
Receiving means for receiving a job execution commission request from another host computer,
When the receiving unit receives the job execution entrustment request, if the next job waiting for execution is set by the job management unit, execution of the job is stopped, and an acceptance response to the request is sent to the other host. First response means for sending to the computer;
File update means for updating the job log file by merging a job log file transferred from the other host computer with the acceptance response sent by the response means and the job log file;
A job resuming unit for resuming job execution according to each job information in the job log file updated by the file updating unit;
A job processing system comprising:
前記ファイル更新手段によって前記ジョブログファイルが更新された際にファイル更新終了応答をファイル転送元であるジョブ実行委託元のホストコンピュータに送出し、該ジュブ実行委託元ホストコンピュータでのジョブ実行委託終了処理を行なわせる第2の応答手段を、更に備えることを特徴とする請求項4記載のジョブ処理システム。When the job update file is updated by the file updating means, a file update end response is sent to the host computer which is the file transfer source and the job execution entrustment source host computer, and the job execution entrustment end process in the job execution entrustment source host computer 5. The job processing system according to claim 4, further comprising: a second response unit for performing the operation. ジョブ名とジョブ実行プログラムを対応付けて記憶するプログラムファイルと、ジョブ情報を格納するジョブログファイルとを有する個々に独立してジョブ処理を行なう複数のホストコンピュータとがネットワークに接続されるジョブ処理システムで用いられるプログラムであって、
前記プログラムは
前記ホストコンピュータに、
少なくともジョブ名とジョブ開始日時からなるジョブ情報が入力される毎に、該ジョブ情報とジョブ名に対応する実行プログラムの格納先情報との組をジョブ開始日時に応じて前記ジョブログファイルに格納制御を行なう処理と、
前記ジョブログファイルに格納されたジョブ情報のうち現在日時と一致するジョブ開始日時を有するジョブ情報のジョブ名に従って前記プログラムファイル内のジュブ実行プログラムの起動を行なう処理と、
各種イベントを検出する処理と、
前記イベント検出処理が他ホストコンピュータに対するジョブ実行委託を示す特定イベントを検出した際、他ホストコンピュータにジョブ実行委託要求を送出し、該要求に対する応答が戻ってきたときに、前記ジョブログファイルを他ホストコンピュータに転送して他ホストコンピュータでのジョブログファイルの更新処理を行なう処理と、
を行なわせるためのプログラム。
A job processing system in which a plurality of host computers, each having a program file for storing a job name and a job execution program in association with a job execution program and a job log file for storing job information and performing job processing independently, are connected to a network. A program used in
The program is stored in the host computer.
Each time job information including at least a job name and a job start date and time is input, a set of the job information and the storage location information of the execution program corresponding to the job name is stored in the job log file according to the job start date and time. Processing, and
A process of activating a job execution program in the program file according to a job name of job information having a job start date and time matching the current date and time among the job information stored in the job log file;
Processing to detect various events;
When the event detection process detects a specific event indicating a job execution commission to another host computer, it sends a job execution commission request to the other host computer, and when a response to the request is returned, the job log file is copied to another host computer. A process of transferring the job log file to a host computer and updating the job log file on another host computer;
Program to make
ジョブ名とジョブ実行プログラムを対応付けて記憶するプログラムファイルと、ジョブ情報を格納するジョブログファイルとを有する個々に独立してジョブ処理を行なう複数のホストコンピュータとがネットワークに接続されるジョブ処理システムで用いられるプログラムであって、
前記プログラムは、
前記ホストコンピュータに、
少なくともジョブ名とジョブ開始日時からなるジョブ情報が入力される毎に、該ジョブ情報とジョブ名に対応する実行プログラムの格納先情報との組をジョブ開始日時に応じて前記ジョブログファイルに格納制御を行なう処理と、
前記ジョブログファイルに格納されたジョブ情報のうち現在日時と一致するジョブ開始日時を有するジョブ情報のジョブ名に従って前記プログラムファイル内のジュブ実行プログラムの起動を行なう処理と、
他ホストコンピュータからのジョブ実行委託要求を受信する処理と、
前記受信処理がジョブ実行委託要求を受信した際に、前記ジョブ管理手段によって実行待機中の次回ジョブが設定されていれば該ジョブの実行を中止にした後に、前記要求に対する受諾応答を前記他ホストコンピュータに送出する処理と、前記応答処理により送出された受諾応答により前記他ホストコンピュータからファイル転送されるジョブログファイルと前記ジョブログファイルを合併して前記ジョブログファイルを更新する処理と、
前記ファイル更新処理により更新されたジョブログファイル内の各ジョブ情報に従ってジョブ実行を再開する処理と、
を行なわせるためのプログラム。
A job processing system in which a plurality of host computers, each having a program file for storing a job name and a job execution program in association with a job execution program and a job log file for storing job information and performing job processing independently, are connected to a network. A program used in
The program is
In the host computer,
Each time job information including at least a job name and a job start date and time is input, a set of the job information and the storage location information of the execution program corresponding to the job name is stored in the job log file according to the job start date and time. Processing, and
A process of activating a job execution program in the program file according to a job name of job information having a job start date and time matching the current date and time among the job information stored in the job log file;
A process of receiving a job execution commission request from another host computer,
When the reception process receives the job execution commission request, if the next job waiting to be executed is set by the job management unit, the job execution is stopped, and an acceptance response to the request is sent to the other host. Sending the job log file to the computer, updating the job log file by merging the job log file with the job log file transferred from the other host computer based on the acceptance response sent by the response process;
Processing to resume job execution according to each job information in the job log file updated by the file update processing;
Program to make
JP2002372973A 2002-12-24 2002-12-24 Job processing system and program Pending JP2004206298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002372973A JP2004206298A (en) 2002-12-24 2002-12-24 Job processing system and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002372973A JP2004206298A (en) 2002-12-24 2002-12-24 Job processing system and program

Publications (1)

Publication Number Publication Date
JP2004206298A true JP2004206298A (en) 2004-07-22

Family

ID=32811425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002372973A Pending JP2004206298A (en) 2002-12-24 2002-12-24 Job processing system and program

Country Status (1)

Country Link
JP (1) JP2004206298A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730342B2 (en) 2006-03-16 2010-06-01 Fujitsu Limited Server system
JP2018041400A (en) * 2016-09-09 2018-03-15 株式会社リコー Job processing system, job processing device, job processing method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730342B2 (en) 2006-03-16 2010-06-01 Fujitsu Limited Server system
JP2018041400A (en) * 2016-09-09 2018-03-15 株式会社リコー Job processing system, job processing device, job processing method, and program

Similar Documents

Publication Publication Date Title
US6971095B2 (en) Automatic firmware version upgrade system
US7127635B2 (en) Method for correcting a program running on a computer system
US8214686B2 (en) Distributed processing method
US8214695B2 (en) Information processing apparatus and information notification method therefor, and control program
EP1329809B1 (en) Distributed computing system and method
US7904613B2 (en) Network device, network device management method, network device management system
JP2012066453A (en) Image processing apparatus, and method and program for controlling the same
JP4591178B2 (en) Power supply control apparatus, power supply control method, and program
WO2018078902A1 (en) Program operation monitoring control device, distributed object generation and management device, recording medium, and program operation monitoring system
JP2016018339A (en) System and control method for system
JP3597558B2 (en) Information processing equipment
JP2004086769A (en) Application updating processing method, updating processing system, and updating processing program
JP2004139579A (en) Remote management system, its device to be managed, information processing method and program
JP2004206298A (en) Job processing system and program
JP2000137585A (en) Printer, printing system and its controlling method
JP4056794B2 (en) Storage system control method and storage system
JP2001071593A (en) Printing method, printing system and computer readable recording medium
JP7237745B2 (en) Information processing device, method and program
JP2003006018A (en) System, method for restoring processing request, client device and server device
JP6381218B2 (en) Network device, network device control method and program thereof
JP5712606B2 (en) Image processing apparatus, device management system, device management method, device management program, and recording medium recording the program
JP2000082006A (en) Information backup system
JP6208823B2 (en) Information processing system
JP2016088057A (en) Information processing equipment, control method of information processing equipment, and program
JP2007073069A (en) Computer, automatic resource application processing program, and computer-readable record medium with the same recorded therein