JP2702340B2 - Timer management method - Google Patents
Timer management methodInfo
- Publication number
- JP2702340B2 JP2702340B2 JP31404691A JP31404691A JP2702340B2 JP 2702340 B2 JP2702340 B2 JP 2702340B2 JP 31404691 A JP31404691 A JP 31404691A JP 31404691 A JP31404691 A JP 31404691A JP 2702340 B2 JP2702340 B2 JP 2702340B2
- Authority
- JP
- Japan
- Prior art keywords
- timer
- request
- time
- interval
- timer request
- 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.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【産業上の利用分野】本発明は業務プログラムからのタ
イマ要求を管理するタイマ管理方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a timer management system for managing a timer request from a business program.
【0002】[0002]
【従来の技術】従来より、業務プログラムからコンピュ
ータシステムに対して時刻指定タイマ要求,インターバ
ルタイマ要求を行ない、時刻指定タイマ要求によって指
定された時刻になった時或いはインターバルタイマ要求
によって指定された時間が経過した時、コンピュータシ
ステムから外部システムにタイムアウト電文を送信する
ということが行なわれている。2. Description of the Related Art Conventionally, a business program issues a time designation timer request and an interval timer request to a computer system, and when a time designated by the time designation timer request or a time designated by the interval timer request is reached. When the time has elapsed, a timeout message is transmitted from the computer system to the external system.
【0003】図4はこの種の従来技術を説明するための
ブロック図であり、コンピュータ41と、業務プログラ
ム42−1〜42−nと、外部システム43−1〜43
−mとから構成されている。FIG. 4 is a block diagram for explaining this kind of prior art, which includes a computer 41, business programs 42-1 to 42-n, and external systems 43-1 to 43-43.
-M.
【0004】業務プログラム42−i(1≦i≦n)は
外部システム43−j(1≦j≦m)へ時刻T1にタイ
ムアウト電文を送信したい場合、送信元の業務プログラ
ム42−iを示す情報,送信先の外部システム43−j
を示す情報,外部システム43−jに対する操作内容,
上記時刻T1を示す情報及び通し番号を含む時刻指定タ
イマ要求をコンピュータシステム41へ送出すると共
に、業務プログラム42−i内に設けられているタイマ
要求情報管理部に上記時刻指定タイマ要求をタイマ要求
情報として格納し、その後、コンピュータシステム41
からの応答を待ち合わせる。When the business program 42-i (1 ≦ i ≦ n) wants to transmit a timeout message to the external system 43-j (1 ≦ j ≦ m) at time T1, information indicating the business program 42-i of the transmission source , Destination external system 43-j
, The operation content for the external system 43-j,
A time designation timer request including the information indicating the time T1 and the serial number is sent to the computer system 41, and the time designation timer request is provided as timer request information to a timer request information management unit provided in the business program 42-i. Storing and then computer system 41
Wait for a response from.
【0005】また、外部システム43−jへ現在時刻T
2から時間T3後にタイムアウト電文を送信したい場合
は、送信元の業務プログラム42−iを示す情報,送信
先の外部システム43−jを示す情報,外部システム4
3−jに対する操作内容,現在時刻T2,上記時間T3
を示す情報及び通し番号を含むインターバルタイマ要求
をコンピュータシステム41に出力すると共に、業務プ
ログラム42−iに設けられているタイマ要求情報管理
部に上記インターバルタイマ要求をタイマ要求情報とし
て格納し、その後、コンピュータシステム41からの応
答を待ち合わせる。The external system 43-j sends the current time T to the external system 43-j.
When a time-out message is to be transmitted after time T3 from time 2, information indicating the business program 42-i of the transmission source, information indicating the external system 43-j of the transmission destination, and the external system 4
3-j operation contents, current time T2, time T3
And an interval timer request including the serial number and the serial number are output to the computer system 41, and the interval timer request is stored as timer request information in the timer request information management unit provided in the business program 42-i. Wait for a response from the system 41.
【0006】コンピュータシステム41は業務プログラ
ム42−iからタイマ要求(時刻指定タイマ要求,イン
ターバルタイマ要求)が加えられると、先ず、そのタイ
マ要求を受け付けることができるか否かを判断する。即
ち、コンピュータシステム41で同時に処理可能なタイ
マ要求の個数は予め定まっているため、現在処理中のタ
イマ要求の個数がその上限値になっている場合はタイマ
要求を受け付けることができないと判断し、上限値未満
の場合は受け付けるとができると判断する。When a timer request (time designation timer request, interval timer request) is added from the business program 42-i, the computer system 41 first determines whether or not the timer request can be accepted. That is, since the number of timer requests that can be processed simultaneously by the computer system 41 is predetermined, if the number of timer requests currently being processed has reached its upper limit, it is determined that the timer request cannot be accepted, If it is less than the upper limit, it is determined that it can be accepted.
【0007】そして、タイマ要求を受け付けることがで
きないと判断した場合はコンピュータシステム41は要
求元の業務プログラム42−iに否定応答を返すことに
より、タイマ要求を受け付けることができないことを通
知する。業務プログラム42−iは否定応答を受ける
と、再度、コンピュータシステム41に対してタイマ要
求を行なう。If it is determined that the timer request cannot be accepted, the computer system 41 notifies the requesting business program 42-i that the timer request cannot be accepted by returning a negative response. Upon receiving the negative response, the business program 42-i issues a timer request to the computer system 41 again.
【0008】また、タイマ要求を受け付けることができ
ると判断した場合はコンピュータシステム41は要求元
の業務プログラム42−iに肯定応答を返すことによ
り、タイマ要求を受け付けたことを通知し、そのタイマ
要求に対する処理を開始する。If it is determined that the timer request can be accepted, the computer system 41 returns an acknowledgment to the requesting business program 42-i, thereby notifying that the timer request has been accepted. Start processing for.
【0009】要求元の業務プログラム42−iは肯定応
答が返されると、応答待ちのために中断していた処理を
再開する。When the requesting business program 42-i returns an affirmative response, it resumes the processing interrupted for the response.
【0010】また、タイマ要求に対する処理を開始した
コンピュータシステム41は時刻指定タイマ要求によっ
て指定された時刻T1となることにより、或いはインタ
ーバルタイマ要求に含まれている時刻T2から時間T3
が経過した時刻となることにより、外部システム43−
jに操作内容を含むタイムアウト電文を送信すると共
に、送信元の業務プログラム42−iに処理した時刻指
定タイマ要求,インターバルタイマ要求に付加されてい
る通し番号を含むタイムアウト電文を送信する。Further, the computer system 41 which has started the processing for the timer request receives the time T1 specified by the time specification timer request or the time T3 from the time T2 included in the interval timer request.
Of the external system 43-
A timeout message including the operation content is transmitted to j, and a timeout message including a serial number added to the processed time designation timer request and interval timer request is transmitted to the business program 42-i of the transmission source.
【0011】外部システム43−jはタイムアウト電文
がコンピュータシステム41から送られてくることによ
り、それに含まれている操作内容に従った処理を行な
う。The external system 43-j receives the timeout message from the computer system 41, and performs a process according to the operation content contained therein.
【0012】また、要求元の業務プログラム42−iは
コンピュータシステム41からタイムアウト電文が返さ
れることにより、タイマ要求情報管理部中のタイマ要求
情報の内、タイムアウト電文に含まれている通し番号を
有するタイマ要求情報に処理済みを示すフラグを付加す
る。即ち、処理の行なわれたタイマ要求対応のタイマ要
求情報は処理済みを示すフラグが付加されるので、タイ
マ要求情報管理部の内容を参照することにより未処理の
タイマ要求を確認することができ、障害解析,動作確認
等に役立てることができる。In response to the time-out message returned from the computer system 41, the business program 42-i as the request source receives a time-out message from the timer request information in the timer request information management unit and has a serial number included in the time-out message. A flag indicating that processing has been completed is added to the request information. That is, a flag indicating that processing has been completed is added to the timer request information corresponding to the processed timer request, so that an unprocessed timer request can be confirmed by referring to the contents of the timer request information management unit. This can be used for failure analysis, operation confirmation, and the like.
【0013】[0013]
【発明が解決しようとする課題】上述したように、従来
は、コンピュータシステムが受け付けることができるタ
イマ要求の数が予め決まっており、業務プログラムはタ
イマ要求が受け付けられなかった場合、再度タイマ要求
を出力しなければならなかったため、タイマ要求によっ
て業務プログラムの処理が妨げられてしまうという問題
があった。As described above, conventionally, the number of timer requests that can be accepted by a computer system is determined in advance, and if a timer request is not accepted, the business program issues a timer request again. Since it had to be output, there was a problem that the processing of the business program was hindered by the timer request.
【0014】本発明の目的は、タイマ要求によって業務
プログラムの処理が妨げられることのないタイマ管理方
式を提供することにある。It is an object of the present invention to provide a timer management system in which the processing of a business program is not hindered by a timer request.
【0015】[0015]
【課題を解決するための手段】本発明は上記目的を達成
するため、(A)時刻指定タイマ要求を送出する業務プ
ログラムと、該業務プログラムからの時刻指定タイマ要
求をタイマ管理データベースに格納すると共に待ち行列
につなぎ、前記待ち行列の先頭につながれている時刻指
定タイマ要求を出力し、出力した時刻指定タイマ要求が
受け付けられることにより前記待ち行列につながれてい
る次の時刻指定タイマ要求を出力し、受け付けられない
ことにより前記待ち行列の先頭につながれている時刻指
定タイマ要求を再度出力するタイマ管理部と、該タイマ
管理部から出力された時刻指定タイマ要求を受け付け可
能か否かを判定し、受け付け可能と判定することにより
前記タイマ管理部からの時刻指定タイマ要求を受け付
け、受け付けた時刻指定タイマ要求が示す時刻となるこ
とにより外部システムにタイムアウト電文を送出すると
共に前記タイマ管理部に処理を行なった時刻指定タイマ
要求を示すタイムアウト通知を送出するコンピュータシ
ステムとを設け、前記タイマ管理部は前記コンピュータ
システムからタイムアウト通知が加えられることによ
り、前記タイマ管理データベースに格納されている時刻
指定タイマ要求の内、前記タイムアウト通知によって示
される時刻指定タイマ要求に処理済みを示す情報を付加
するようにしたものである。In order to achieve the above object, the present invention provides: (A) a business program for sending a time designation timer request, and storing the time designation timer request from the business program in a timer management database. Connected to the queue, output a time specification timer request that is connected to the head of the queue, and output the next time specification timer request that is connected to the queue by receiving the output time specification timer request; A timer management unit that re-outputs the time-specified timer request that is connected to the head of the queue because it is not accepted; and determines whether the time-designated timer request output from the timer management unit can be accepted, and A time designation timer request from the timer management unit is accepted by determining that the A computer system that sends a time-out message to an external system when the time indicated by the fixed timer request is reached, and sends a time-out notification indicating the time designation timer request that has performed processing to the timer management unit; By adding the timeout notification from the computer system, information indicating that the processing has been completed is added to the time specification timer request indicated by the timeout notification among the time specification timer requests stored in the timer management database. Things.
【0016】また、本発明は上記目的を達成するため、
(B)インターバルタイマ要求を出力する業務プログラ
ムと、該業務プログラムから出力されたインターバルタ
イマ要求をタイマ管理データベースに格納すると共に待
ち行列につなぎ、前記業務プログラムから前記インター
バルタイマ要求が出力されてから前記インターバルタイ
マ要求が示す時間が経過することにより前記タイマ管理
データベースに格納した前記インターバルタイマ要求に
処理済みを示す情報を付加し、前記待ち行列の先頭につ
ながれているインターバルタイマ要求を出力し、出力し
たインターバルタイマ要求が受け付けられることにより
前記待ち行列につながれている次のインターバルタイマ
要求を出力し、受け付けられないことにより前記待ち行
列の先頭につながれているインターバルタイマ要求を再
度出力するタイマ管理部と、該タイマ管理部から出力さ
れたインターバルタイマ要求を受け付け可能か否かを判
定し、受け付け可能と判定することより前記タイマ管理
部からのインターバルタイマ要求を受け付け、前記業務
プログラムが前記インターバルタイマ要求を出力した時
刻から前記インターバルタイマ要求が示す時間が経過し
た時刻になることにより外部システムにタイムアウト電
文を送出するコンピュータシステムとを設けたものであ
る。Further, the present invention achieves the above object,
(B) a business program that outputs an interval timer request, and the interval timer request output from the business program are stored in a timer management database and queued, and after the interval timer request is output from the business program, When the time indicated by the interval timer request elapses, information indicating that processing has been completed is added to the interval timer request stored in the timer management database, and the interval timer request connected to the head of the queue is output and output. A timer that outputs the next interval timer request that is connected to the queue when an interval timer request is accepted, and outputs again the interval timer request that is connected to the head of the queue when it is not accepted. And determining whether or not the interval timer request output from the timer management unit can be accepted, and accepting the interval timer request from the timer management unit by determining that the interval timer request can be accepted. A computer system for sending a timeout message to an external system when the time indicated by the interval timer request has elapsed from the time at which the timer request was output.
【0017】[0017]
【作用】(A)の構成に於いては、業務プログラムから
時刻指定タイマ要求が出力されると、タイマ管理部はそ
れをタイマ管理データベースに格納すると共に待ち行列
につなぐ。タイマ管理部は待ち行列に時刻指定タイマ要
求がつながれている場合、その先頭につながれている時
刻指定タイマ要求をコンピュータシステムに出力する。
そして、コンピュータシステムに出力した時刻指定タイ
マ要求が受け付けられた場合は待ち行列につながれてい
る次の時刻指定タイマ要求をコンピュータシステムに出
力し、受け付けられなかった場合は待ち行列の先頭につ
ながれている時刻指定タイマ要求を再度コンピュータシ
ステムに出力する。In the configuration (A), when a time designation timer request is output from the business program, the timer management unit stores it in the timer management database and queues it. When a time designation timer request is connected to the queue, the timer management unit outputs the time designation timer request connected to the head of the request to the computer system.
If the time-specified timer request output to the computer system is accepted, the next time-specified timer request that is enqueued is output to the computer system, and if not, it is enqueued at the head of the queue. The time designation timer request is output to the computer system again.
【0018】コンピュータシステムはタイマ管理部から
時刻指定タイマ要求が加えられると、それが受け付け可
能か否かを判定する。そして、受け付け可能と判定する
ことにより、タイマ管理部からの時刻指定タイマ要求を
受け付け、受け付けた時刻指定タイマ要求が示す時刻と
なることにより外部システムにタイムアウト電文を送出
すると共に、タイマ管理部に処理が完了したタイマ要求
を示すタイムアウト通知を送出する。When a time designation timer request is added from the timer management unit, the computer system determines whether the request can be accepted. When it is determined that the request can be accepted, a time designation timer request from the timer management unit is accepted, and a time-out message is sent to the external system when the time indicated by the accepted time designation timer request comes, and the process is sent to the timer management unit. Sends a timeout notification indicating the completed timer request.
【0019】タイムアウト通知が送られてくると、タイ
マ管理部はタイマ管理データベースに格納されている時
刻指定タイマ要求の内のタイムアウト通知が示す時刻指
定タイマ要求に処理済みを示す情報を付加する。When the timeout notification is sent, the timer management unit adds information indicating that the processing has been completed to the time specification timer request indicated by the timeout notification among the time specification timer requests stored in the timer management database.
【0020】(B)の構成に於いては、業務プログラム
からインターバルタイマ要求が出力されると、タイマ管
理部はインターバルタイマ要求をタイマ管理データベー
スに格納すると共に待ち行列につなぐ。In the configuration (B), when an interval timer request is output from the business program, the timer management unit stores the interval timer request in the timer management database and queues it.
【0021】タイマ管理データベースに格納されたイン
ターバルタイマ要求には、それが示す時間が経過した
時、タイマ管理部によって処理済みを示す情報が付加さ
れる。The interval timer request stored in the timer management database is added with information indicating that processing has been completed by the timer management unit when the time indicated by the request has elapsed.
【0022】また、待ち行列の先頭につながれているイ
ンターバルタイマ要求はタイマ管理部によってコンピュ
ータシステムに送出される。そして、コンピュータシス
テムによって受け付けられなかった場合は再度送出さ
れ、受け付けられた場合は待ち行列につながれている次
のインターバルタイマ要求がコンピュータシステムに送
出される。The interval timer request connected to the head of the queue is sent to the computer system by the timer management unit. If the request is not received by the computer system, the request is transmitted again. If the request is received, the next interval timer request in the queue is transmitted to the computer system.
【0023】コンピュータシステムはタイマ管理部から
インターバルタイマ要求が加えられると、それが受け付
け可能か否かを判定する。そして、受け付け可能と判定
することにより、タイマ管理部からのインターバルタイ
マ要求を受け付け、業務プログラムがインターバルタイ
マ要求を出力してからインターバルタイマ要求が示す時
間が経過した時に外部システムにタイムアウト電文を送
出する。When an interval timer request is added from the timer management unit, the computer system determines whether the request can be accepted. Then, by determining that the interval timer request can be accepted, an interval timer request from the timer management unit is accepted, and a timeout message is sent to the external system when the time indicated by the interval timer request has elapsed since the business program output the interval timer request. .
【0024】[0024]
【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.
【0025】図1は本発明の実施例のブロック図であ
り、コンピュータシステム1と、待ち行列21を有する
タイマ管理部2と、初期設定プログラム3と、業務プロ
グラム4−1〜4−nと、タイマ管理データベース5
と、外部システム6−1〜6−mとから構成されてい
る。FIG. 1 is a block diagram of an embodiment of the present invention. A computer system 1, a timer management unit 2 having a queue 21, an initialization program 3, business programs 4-1 to 4-n, Timer management database 5
And external systems 6-1 to 6-m.
【0026】図2,図3は本実施例の動作説明図であ
り、図1と同一符号は同一部分を表している。FIGS. 2 and 3 are explanatory diagrams of the operation of the present embodiment, and the same reference numerals as those in FIG. 1 denote the same parts.
【0027】システム立上げ時、初期設定プログラム3
はコンピュータシステム1に対して現在時刻及び時間間
隔(本実施例では5秒とする)を示す固定インターバル
を通知する。コンピュータシステム1は固定インターバ
ル(5秒)が通知されると、以後、タイマ管理部2に5
秒毎にインターバル通知aを行なう。At the time of system startup, an initial setting program 3
Notifies the computer system 1 of a fixed time interval indicating a current time and a time interval (5 seconds in this embodiment). When the computer system 1 is notified of the fixed interval (5 seconds), the computer system 1 thereafter sends 5
An interval notification a is made every second.
【0028】業務プログラム4−i(1≦i≦n)は外
部システム6−j(1≦j≦m)へ11時30分にタイ
ムアウト電文を送信したい場合、図2に示すように、上
記時刻11時30分,送信元の業務プログラム4−i,
送信先の外部システム6−j,外部システム6−jに対
する操作内容及び通し番号を含む時刻指定タイマ要求b
をタイマ管理部2に送信する。If the business program 4-i (1 ≦ i ≦ n) wants to transmit a timeout message at 11:30 to the external system 6-j (1 ≦ j ≦ m), as shown in FIG. At 11:30, the source business program 4-i,
External system 6-j at the transmission destination, time designation timer request b including the operation content and serial number for external system 6-j
Is transmitted to the timer management unit 2.
【0029】タイマ管理部2は業務プログラム4−iか
ら送られてきた時刻指定タイマ要求bをタイマ要求情報
としてタイマ管理データベース5に格納すると共に、待
ち行列21につなぐ。タイマ管理部2は待ち行列21に
タイマ要求がつながれている場合、その先頭につながれ
ているタイマ要求をコンピュータシステム1に送信す
る。今、例えば、上記した時刻指定タイマ要求bが待ち
行列21の先頭につながれているとすると、タイマ管理
部2は上記時刻指定タイマ要求bをコンピュータシステ
ム1に送信することになる。The timer management unit 2 stores the time designation timer request b sent from the business program 4-i in the timer management database 5 as timer request information, and connects it to the queue 21. When a timer request is connected to the queue 21, the timer management unit 2 transmits the timer request connected to the head of the timer request to the computer system 1. Now, for example, assuming that the above-mentioned time designation timer request b is connected to the head of the queue 21, the timer management unit 2 transmits the time designation timer request b to the computer system 1.
【0030】コンピュータシステム1はタイマ管理部2
から時刻指定タイマ要求bが送られてくると、それを受
け付けることができるか否かを前述した従来技術と同様
にして判断し、受け付けることができると判断した場合
は肯定応答を、受け付けることができないと判断した場
合は否定応答をタイマ管理部2に返す。The computer system 1 includes a timer management unit 2
When a time designation timer request b is sent from the server, it is determined whether or not the request can be accepted in the same manner as in the above-described conventional technique. If it is determined that the request can be accepted, an acknowledgment may be accepted. If it is determined that it cannot be performed, a negative response is returned to the timer management unit 2.
【0031】タイマ管理部2は図2に示すように、肯定
応答が返された場合は待ち行列21につながれている次
のタイマ要求に対して前述したと同様の処理を行なう。
また、否定応答が返された場合はタイマ管理部2は再度
待ち行列21の先頭につながれている時刻指定タイマ要
求bをコンピュータシステム1に送信する。As shown in FIG. 2, when an acknowledgment is returned, the timer management unit 2 performs the same processing as described above for the next timer request connected to the queue 21.
When a negative response is returned, the timer management unit 2 transmits to the computer system 1 a time designation timer request b connected to the head of the queue 21 again.
【0032】コンピュータシステム1は時刻指定タイマ
要求bによって指定された時刻(11時30分)になる
と、時刻指定タイマ要求bに含まれている操作内容を示
すタイムアウト電文cを送信先の外部システム6−jに
送信すると共に、時刻指定タイマ要求bに含まれている
送信元の業務プログラム4−i及び通し番号を含むタイ
ムアウト通知dをタイマ管理部2に送信する。At the time (11:30) designated by the time designation timer request b, the computer system 1 sends a timeout message c indicating the operation content included in the time designation timer request b to the external system 6 of the transmission destination. -J, and a time-out notice d including the transmission source business program 4-i and the serial number included in the time designation timer request b to the timer management unit 2.
【0033】外部システム6−jはコンピュータシステ
ム1からタイムアウト電文cが送られてくると、それに
含まれている操作内容に従った処理を行なう。When the timeout message c is sent from the computer system 1, the external system 6-j performs a process according to the operation content contained therein.
【0034】また、タイマ管理部2はコンピュータシス
テム1から送信元の業務プログラム4−i及び通し番号
を含むタイムアウト通知dが送られてくると、タイマ管
理データベース5が管理しているタイマ要求情報の内、
上記送信元の業務プログラム4−i及び通し番号を含む
タイマ要求情報(時刻指定タイマ要求b対応のタイマ要
求情報)に処理済みを示すフラグを付加する。When the timer management unit 2 receives the time-out notification d including the business program 4-i and the serial number of the transmission source from the computer system 1, the timer management unit 2 reads out the timer request information managed by the timer management database 5. ,
A flag indicating that processing has been completed is added to the timer request information (timer request information corresponding to the time designation timer request b) including the source business program 4-i and the serial number.
【0035】次に、図3を参照して業務プログラム4−
iが外部システム6−jに現在時刻(例えば10時01
分40秒)から所定時間後(例えば40秒後)にタイム
アウト電文を送信する場合の動作を説明する。Next, referring to FIG.
i notifies the external system 6-j of the current time (for example, 10:01)
An operation when a timeout message is transmitted after a predetermined time (for example, after 40 seconds) from (minute 40 seconds) will be described.
【0036】業務プログラム4−iは現在時刻10時0
1分40秒から40秒後にタイムアウト電文を外部シス
テム6−jに送信したい場合、送信元の業務プログラム
4−i,送信先の外部システム6−j,外部システム6
−jに対する操作内容,現在時刻(10時01分40
秒),インターバル時間(40秒)及び通し番号を含む
インターバルタイマ要求eをタイマ管理部2に送信す
る。The business program 4-i has a current time of 10:00.
To transmit a timeout message to the external system 6-j after 1 minute 40 seconds to 40 seconds, the business program 4-i of the transmission source, the external system 6-j of the transmission destination, and the external system 6
-J operation contents, current time (10:01:40)
(Second), an interval time (40 seconds), and an interval timer request e including a serial number are transmitted to the timer management unit 2.
【0037】タイマ管理部2は上記インターバルタイマ
要求eが加えられると、前述したと同様にインターバル
タイマ要求eをタイマ要求情報としてタイマ管理データ
ベース5に格納すると共に待ち行列21につなぐ。ま
た、タイマ管理部2はインターバル時間(40秒)を含
むインターバルタイマ要求が加えられた場合は、コンピ
ュータシステム1から5秒毎に加えられるインターバル
通知aに基づいたインターバル時間の計測処理を開始
し、インターバル時間(40秒)が経過すると、タイマ
管理データベース5に格納されているタイマ要求情報の
内、上記インターバルタイマ要求eに対応するタイマ要
求情報に処理済みを示すフラグを付加する。When the interval timer request e is added, the timer management unit 2 stores the interval timer request e as timer request information in the timer management database 5 and connects it to the queue 21 as described above. Further, when an interval timer request including an interval time (40 seconds) is added, the timer management unit 2 starts an interval time measurement process based on an interval notification a added every 5 seconds from the computer system 1, When the interval time (40 seconds) has elapsed, a flag indicating that processing has been completed is added to the timer request information corresponding to the interval timer request e among the timer request information stored in the timer management database 5.
【0038】また、タイマ管理部2は前述したと同様
に、待ち行列21につながれたインターバルタイマ要求
eをコンピュータシステム1に送信し、コンピュータシ
ステム1から否定応答が返された場合はインターバルタ
イマ要求eを再送し、肯定応答が返された場合は待ち行
列21につながれている次のタイマ要求を送出する。As described above, the timer management unit 2 transmits the interval timer request e connected to the queue 21 to the computer system 1 and, if a negative response is returned from the computer system 1, the interval timer request e Is resent, and if an acknowledgment is returned, the next timer request connected to the queue 21 is sent out.
【0039】コンピュータシステム1はタイマ管理部2
から送られてきたインターバルタイマ要求eを受け付け
ると、それに含まれている現在時刻(10時01分40
秒)とインターバル時間(40秒)からタイムアウト電
文fの送信時刻(10時02分20秒)を求める。そし
て、送信時刻(10時02分20秒)になると、コンピ
ュータシステム1は外部システム6−jに対して操作内
容を含むタイムアウト電文を送信する。The computer system 1 includes a timer management unit 2
When the interval timer request e sent from the server is received, the current time (10:01:40) included in the request is received.
The transmission time (10:02:20) of the timeout message f is obtained from the second time) and the interval time (40 seconds). Then, at the transmission time (10:02:20), the computer system 1 transmits a timeout message including the operation content to the external system 6-j.
【0040】次に、障害解析,動作確認等のために業務
プログラム4−iがタイマ管理データベース5の内容を
読み出す場合の動作を説明する。Next, the operation when the business program 4-i reads the contents of the timer management database 5 for failure analysis, operation confirmation, and the like will be described.
【0041】業務プログラム4−iはタイマ管理データ
ベース5の内容を読み出す場合、タイマ管理部2に対し
て業務プログラム4−iを示す情報を含む読み出し要求
を送出する。タイマ管理部2は業務プログラム4−iか
ら読み出し要求が加えられると、タイマ管理データベー
ス5から送信元が業務プログラム4−iになっているタ
イマ管理情報を読み出し、読み出したタイマ管理情報を
業務プログラム4−iに送信する。タイマ管理部2から
送られてくるタイマ管理情報の内、処理済みのタイマ要
求に対応するタイマ要求情報には処理済みを示すフラグ
が付加されているので、障害解析,動作確認等を行なう
ことができる。When reading the contents of the timer management database 5, the business program 4-i sends a read request including information indicating the business program 4-i to the timer management unit 2. When the read request is added from the business program 4-i, the timer management unit 2 reads the timer management information whose source is the business program 4-i from the timer management database 5, and stores the read timer management information in the business program 4i. Send to -i. Among the timer management information sent from the timer management unit 2, a flag indicating that processing has been completed is added to the timer request information corresponding to the processed timer request, so that failure analysis, operation confirmation, and the like can be performed. it can.
【0042】次に、業務プログラム4−iが一度送出し
た時刻指定タイマ要求,インターバルタイマ要求をキャ
ンセルする場合の動作を説明する。Next, the operation for canceling the time designation timer request and interval timer request once transmitted by the business program 4-i will be described.
【0043】業務プログラム4−iは一度送出した時刻
指定タイマ要求,インターバルタイマ要求をキャンセル
する場合、業務プログラム4−iを示す情報及び上記時
刻指定タイマ要求,インターバルタイマ要求に含まれて
いる通し番号を含むキャンセル要求をタイマ管理部2に
送出する。When the business program 4-i cancels the once-transmitted time designation timer request and interval timer request, the information indicating the business program 4-i and the serial number included in the time specification timer request and interval timer request are used. A cancel request including the cancel request is sent to the timer management unit 2.
【0044】タイマ管理部2は業務プログラム4−iか
らキャンセル要求が加えられると、待ち行列21にキャ
ンセル要求された時刻指定タイマ要求,インターバルタ
イマ要求がつながれている場合はそれを待ち行列21か
ら外し、待ち行列21につながれていない場合はコンピ
ュータシステム1に対してキャンセル要求を行なう。ま
た、キャンセル要求がインターバル時間を含むインター
バルタイマ要求に対するものである場合は、インターバ
ル通知aに従った計測処理を中止する。When a cancel request is added from the business program 4-i, the timer management unit 2 removes the time designation timer request and the interval timer request from the queue 21 if the cancel request is connected to the queue 21. If it is not connected to the queue 21, it issues a cancel request to the computer system 1. If the cancel request is for an interval timer request including an interval time, the measurement process according to the interval notification a is stopped.
【0045】コンピュータシステム1はタイマ管理部2
からキャンセル要求が加えられると、キャンセル要求さ
れた時刻指定タイマ要求,インターバルタイマ要求に対
する処理を中止する。The computer system 1 includes a timer management unit 2
When the cancel request is added from the request, the processing for the time designation timer request and the interval timer request for which the cancel request is made is stopped.
【0046】次に業務プログラム4−iが現在時刻を得
る場合の動作を説明する。Next, the operation when the business program 4-i obtains the current time will be described.
【0047】業務プログラム4−iは現在時刻を得る場
合、タイマ管理部2に対して時刻通知要求を行なう。タ
イマ管理部2は時刻通知要求を受けると、コンピュータ
システム1に時刻通知要求を渡す。これにより、コンピ
ュータシステム1は現在時刻をタイマ管理部2に渡し、
タイマ管理部2は現在時刻を要求元の業務プログラム4
−iに渡す。To obtain the current time, the business program 4-i issues a time notification request to the timer management unit 2. When receiving the time notification request, the timer management unit 2 passes the time notification request to the computer system 1. Thereby, the computer system 1 passes the current time to the timer management unit 2 and
The timer management unit 2 requests the current time from the business program 4
-Pass to i.
【0048】[0048]
【発明の効果】以上説明したように、本発明は、業務プ
ログラムからの時刻指定タイマ要求,インターバルタイ
マ要求を待ち行列につなぎ、コンピュータシステムによ
って時刻指定タイマ要求,インターバルタイマ要求が受
け付けられることにより待ち行列につながれている時刻
指定タイマ要求,インターバルタイマ要求を順次コンピ
ュータシステムに送出するタイマ管理部を備えており、
従来技術のように、業務プログラムがコンピュータシス
テムからの応答を待つ必要がなくなるので、時刻指定タ
イマ要求,インターバルタイマ要求によって業務プログ
ラムの処理が妨げられることがなくなる効果がある。As described above, according to the present invention, a time designation timer request and an interval timer request from a business program are connected to a queue, and the computer system accepts the time designation timer request and the interval timer request to wait. A timer management unit for sequentially sending a time designation timer request and an interval timer request connected to the queue to the computer system;
Unlike the prior art, there is no need for the business program to wait for a response from the computer system, so that the processing of the business program is not hindered by the time designation timer request and the interval timer request.
【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.
【図2】時刻指定タイマ要求が出力された時の動作説明
図である。FIG. 2 is an operation explanatory diagram when a time designation timer request is output.
【図3】インターバルタイマ要求時が出力された時の動
作説明図である。FIG. 3 is an operation explanatory diagram when an interval timer request is output.
【図4】従来例のブロック図である。FIG. 4 is a block diagram of a conventional example.
1,41…コンピュータシステム 2…タイマ管理部 21…待ち行列 3…初期設定プログラム 4−1〜4−n,42−1〜42−n…業務プログラム 5…タイマ管理データベース 6−1〜6−m,43−1〜43−m…外部システム 1, 41: Computer system 2: Timer management unit 21: Queue 3: Initial setting program 4-1 to 4-n, 42-1 to 42-n: Business program 5: Timer management database 6-1 to 6-m , 43-1 to 43-m ... external system
Claims (3)
グラムと、 該業務プログラムからの時刻指定タイマ要求をタイマ管
理データベースに格納すると共に待ち行列につなぎ、前
記待ち行列の先頭につながれている時刻指定タイマ要求
を出力し、出力した時刻指定タイマ要求が受け付けられ
ることにより前記待ち行列につながれている次の時刻指
定タイマ要求を出力し、受け付けられないことにより前
記待ち行列の先頭につながれている時刻指定タイマ要求
を再度出力するタイマ管理部と、 該タイマ管理部から出力された時刻指定タイマ要求を受
け付け可能か否かを判定し、受け付け可能と判定するこ
とにより前記タイマ管理部からの時刻指定タイマ要求を
受け付け、受け付けた時刻指定タイマ要求が示す時刻と
なることにより外部システムにタイムアウト電文を送出
すると共に前記タイマ管理部に処理を行なった時刻指定
タイマ要求を示すタイムアウト通知を送出するコンピュ
ータシステムとを備え、 前記タイマ管理部は前記コンピュータシステムからタイ
ムアウト通知が加えられることにより、前記タイマ管理
データベースに格納されている時刻指定タイマ要求の
内、前記タイムアウト通知によって示される時刻指定タ
イマ要求に処理済みを示す情報を付加することを特徴と
するタイマ管理方式。1. A business program for sending a time designation timer request, a time designation timer request from the business program stored in a timer management database and connected to a queue, and a time designation timer connected to the head of the queue. A time designation timer that outputs a request and outputs the next time designation timer request that is enqueued by receiving the output time designation timer request, and that is entrained at the head of the queue by not being accepted. A timer management unit for outputting the request again, and determining whether or not the time designation timer request output from the timer management unit can be accepted, and determining that the time designation timer request from the timer management unit can be accepted. When the time indicated by the received time specification timer request is received, the external system A computer system that sends a timeout message and sends a timeout notification indicating a time designation timer request that has performed processing to the timer management unit, wherein the timer management unit receives the timeout notification from the computer system, A timer management method characterized in that information indicating that processing has been completed is added to a time designation timer request indicated by the timeout notification among time designation timer requests stored in the timer management database.
プログラムと、 該業務プログラムから出力されたインターバルタイマ要
求をタイマ管理データベースに格納すると共に待ち行列
につなぎ、前記業務プログラムから前記インターバルタ
イマ要求が出力されてから前記インターバルタイマ要求
が示す時間が経過することにより前記タイマ管理データ
ベースに格納した前記インターバルタイマ要求に処理済
みを示す情報を付加し、前記待ち行列の先頭につながれ
ているインターバルタイマ要求を出力し、出力したイン
ターバルタイマ要求が受け付けられることにより前記待
ち行列につながれている次のインターバルタイマ要求を
出力し、受け付けられないことにより前記待ち行列の先
頭につながれているインターバルタイマ要求を再度出力
するタイマ管理部と、 該タイマ管理部から出力されたインターバルタイマ要求
を受け付け可能か否かを判定し、受け付け可能と判定す
ることより前記タイマ管理部からのインターバルタイマ
要求を受け付け、前記業務プログラムが前記インターバ
ルタイマ要求を出力した時刻から前記インターバルタイ
マ要求が示す時間が経過した時刻になることにより外部
システムにタイムアウト電文を送出するコンピュータシ
ステムとを備えたことを特徴とするタイマ管理方式。2. A business program for outputting an interval timer request, an interval timer request output from the business program is stored in a timer management database and queued, and the interval timer request is output from the business program. Appends information indicating that processing has been completed to the interval timer request stored in the timer management database as the time indicated by the interval timer request elapses, and outputs an interval timer request linked to the head of the queue, When the output interval timer request is accepted, the next interval timer request connected to the queue is output, and when the interval timer request is not accepted, the interval timer request connected to the head of the queue is output again. A timer management unit, determining whether or not the interval timer request output from the timer management unit can be received, and accepting the interval timer request from the timer management unit by determining that the interval timer request can be received; A timer management system comprising: a computer system that sends a time-out message to an external system when the time indicated by the interval timer request has elapsed from the time at which the interval timer request was output.
刻指定タイマ要求或いはインターバルタイマ要求の数に
基づいて前記業務プログラムからの時刻指定タイマ要求
またはインターバルタイマ要求を受け付けるか否かを判
定することを特徴とする請求項1または2記載のタイマ
管理方式。3. The method according to claim 1, wherein the computer system determines whether to accept a time designation timer request or an interval timer request from the business program based on the number of time designation timer requests or interval timer requests being processed. 3. The timer management system according to claim 1, wherein
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31404691A JP2702340B2 (en) | 1991-10-31 | 1991-10-31 | Timer management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31404691A JP2702340B2 (en) | 1991-10-31 | 1991-10-31 | Timer management method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05127923A JPH05127923A (en) | 1993-05-25 |
| JP2702340B2 true JP2702340B2 (en) | 1998-01-21 |
Family
ID=18048567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP31404691A Expired - Fee Related JP2702340B2 (en) | 1991-10-31 | 1991-10-31 | Timer management method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2702340B2 (en) |
-
1991
- 1991-10-31 JP JP31404691A patent/JP2702340B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05127923A (en) | 1993-05-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100349225B1 (en) | a token-based deadline enforcement for electronic document submission | |
| US8190743B2 (en) | Most eligible server in a common work queue environment | |
| US20100141983A1 (en) | System, method, and apparatus for networked print management | |
| JPH01142963A (en) | Data transfer control | |
| US20020138558A1 (en) | Managing and processing print jobs in a networked computer environment | |
| JPH0786867B2 (en) | Work flow control method, work request flow control method and device, and communication management device | |
| JP2702340B2 (en) | Timer management method | |
| JPH04332234A (en) | Viewing management device | |
| JPH0762856B2 (en) | Seat reservation system | |
| JP3423477B2 (en) | Printing method and system | |
| JP3905656B2 (en) | Communication network system | |
| JP2003303171A (en) | Request processing method during congestion | |
| JPH0553948A (en) | Inter-process communication system | |
| JPH1141274A (en) | E-mail management method and system, and storage medium storing e-mail management program | |
| JPH09200292A (en) | Data transmission method and apparatus | |
| JPH04181461A (en) | How to manage distributed files | |
| JPH0381852A (en) | Connection control system | |
| JPH0581116A (en) | Database managing system | |
| JPH03117139A (en) | Query response management method | |
| JPS63169149A (en) | Dynamic transmission schedule system | |
| JPH0895839A (en) | Data backup method | |
| JP2002314744A (en) | Network distribution device | |
| JP2002006976A (en) | Computer power supply scheduling method, its execution device, and recording medium storing its processing program | |
| JPH11102330A (en) | Receipt confirmation system and receipt confirmation method in electronic data exchange system | |
| JP2000057092A (en) | Online real-time system, device and method for processing transaction and recording medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081003 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091003 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091003 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101003 Year of fee payment: 13 |
|
| LAPS | Cancellation because of no payment of annual fees |