Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0461379B2 - - Google Patents
[go: Go Back, main page]

JPH0461379B2 - - Google Patents

Info

Publication number
JPH0461379B2
JPH0461379B2 JP6306787A JP6306787A JPH0461379B2 JP H0461379 B2 JPH0461379 B2 JP H0461379B2 JP 6306787 A JP6306787 A JP 6306787A JP 6306787 A JP6306787 A JP 6306787A JP H0461379 B2 JPH0461379 B2 JP H0461379B2
Authority
JP
Japan
Prior art keywords
event
request
monitoring
information
notification
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
Application number
JP6306787A
Other languages
Japanese (ja)
Other versions
JPS63228335A (en
Inventor
Fumyoshi Murakami
Haruo Kimura
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6306787A priority Critical patent/JPS63228335A/en
Publication of JPS63228335A publication Critical patent/JPS63228335A/en
Publication of JPH0461379B2 publication Critical patent/JPH0461379B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 計算機システムにおいて、通知する事象と受取
との対応を管理する事象管理簿を設けると共に、
監視依頼の内容を登録する監視依頼処理部、事象
受取に関する要求を処理する通知要求処理部、事
象通知に関する要求を処理する通知要求処理部、
監視依頼の解除要求を処理する監視解除処理部を
設けることにより、事象の通知側が事象の受け手
側を明示的に意識することなく、必要としている
受け手側へ柔軟に事象を通知できるような統一的
な事象の通知・受取を可能とする。
[Detailed Description of the Invention] [Summary] In a computer system, an event management list is provided to manage the correspondence between notification events and receipts, and
a monitoring request processing unit that registers the contents of a monitoring request; a notification request processing unit that processes requests related to event reception; a notification request processing unit that processes requests related to event notification;
By providing a monitoring cancellation processing unit that processes requests for cancellation of monitoring requests, it is possible to create a unified system that allows event notifications to flexibly notify the event receiving side without explicitly being aware of the event receiving side. This enables notification and reception of events.

〔産業上の利用分野〕[Industrial application field]

本発明は計算機システムにおける事象通知・受
取処理方式、特に事象の種類や事象の内容に依存
しない統一した事象の通知・受取を可能とした計
算機システムにおける事象通知・受取処理方式に
関するものである。
The present invention relates to an event notification/reception processing method in a computer system, and more particularly to an event notification/reception processing method in a computer system that enables unified event notification/reception independent of event type or event content.

計算機システムにおいて非同期的に発生する事
象を、その事象について何らかの処理を行う処理
部に通知する場合、通知側と受取側との独立性お
よび事象の種類や内容に依存しな汎用性を有する
通知・受取ができることが望まれる。
When notifying an event that occurs asynchronously in a computer system to a processing unit that performs some processing on that event, a notification system that has independence between the notifying side and the receiving side and is versatile enough to be independent of the type and content of the event. It is hoped that you will be able to receive it.

〔従来の技術〕[Conventional technology]

第7図は従来方式の例を示す。 FIG. 7 shows an example of the conventional method.

計算機システムにおいて、プログラムの実行中
に事象を検出して、処理の流れとは別のところへ
その事象を通知しなければならないことがある。
従来方式では、事象を受け取つて処理する相手
(以下、受取者という)を事象の通知側が完全に
意識し、密接な結び付きで通知し、その通知を契
機として受取者が処理を開始するという方法がと
られている。そのため、第7図に示すように、そ
れぞれの目的に応じた通知手段がシステム内に
個々に存在していた。
In computer systems, it is sometimes necessary to detect an event during the execution of a program and to notify the event to a location other than the flow of processing.
In the conventional method, the notification side of an event is fully aware of the party who receives and processes the event (hereinafter referred to as the recipient), notifies them in a close relationship, and uses the notification as an opportunity for the recipient to start processing. It is taken. Therefore, as shown in FIG. 7, notification means corresponding to each purpose existed within the system.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来の方式では、次のような問題がある。 The conventional method described above has the following problems.

(i) ある事象を複数の受取者に通知したい場合、
それぞれに対して通知を繰り返さなければなら
ない。例えば、第7図に示すように、プログラ
ムAが事象Dを検出して、別に位置するプログ
ラムBとプログラムCとに通知方法Eを使つて
通知しようとする場合、まず初めにプログラム
Bに通知方法Eを使つて通知する。その次にプ
ログラムCにも同じように通知方法Eを使つて
通知しなければならない。
(i) If you want to notify multiple recipients of an event,
The notice must be repeated for each. For example, as shown in FIG. 7, when program A detects event D and attempts to notify program B and program C, which are located separately, using notification method E, first program B is notified using notification method E. Notify using E. Next, program C must be notified in the same way using notification method E.

(ii) 事象を通知しようとする場合、相手が存在し
ていることを予め確認しておく必要がある。第
7図の例では、プログラムBとプログラムCと
が存在していることをプログラムAは各々通知
する前に確認しておく必要がある。
(ii) When attempting to notify an event, it is necessary to confirm in advance that the other party exists. In the example of FIG. 7, program A needs to confirm that program B and program C exist before notifying each of them.

(iii) 事象の通知側と受取側とは静的な結び付きで
あるため、受取側の増域を動的に変更すること
ができない。即ち、受取側からの監視や受取要
求の依頼およびその解除ができなく、常に通知
側からの通知に頼つている。もし、受取者が変
わつた場合、通知側にもそれに対する修正を加
えなければならない。例えば、第7図におい
て、事象Dを新たなプログラムFが受け取りた
い場合に、通知元のプログラムAは、プログラ
ムFにも事象Dを通知するための処理を加えな
ければならない。
(iii) Since the event notification side and the receiving side are statically linked, the area increase of the receiving side cannot be dynamically changed. That is, the receiving side cannot monitor, request or cancel a receipt request, and always relies on notifications from the notifying side. If the recipient changes, the notifying party must also make changes accordingly. For example, in FIG. 7, if a new program F wants to receive event D, the notification source program A must add processing to notify program F of event D as well.

(iv) 新たに通知したい事象がでてきた場合、その
ための通知手段を開発しなければならない。そ
のため、生産性が向上せず、かつコストがかか
る。例えば、第7図において、プログラムAに
機能追加を行つて、先の事象Eとは全く別な種
類の新たな事象GをプログラムFに通知しなけ
ればならなくなつた場合、新たな通知方法Hを
開発しなければならない。
(iv) If a new event that requires notification arises, a means of notification must be developed for that purpose. Therefore, productivity is not improved and costs are increased. For example, in FIG. 7, if a function is added to program A and it becomes necessary to notify program F of a new event G that is completely different from the previous event E, a new notification method H must be developed.

本発明は上記問題点の解決を図り、通知側と受
取側との独立性を高め、事象の種類や事象の内容
に依存しない統一した通知を可能とする手段を提
供することを目的としている。
The present invention aims to solve the above-mentioned problems, and aims to provide a means that increases the independence between the notifying side and the receiving side, and enables unified notification that does not depend on the type of event or the content of the event.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の基本構成例を示す。 FIG. 1 shows an example of the basic configuration of the present invention.

第1図において、10はCPUおよびメモリ等
からなる処理装置、11は通知を受け取る受取主
体、12は事象を通知する通知主体、13は事象
を管理する事象管理部、14は事象の監視依頼を
処理する監視依頼処理部、15は監視依頼の解除
要求を処理する監視解除処理部、16は事象受取
に関する要求を処理する受取要求処理部、17は
事象通知に関する要求を処理する通知要求処理
部、18は事象情報を保存する事象保存処理部、
19は事象管理簿、20は発生した事象を記憶す
る事象キユー、21は事象情報を記憶する事象ブ
ロツク、22は事象保存フアイル、23はデイス
プレイ、24は一般のフアイル、25は監視依頼
を行うOPNEVENT(オープンイベント)マク
ロ、26は受取を要求するRCVEVENT(レシー
ブイベント)マクロ、27は監視解除を要求する
CLSEVENT(クローズイベント)マクロ、28
は通知を要求するNTFEVENT(ノーテイフアイ
イベント)マクロを表す。
In FIG. 1, 10 is a processing device consisting of a CPU and memory, etc., 11 is a receiving entity that receives notifications, 12 is a notification entity that notifies events, 13 is an event management unit that manages events, and 14 is a request for monitoring events. 15 is a monitoring cancellation processing unit that processes a request for cancellation of a monitoring request; 16 is a reception request processing unit that processes a request related to receiving an event; 17 is a notification request processing unit that processes a request related to event notification; 18 is an event storage processing unit that stores event information;
19 is an event management list, 20 is an event queue that stores events that have occurred, 21 is an event block that stores event information, 22 is an event storage file, 23 is a display, 24 is a general file, and 25 is OPNEVENT for making monitoring requests. (Open event) macro, 26 is RCVEVENT (receive event) macro that requests reception, 27 requests release of monitoring.
CLSEVENT (close event) macro, 28
represents the NTFEVENT macro that requests notification.

本発明では、システムで発生する事象情報を、
監視要求単位ごとに管理する事象管理簿19が設
けられる。事象管理簿19は、受取主体11の識
別情報を記憶する受取主体情報欄、監視・受取の
対象となる事象情報を記憶する監視事象情報欄、
受取の条件を記憶する条件欄、受取待ち情報を記
憶する受取待ち情報欄、通知要求があつた事象情
報を記憶する発生事象情報欄の記憶領域を有して
いる。
In the present invention, event information occurring in the system is
An event management list 19 is provided to manage each monitoring request unit. The event management list 19 includes a recipient entity information column that stores identification information of the recipient entity 11, a monitoring event information column that stores event information to be monitored and received,
It has storage areas for a condition column for storing reception conditions, a reception waiting information column for storing reception waiting information, and an occurrence event information column for storing event information for which a notification request has been made.

監視依頼処理部14は、受取主体11から
OPNEVENTマクロ25による事象の監視依頼
により、事象管理簿19に、受取主体情報、監視
事象情報、また必要に応じて受取の条件情報を登
録するものである。この条件は、例えば受取りた
い事象が種々のユーザのもとで発生するような場
合、あるユーザのもとで発生した事象だけ受け取
る対象とするというような条件である。
The monitoring request processing unit 14 receives requests from the receiving entity 11.
In response to an event monitoring request made by the OPNEVENT macro 25, recipient entity information, monitoring event information, and, if necessary, receiving condition information are registered in the event management book 19. This condition is such that, for example, when an event to be received occurs under various users, only events that occur under a certain user are to be received.

受取主体11からRCVEVENTマクロ26が
発生されると、受取要求処理部16が起動され
る。受取要求処理部16は、事象管理簿19を検
索し、受取が要求された事象が発生している場合
には、その事象を受取主体11へ通知し、その事
象が発生していない場合には、事象管理簿19に
受取待ち情報を設定する処理を行う。
When the RCVEVENT macro 26 is generated from the receiving entity 11, the receiving request processing unit 16 is activated. The receipt request processing unit 16 searches the event management list 19, and if an event for which receipt is requested has occurred, it notifies the receiving entity 11 of the event, and if the event has not occurred, it notifies the receiving entity 11 of the event. , performs a process of setting reception waiting information in the event management list 19.

通知主体12は、通知したい事象がある場合
に、その事象を指定してNTFEVENTマクロ2
8を発行する。これにより、通知要求処理部17
が起動され、通知要求処理部17は、事象管理簿
19における対応する監視依頼内容を検索し、既
に受取待ち情報が設定されている場合に、その事
象を受取要求元へ通知する。また受取待ち情報が
設定されていない場合には、事象管理簿19の発
生事象情報欄からポイントされる事象キユー20
に事象情報を持つ事象ブロツク21をキユーイン
グする処理を行う。
If there is an event that the notification entity 12 wants to notify, it specifies the event and sends the NTFEVENT macro 2.
Issue 8. As a result, the notification request processing unit 17
is activated, the notification request processing unit 17 searches the event management list 19 for the corresponding monitoring request contents, and if reception waiting information has already been set, notifies the event to the reception request source. In addition, if reception waiting information is not set, the event queue 20 pointed to from the event information column of the event management list 19
A process of queuing an event block 21 having event information is performed.

監視解除処理部15は、受取主体11による
CLSEVENTマクロ27の発行により、事象管理
簿19から該当する監視依頼内容を抹消する処理
を行うものである。
The monitoring cancellation processing unit 15
By issuing the CLSEVENT macro 27, the corresponding monitoring request contents are deleted from the event management list 19.

〔作用〕[Effect]

事象の受取者である受取主体11は、予め監視
依頼した範囲内で、後から事象の発生を待つ要求
を依頼する。従つて、受取主体11は、柔軟に事
象の発生を待つことができ、監視依頼後に発生し
た事象を漏れなく監視して必要なときにそれを受
け取ることができる。
The receiving entity 11, which is the recipient of the event, makes a request to wait for the occurrence of the event later within the scope of the monitoring request made in advance. Therefore, the receiving entity 11 can flexibly wait for the occurrence of an event, monitor all events that have occurred after the monitoring request, and receive them when necessary.

一方、事象の通知者である通知主体12は、事
象の種類、内容に依存しない統一的な通知手段、
即ち、NTFEVENTマクロ28によつて、発生
または検出した事象を通知することができる。第
1図の側では、このとき通知した事象を保存して
おくか否かを指示することができ、事象情報の保
存が指示されている場合には、事象保存処理部1
8が起動されて、所定の事象保存フアイル22へ
の事象情報の記録がなされる。この事象情報は、
後に事象保存フアイル22から読み出すことがで
きる。従つて、監視依頼以前に発生した事象の受
取を必要とする場合には、この事象保存フアイル
22から事象情報を得ることができる。
On the other hand, the notification entity 12, which is the event notifier, uses a unified notification method that does not depend on the type or content of the event.
That is, the NTFEVENT macro 28 can notify of an event that has occurred or has been detected. On the side shown in FIG. 1, it is possible to instruct whether or not to save the notified event at this time, and if the event information is instructed to be saved, the event storage processing unit 1
8 is activated and event information is recorded in a predetermined event storage file 22. This event information is
It can later be read from the event storage file 22. Therefore, if it is necessary to receive events that occurred before the monitoring request, event information can be obtained from this event storage file 22.

事象管理簿19に複数の受取者からの監視依頼
や受取待ち要求が出されている場合には、その対
象者のすべてに事象が通知される。この場合、監
視依頼だけで未だ受取要求が発行されていなけれ
ば、メモリ上の事象キユー20に事象情報が記憶
され、後に受取要求がきたときに、その事象情報
を引き渡す処理がなされる。
If multiple recipients have submitted monitoring requests or requests to wait for receipt in the event management list 19, all recipients will be notified of the event. In this case, if there is only a monitoring request and no receipt request has been issued yet, the event information is stored in the event queue 20 on the memory, and when a receipt request comes later, the event information is handed over.

従つて、1つの事象に対し、複数の受取主体1
1が、それぞれデイスプレイ23に表示すると
か、フアイル24に格納するとかいう処理を、必
要な時点で独立に行うことができる。
Therefore, for one event, multiple receiving entities 1
1 can independently display the data on the display 23 or store it in the file 24 as needed.

〔実施例〕〔Example〕

第2図は本発明の一実施例説明図、第3図は本
発明の一実施例に係る監視依頼処理説明図、第4
図は本発明の一実施例に係る受取要求処理説明
図、第5図は本発明の一実施例に係る通知要求処
理説明図、第6図は本発明の一実施例に係る監視
解除処理説明図である。
FIG. 2 is an explanatory diagram of an embodiment of the present invention, FIG. 3 is an explanatory diagram of monitoring request processing according to an embodiment of the present invention, and FIG.
FIG. 5 is an explanatory diagram of a receipt request process according to an embodiment of the present invention, FIG. 5 is an explanatory diagram of a notification request process according to an embodiment of the present invention, and FIG. 6 is an explanatory diagram of a monitoring release process according to an embodiment of the present invention. It is a diagram.

第2図に示す例では、受取者R1は、事象Aと
事象Bとを監視することを登録しており、受取者
R2は事象Cを、受取者R3は事象Bおよび事象C
を監視することを登録している。
In the example shown in Figure 2, recipient R1 has registered to monitor event A and event B;
R2 receives event C, recipient R3 receives event B and event C
registered to be monitored.

通知者N1が、事象管理部13に事象Aの通知
を依頼すると、事象管理簿19検索により、受取
者R1に事象Aが通知される。通知者N2が、事象
管理部13に事象Bの通知を依頼すると、受取者
R1および受取者R3に事象Bが通知される。同様
に、通知者N3が、事象管理部13に事象Cの通
知を依頼すると、事象管理簿19の検索により、
受取者R2および受取者R3に事象Cが通知され
る。
When the notifier N1 requests the event management unit 13 to notify the event A, the recipient R1 is notified of the event A by searching the event management list 19. When the notifier N2 requests the event management unit 13 to notify the event B, the recipient
R1 and recipient R3 are notified of event B. Similarly, when the notifier N3 requests the event management unit 13 to notify the event C, by searching the event management list 19,
Recipient R2 and recipient R3 are notified of event C.

このように本発明では、事象の通知側で相手を
決めつけるのではなく、第2図に示すように、受
取側の依頼を事象管理簿19に登録し、通知され
てきた事象がどこに通知されなければならないか
を、その事象管理簿19を検索することにより決
定して、必要なすべての受取者に事象を通知する
ようにされる。
In this way, in the present invention, instead of determining the recipient on the event notification side, the request from the receiving side is registered in the event management list 19, as shown in FIG. The event is determined by searching the event management list 19 to notify all necessary recipients of the event.

次に本発明の一実施例について、第3図ないし
第6図に従い、さらに詳細に説明する。以下の例
では、説明を簡略化するために、受取者をR1、
監視事象をA、条件をユーザX、受取要求をYと
して説明する。事象Aの発生は、ユーザXの処理
に関係して発生するものとする。
Next, one embodiment of the present invention will be described in more detail with reference to FIGS. 3 to 6. In the example below, to simplify the explanation, the recipient is R1,
The following description assumes that the monitoring event is A, the condition is user X, and the receiving request is Y. It is assumed that event A occurs in relation to user X's processing.

第1図に示すOPNEVENTマクロ25により、
監視依頼処理部14は、例えば第3図に示すよう
に処理する。即ち、事象管理簿19に新しいエン
トリを確保し、監視依頼内容として、受取者R1
の受取主体情報と、監視事象Aの情報と、ユーザ
Xの情報とを登録する。
By the OPNEVENT macro 25 shown in Figure 1,
The monitoring request processing unit 14 performs processing as shown in FIG. 3, for example. That is, a new entry is secured in the event management list 19, and the recipient R1 is added as the monitoring request content.
, the information on the monitoring event A, and the information on the user X are registered.

第1図に示すRCVEVENTマクロ26によつ
て、受取要求処理部16は第4図に示すように処
理する。以下の説明における番号〜は、第4
図に示す処理番号〜に対応する。
Using the RCVEVENT macro 26 shown in FIG. 1, the receipt request processing unit 16 performs the processing shown in FIG. 4. In the following explanation, the numbers ~ refer to the fourth
This corresponds to the process numbers ~ shown in the figure.

事象の受取要求を受けると、事象管理簿19
の対応する受取者R1のエントリを探し、事象
Aが既に発生しているか否かを検査する。発生
事象情報欄に事象がキユーイングされていない
場合、発生なしであるので、処理へ制御を移
し、事象がキユーイングされている場合、処理
へ制御を移す。
When receiving a request to receive an event, the event management list 19
Find the entry for the corresponding recipient R1 in and check whether event A has already occurred. If the event is not queued in the occurrence event information column, it means that no event has occurred, and control is transferred to processing; if the event is queued, control is transferred to processing.

事象Aがまだ発生していない場合、事象管理
簿19の受取待ち情報欄に、受取待ち要求Yの
情報を記入して待ちの状態に入る。その後、事
象Aが通知されると、待ちの解除がなされ、処
理へ制御が移行される。
If event A has not yet occurred, information about the reception waiting request Y is entered in the reception waiting information column of the event management list 19, and the system enters a waiting state. Thereafter, when event A is notified, the waiting state is released and control is transferred to processing.

発生した事象を受取者R1に渡し、事象ブロ
ツク内に記入されている未受取者数から1減算
する。
The event that has occurred is passed to recipient R1, and 1 is subtracted from the number of unrecipients written in the event block.

事象Aに対して、まだ受け取つていない受取
主体が存在する場合、即ち、事象ブロツク内に
記入されている未受取者数が0でないかどうか
を調べ、0でなかつた場合には、事象情報のそ
のままメモリ上に保存する。
If there are recipients who have not yet received the event A, check whether the number of unrecipients written in the event block is not 0, and if it is not 0, the event information is Save it in memory as is.

事象Aを欲している他の未受取者が存在しな
い場合には、その事象Aの情報をメモリ上から
消去し、処理を終了する。
If there is no other unrecipient who wants event A, the information about event A is erased from the memory and the process ends.

第1図に示すNTFEVENTマクロ28によつ
て、通知要求処理部17は第5図に示すように処
理する。以下の説明における番号〜は、第5
図に示す処理番号〜に対応する。
Using the NTFEVENT macro 28 shown in FIG. 1, the notification request processing unit 17 performs processing as shown in FIG. 5. In the following explanation, the numbers ~ refer to the 5th
This corresponds to the process numbers ~ shown in the figure.

通知されてきた事象Aの情報を、メモリ上の
事象情報域である事象ブロツク21に記入す
る。
Information about the event A that has been notified is written into the event block 21, which is an event information area on the memory.

通知側からの指定で、事象Aの保存が必要で
あるか否かを判断し、保存が必要であれば、第
1図に示す事象保存処理部18に、事象保存フ
アイル22への事象情報の書き込みを依頼す
る。
Based on the specification from the notification side, it is determined whether or not it is necessary to save the event A. If it is necessary to save it, the event information is stored in the event storage processing unit 18 shown in FIG. 1 in the event storage file 22. Request writing.

次にこの事象Aを欲している受取者を、事象
管理簿19を検索して探し出す。このとき、監
視依頼の事象の外に、その監視依頼の条件内容
もあわせて検査し対象となるものを抽出する。
事象Aを監視依頼している受取者が存在してい
ると(ここでは受取者R1が存在する)、次の処
理ないし処理の処理を行つた後、さらに処
理から同様に処理を繰り返して、事象管理簿
19の検索を続ける。事象管理簿19の検索が
終了した場合、処理を実行する。
Next, the event management list 19 is searched to find a recipient who wants this event A. At this time, in addition to the event of the monitoring request, the condition contents of the monitoring request are also examined to extract the target.
If there is a recipient requesting monitoring of event A (in this case, recipient R1 exists), after performing the next process or process, the process is repeated from the process onwards, and the event is Continue searching the management list 19. When the search of the event management list 19 is completed, processing is executed.

事象Aが監視依頼しているものがあると、事
象ブロツク21に記入している事象Aの未受取
者数に1を加える。そして事象管理簿19の受
取待ち情報欄に受取待ちがあるか否かを調べ
る。
If there is something for which event A has been requested to be monitored, 1 is added to the number of unrecipients of event A written in event block 21. Then, it is checked whether there is a waiting list in the waiting list information column of the event management list 19.

受取待ちが存在していれば、その受取待ちを
解除する。これにより、第4図に示す受取待ち
が解除されることになる。
If there is a waiting list, the waiting list is released. As a result, the reception waiting state shown in FIG. 4 is released.

事象管理簿19における受取待ち情報欄をク
リアし、受取待ち情報を削除する。その後、処
理へ制御を戻し、次の受取者を探す。
The reception waiting information column in the event management list 19 is cleared and the reception waiting information is deleted. Control is then returned to the process to find the next recipient.

受取待ちが存在していない場合、事象管理簿
19の発生事象情報欄に、事象Aの情報を記憶
する事象ブロツク21へのポインタを設定す
る。その後、処理へ制御を戻す。
If there is no waiting for receipt, a pointer to the event block 21 that stores information about the event A is set in the event information column of the event management list 19. Control is then returned to processing.

事象Aを監視依頼している受取者がいない場
合、その事象をメモリ上の事象ブロツク21か
ら消去する。事象Aを監視依頼している受取者
がいる場合、メモリ上の事象ブロツク21をそ
のままにして処理を終了する。
If there is no recipient who has requested monitoring of event A, the event is deleted from event block 21 in memory. If there is a recipient who has requested monitoring of event A, the event block 21 in memory is left as is and the process ends.

第1図に示すCLSEVENTマクロ27によつ
て、監視解除処理部15は第6図に示すように処
理する。以下の説明における番号〜は、第6
図に示す処理番号〜に対応する。
Using the CLSEVENT macro 27 shown in FIG. 1, the monitoring cancellation processing section 15 performs the processing shown in FIG. 6. In the following explanation, the numbers ~ refer to the 6th
This corresponds to the process numbers ~ shown in the figure.

監視依頼の解除を受付けると、事象管理簿1
9から監視依頼の内容を消去する。
When the cancellation of the monitoring request is accepted, event management record 1
Delete the contents of the monitoring request from 9.

処理による消去にあたつて、この監視依頼
に対し事象が発生しているか否かを、事象管理
簿19の発生事象情報欄により調べる。この発
生事象情報欄に事象がキユーイングされている
場合、この事象をまだ受け取つていない受取者
がいるかどうかを、事象ブロツクに記入してい
る未受取者数により検査し、なければこの事象
ブロツクをメモリ上から消去して、処理を終了
する。
When erasing by processing, it is checked from the occurrence event information column of the event management list 19 whether or not an event has occurred in response to this monitoring request. If an event is queued in this event information column, check whether there are any recipients who have not yet received this event by checking the number of unrecipients entered in the event block, and if not, delete this event block. Delete it from memory and end the process.

以上の説明では、受取待ちについて同期をとる
例を説明したが、受取要求に同期型と非同期型と
を設け、非同期型では、受取要求が出されたとき
に、まだその事象が発生していない場合、受取待
ち状態に入るのではなく、受取要求元へ直ちに制
御を戻すようにすることも可能である。
In the above explanation, an example of synchronizing reception waiting was explained, but there are synchronous types and asynchronous types of reception requests, and in the asynchronous type, when the reception request is issued, the event has not yet occurred. In this case, it is also possible to immediately return control to the source of the request for receipt, instead of entering the reception waiting state.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、事象の
受取側から自由に発生事象を監視したり、その監
視を止めたりすることができ、かつその監視期間
内だ発生した事象を漏れなく受け取ることができ
るようになる。また、事象の通知側は、事象を通
知する時点で、受取側の存在や受取者または受取
者群が誰であるか一意に意識する必要がなく、事
象の種類、内容に依存しない統一した通知を行う
ことができる。従つて、1回の通知で複数の受取
者に発生事象を渡すことができ、通知側および受
取側のプログラム開発が容易になつて生産性が向
上する。また、通知・受取の処理が統一化される
ため、保守性も向上する。
As explained above, according to the present invention, the receiving side of the event can freely monitor the occurring event or stop the monitoring, and can receive all the events that have occurred within the monitoring period. You will be able to do this. In addition, the event notification side does not need to be uniquely aware of the existence of the recipient or who the recipient or recipient group is at the time of notifying the event, and the notification is unified and does not depend on the type or content of the event. It can be performed. Therefore, it is possible to pass the occurrence event to a plurality of recipients with a single notification, which facilitates program development on the notification side and the recipient side, and improves productivity. Furthermore, since the notification/receipt processing is unified, maintainability is also improved.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の基本構成例、第2図は本発明
の一実施例説明図、第3図は本発明の一実施例に
係る監視依頼処理説明図、第4図は本発明の一実
施例に係る受取要求処理説明図、第5図は本発明
の一実施例に係る通知要求処理説明図、第6図は
本発明の一実施例に係る監視解除処理説明図、第
7図は従来方式の例を示す。 図中、10は処理装置、11は受取主体、12
は通知主体、13は事象管理部、14は監視依頼
処理部、15は監視解除処理部、16は受取要求
処理部、17は通知要求処理部、18は事象保存
処理部、19は事象管理簿、20は事象キユー、
21は事象ブロツク、22は事象保存フアイル、
23はデイスプレイ、24はフアイル、25は
OPNEVENTマクロ、26はRCVEVENTマク
ロ、27はCLSEVENTマクロ、28は
NTFEVENTマクロを表す。
FIG. 1 is a basic configuration example of the present invention, FIG. 2 is an explanatory diagram of an embodiment of the present invention, FIG. 3 is an explanatory diagram of monitoring request processing according to an embodiment of the present invention, and FIG. 4 is an illustration of an embodiment of the present invention. FIG. 5 is an explanatory diagram of the notification request process according to an embodiment of the present invention. FIG. 6 is an explanatory diagram of the monitoring cancellation process according to an embodiment of the present invention. An example of the conventional method is shown below. In the figure, 10 is a processing device, 11 is a receiving entity, 12
is the notification subject, 13 is the event management unit, 14 is the monitoring request processing unit, 15 is the monitoring cancellation processing unit, 16 is the reception request processing unit, 17 is the notification request processing unit, 18 is the event storage processing unit, and 19 is the event management list. , 20 is the event queue,
21 is an event block, 22 is an event storage file,
23 is display, 24 is file, 25 is
OPNEVENT macro, 26 is RCVEVENT macro, 27 is CLSEVENT macro, 28 is
Represents the NTFEVENT macro.

Claims (1)

【特許請求の範囲】 1 複数の処理単位間で事象の通知および受取を
行う計算機システムにおける事象通知・受取処理
方式であつて、 少なくとも受取主体情報、監視事象情報、受取
待ち情報、発生事象情報を対応させて記憶する領
域を有する事象管理簿19と、 事象の監視依頼に対し、上記事象管理簿19
に、監視依頼内容を登録する監視依頼処理部14
と、 監視依頼後の事象受取要求に対し、上記事象管
理簿19を検索し、該当する事象が発生している
場合に、その事象を要求元へ渡し、該当する事象
が発生していない場合に、上記事象管理簿19に
受取待ち情報を設定する処理を行う受取要求処理
部16と、 事象通知要求に対し、上記事象管理簿19にお
ける対応する監視依頼内容を検索し、受取待ち情
報が設定されている場合に、その事象を受取要求
元へ通知し、受取待ち情報が設定されていない場
合に、上記事象管理簿19の発生事象情報欄に通
知する事象をキユーイングする処理を行う通知要
求処理部17と、 事象監視依頼の解除要求に対し、上記事象管理
簿19から該当する監視依頼内容を抹消する処理
を行う監視解除処理部15とを備えたことを特徴
とする計算機システムにおける事象通知・受取処
理方式。
[Scope of Claims] 1. An event notification/reception processing method in a computer system that notifies and receives events between a plurality of processing units, which includes at least receiving entity information, monitoring event information, reception waiting information, and occurrence event information. An event management list 19 having areas for storing data in correspondence with each other;
A monitoring request processing unit 14 that registers monitoring request details in
In response to a request to receive an event after a monitoring request, the event management list 19 is searched, and if the corresponding event has occurred, the event is passed to the requester, and if the corresponding event has not occurred, the event is sent to the requestor. , a reception request processing unit 16 that performs a process of setting reception waiting information in the event management list 19; a notification request processing unit that performs processing to notify the receipt request source of the event if the event is received, and to queue the event to be notified in the occurrence event information column of the event management list 19 if the reception waiting information is not set; 17; and a monitoring cancellation processing unit 15 that performs a process of deleting the corresponding monitoring request contents from the event management list 19 in response to a cancellation request of an event monitoring request. Processing method.
JP6306787A 1987-03-18 1987-03-18 Event information and reception processing system in computer system Granted JPS63228335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6306787A JPS63228335A (en) 1987-03-18 1987-03-18 Event information and reception processing system in computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6306787A JPS63228335A (en) 1987-03-18 1987-03-18 Event information and reception processing system in computer system

Publications (2)

Publication Number Publication Date
JPS63228335A JPS63228335A (en) 1988-09-22
JPH0461379B2 true JPH0461379B2 (en) 1992-09-30

Family

ID=13218624

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6306787A Granted JPS63228335A (en) 1987-03-18 1987-03-18 Event information and reception processing system in computer system

Country Status (1)

Country Link
JP (1) JPS63228335A (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2608130B2 (en) * 1989-03-07 1997-05-07 富士通株式会社 Event central management processor
JP2710668B2 (en) * 1989-07-06 1998-02-10 富士通株式会社 Computer system
JPH04112237A (en) * 1990-08-31 1992-04-14 Fujitsu Ltd Event monitoring system
US5305454A (en) * 1991-08-12 1994-04-19 International Business Machines Corporation Notification of event handlers in broadcast or propagation mode by event management services in a computer system
US6259446B1 (en) * 1992-12-23 2001-07-10 Object Technology Licensing Corporation Menu state system
JP2536723B2 (en) * 1993-06-18 1996-09-18 日本電気株式会社 Data reception control device
JPH08272631A (en) * 1995-03-31 1996-10-18 Nec Corp File additional write access monitoring device and inter-process information communication method and system
JP3798935B2 (en) * 2000-09-08 2006-07-19 日本電信電話株式会社 Data display method
JP4618224B2 (en) * 2006-09-19 2011-01-26 株式会社デンソー Object-oriented vehicle control system

Also Published As

Publication number Publication date
JPS63228335A (en) 1988-09-22

Similar Documents

Publication Publication Date Title
US5781908A (en) File data synchronizer in a distributed data computer network
US5465329A (en) Method and apparatus for using intercepted operator messages to control robotics
US7120746B2 (en) Technique for data transfer
US5446901A (en) Fault tolerant distributed garbage collection system and method for collecting network objects
US5341476A (en) Dynamic data distribution network with sink and source files for particular data types
US6085200A (en) System and method for arranging database restoration data for efficient data recovery in transaction processing systems
EP0681240A2 (en) Duplicate cache tag memory system
US20030028723A1 (en) Efficient data backup using a single side file
US6230243B1 (en) Method, system and program products for managing changed data of castout classes
US5204954A (en) Remote storage management mechanism and method
JPH0461379B2 (en)
JPH1049443A (en) Information processing system
US5761403A (en) Failure recovery system and failure recovery method in loosely coupled multi-computer system, and medium for storing failure recovery program
JP3681415B2 (en) Deadlock detection device
US6510456B1 (en) Data transfer control method and system, data transfer control program file, and file storage medium
JP2986335B2 (en) Image data processing system
US20030033440A1 (en) Method of logging message activity
JP2556841B2 (en) File access device and method for accessing the file
US20050131883A1 (en) Browsing a list of data items
JP2000020380A (en) System and method for processing distributed transactions and storage medium storing program for distributed transaction processing
JP2004310357A (en) File management method and system, file management program, and medium recording file management program
JPH01276346A (en) data processing equipment
JP2004302630A (en) Message processing method, apparatus for implementing the method, and processing program therefor
JPH07234850A (en) Multiprocessor apparatus and method
JP2634908B2 (en) Information processing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term