JP2006350474A - Real time processing system, processor, real time processing method and program - Google Patents

Real time processing system, processor, real time processing method and program Download PDF

Info

Publication number
JP2006350474A
JP2006350474A JP2005172938A JP2005172938A JP2006350474A JP 2006350474 A JP2006350474 A JP 2006350474A JP 2005172938 A JP2005172938 A JP 2005172938A JP 2005172938 A JP2005172938 A JP 2005172938A JP 2006350474 A JP2006350474 A JP 2006350474A
Authority
JP
Japan
Prior art keywords
message
processing
real
processed
business
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.)
Granted
Application number
JP2005172938A
Other languages
Japanese (ja)
Other versions
JP4232109B2 (en
Inventor
Akira Kubota
晃 窪田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2005172938A priority Critical patent/JP4232109B2/en
Publication of JP2006350474A publication Critical patent/JP2006350474A/en
Application granted granted Critical
Publication of JP4232109B2 publication Critical patent/JP4232109B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce scheduling costs by batch processing, and to attain dynamic scheduling by table driven in real time processing requiring huge amounts of telegraphic message processing. <P>SOLUTION: This system for processing huge amounts of input telegraphic messages by a plurality of task AP in accordance with a processing sequence unique to a telegraphic message is configured to execute batch processing by the tasks AP by gathering the plurality of telegraphic messages according to a rule with the input of the telegraphic message as a chance, and to execute the specification(table driven) of the task AP to be processed next by managing the task processing sequence by a table. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、大量データを即時処理するためのリアルタイム処理システム、処理装置、リアルタイム処理方式、及びプログラムに関する。   The present invention relates to a real-time processing system, a processing device, a real-time processing method, and a program for immediately processing a large amount of data.

従来のスケジュール方式には、OLTP(On−Line Transaction Processing)方式とバッチ方式があった。   Conventional schedule methods include an OLTP (On-Line Transaction Processing) method and a batch method.

OLTP方式は、電文受信を契機にイベントドリブンで処理を行うためリアルタイム処理に向いた方式ではあるが、通常は電文1件を処理単位としているため電文あたりのオーバヘッドが大きくなるといるデメリットがあった。特に1電文を処理する間に複数の電文が到着し、処理待ち電文が貯まってしまうような、大量の電文を処理する必要のあるシステムにおいては、本方式の適用は困難であった。   The OLTP method is suitable for real-time processing because event-driven processing is performed when a message is received, but there is a demerit that the overhead per message is usually increased because one message is used as a processing unit. In particular, it is difficult to apply this method in a system that needs to process a large amount of messages such as a plurality of messages that arrive during processing of one message and a queue of messages waiting to be processed.

一方、バッチ方式は、数時間程度の規定時間(短くとも1時間程度)の間隔でそれまでに処理要求のあった電文を一括処理する。このため、電文あたりのスケジュールにかかるオーバヘッドは小さくなるものの、電文到着から処理開始までの時間が長いためリアルタイム処理には向かない方式であった。   On the other hand, in the batch method, messages that have been requested for processing at a time are batch processed at intervals of a specified time of about several hours (at least about 1 hour). For this reason, although the overhead for the schedule per message is reduced, it is a method that is not suitable for real-time processing because the time from the arrival of the message to the start of processing is long.

関連する技術として、特開2004−102436号公報にアプリケーションプログラム処理装置、アプリケーションプログラム実行方法、及びアプリケーションプログラム生成方法、並びにコンピュータ・プログラムが開示されている。
この従来技術では、予め定められた処理シーケンスに従った処理を実行するアプリケーションプログラム処理装置が、以下の構成を有することを特徴とする。
(1)所定単位の処理プログラムを保持したプログラム部品を格納したプログラム部品格納部。
(2)トランザクションデータ項目と、該トランザクションデータを適用した処理を実行するプログラム部品の識別子(ID)とを対応付けたプロセス定義テーブル。
(3)前記プロセス定義テーブルに設定されたプログラム部品識別子(ID)に対応するプログラム部品を前記プログラム部品格納部から取得し、取得したプログラム部品を適用した処理を実行する制御部。
As a related technique, Japanese Patent Application Laid-Open No. 2004-102436 discloses an application program processing apparatus, an application program execution method, an application program generation method, and a computer program.
In this prior art, an application program processing device that executes processing according to a predetermined processing sequence has the following configuration.
(1) A program component storage unit that stores program components that hold processing programs in a predetermined unit.
(2) A process definition table in which transaction data items are associated with identifiers (IDs) of program parts that execute processing to which the transaction data is applied.
(3) A control unit that acquires a program component corresponding to a program component identifier (ID) set in the process definition table from the program component storage unit and executes processing to which the acquired program component is applied.

特開昭63−094360号公報にトランザクション処理方式が開示されている。
このトランザクション処理方式は、トランザクションがアプリケーションプログラムの起動要因となっているデータコミュニケーションマネジメントシステムにおいて、以下の手段を備えている。
(1)前記トランザクションが一括処理を行うかどうか判定する手段。
(2)一括処理を行う前記トランザクションを取得し、1つのキューに蓄える手段。
(3)1回の同期点処理要求で複数トランザクションの同期点を一括取得する手段。
(4)前記複数トランザクションの送信メッセージを一括して出力する手段。
また、このトランザクション処理方式は、前記アプリケーションプログラムに処理を要求する前記トランザクションが発生した時、前記トランザクションが一括処理を行うT欄ザ区ションであるかどうか判定する。一括処理を行うトランザクションであれば前記キューに蓄える。前記キューに蓄えられた前記複数トランザクションは1度の前記アプリケーションプログラム起動で処理される。前記アプリケーションプログラムの処理終了時に1度同期点取得要求を出すことにより前記一括同期点取得が前記複数トランザクション同期点を取得し、前記複数トランザクションの前記送信メッセージを一括して出力する。
Japanese Patent Laid-Open No. 63-094360 discloses a transaction processing method.
This transaction processing system includes the following means in a data communication management system in which a transaction is an activation factor of an application program.
(1) Means for determining whether or not the transaction performs batch processing.
(2) Means for acquiring the transaction for batch processing and storing it in one queue.
(3) Means for collectively acquiring synchronization points of a plurality of transactions with a single synchronization point processing request.
(4) Means for collectively outputting transmission messages of the plurality of transactions.
In addition, this transaction processing method determines whether or not the transaction is a T field that performs batch processing when the transaction requesting the application program occurs. If the transaction is a batch process, it is stored in the queue. The plurality of transactions stored in the queue are processed by starting the application program once. By issuing a synchronization point acquisition request once at the end of processing of the application program, the batch synchronization point acquisition acquires the plurality of transaction synchronization points and outputs the transmission messages of the plurality of transactions in a batch.

特開平03−105544号公報にトランザクション受信処理方式及びオンライントランザクション処理方式が開示されている。
この従来技術では、端末装置から逐次送信されるトランザクションを受信して、該トランザクションを処理するオンライントランザクション処理システムが、以下の手段を備えたことを特徴とする。
(1)受信したトランザクションをスタックするスタック手段。
(2)予め定めた条件が満たされたか否かを判定する条件判定手段。
(3)前記条件が満たされたと判定された時、スタックされているトランザクションを一括して処理するトランザクション処理手段。
Japanese Patent Laid-Open No. 03-105544 discloses a transaction reception processing system and an online transaction processing system.
In this prior art, an online transaction processing system that receives transactions sequentially transmitted from a terminal device and processes the transactions includes the following means.
(1) Stacking means for stacking received transactions.
(2) Condition determining means for determining whether or not a predetermined condition is satisfied.
(3) Transaction processing means for collectively processing stacked transactions when it is determined that the condition is satisfied.

特開2004−102436号公報JP 2004-102436 A 特開昭63−094360号公報JP-A-63-094360 特開平03−105544号公報Japanese Patent Laid-Open No. 03-105544

特開昭63−094360号公報、又は特開平03−105544号公報に開示されている既存の技術は、処理装置内に閉じた一括処理のみ想定されているため、1電文が複数の処理装置間を行き来するようなシステムへの適用が考慮されていない。
また、特開2004−102436号公報に開示されている既存の技術は、プロセス定義テーブルに従い処理順序を解決することにより、部品追加(削除)等に伴う処理シーケンスの変更のみ考慮している。
本発明の目的は、一括処理によるスケジューリングコストの削減と、テーブルドリブンによる動的スケジューリングを可能とするリアルタイム処理システム、処理装置、リアルタイム処理方式、及びプログラムを提供することである。
In the existing technology disclosed in Japanese Patent Laid-Open No. 63-094360 or Japanese Patent Laid-Open No. 03-105544, only one batch process is assumed to be closed in the processing device. Application to a system that goes back and forth is not considered.
In addition, the existing technology disclosed in Japanese Patent Application Laid-Open No. 2004-102436 considers only a change in the processing sequence accompanying component addition (deletion) or the like by solving the processing order according to the process definition table.
An object of the present invention is to provide a real-time processing system, a processing apparatus, a real-time processing method, and a program that enable reduction of scheduling cost by batch processing and dynamic scheduling by table driving.

以下に、[発明を実施するための最良の形態]で使用される番号を括弧付きで用いて、課題を解決するための手段を説明する。これらの番号は、[特許請求の範囲]の記載と[発明を実施するための最良の形態]との対応関係を明らかにするために付加されたものである。但し、それらの番号を、[特許請求の範囲]に記載されている発明の技術的範囲の解釈に用いてはならない。   In the following, means for solving the problem will be described using the numbers used in [Best Mode for Carrying Out the Invention] in parentheses. These numbers are added to clarify the correspondence between the description of [Claims] and [Best Mode for Carrying Out the Invention]. However, these numbers should not be used to interpret the technical scope of the invention described in [Claims].

本発明のリアルタイム処理システムは、電文を業務単位に振り分け、前記振り分けられた電文をまとめて電文集合とし、前記電文集合を該当する業務毎に一括して処理する処理装置(100)と、前記処理装置(100)に前記電文を送信する電文送信装置(200)と、前記処理装置(100)から前記電文集合を受信する電文受信装置(300)とを備える。
前記処理装置(100)は、前記電文毎の処理順序に従い、該当する業務での処理が完了した電文について次に処理を行う業務が残っている場合、前記処理が完了した電文をまとめて新たな電文集合とし、前記次に処理を行う業務にて一括して処理し、前記電文に必要な全ての業務で処理が完了した場合、前記電文を前記電文受信装置(300)に送信する。
A real-time processing system according to the present invention includes: a processing device (100) that sorts messages into business units, collects the sorted messages into a message set, and collectively processes the message set for each corresponding job; A message transmission device (200) that transmits the message to the device (100), and a message reception device (300) that receives the message set from the processing device (100).
The processing device (100), in accordance with the processing order for each message, if there is a job to be processed next for a message that has been processed in the corresponding job, A message set is processed in a batch in the next task to be processed, and when processing is completed for all tasks required for the message, the message is transmitted to the message receiver (300).

前記処理装置(100)は、前記電文を一定数蓄積した時点でとりまとめを終了する。   The processing device (100) ends the compilation when a certain number of the messages are accumulated.

前記処理装置(100)は、前記電文のとりまとめを開始してから一定時間が経過した時点でとりまとめを終了する。   The processing device (100) ends the compilation when a certain time has elapsed since the start of the compilation of the messages.

前記処理装置(100)は、前記電文が最後に処理を行った業務に基づいて、次に処理を行う業務を解決するための情報を保持する宛先管理テーブル(107)を備える。   The processing device (100) includes a destination management table (107) that holds information for resolving the task to be processed next based on the task that the message has processed last.

前記電文は、入力データを格納する格納部と、前記次に処理を行う業務を記録するための制御部とを有し、前記処理装置(100)は、前記次に処理を行う業務を前記宛先管理テーブル(107)より特定し、前記電文の前記制御部に格納する。   The electronic message includes a storage unit for storing input data and a control unit for recording a task to be processed next, and the processing device (100) assigns the task to be processed next to the destination. It is specified from the management table (107) and stored in the control unit of the message.

前記処理装置(100)は、前記処理順序を動的に変更する。   The processing device (100) dynamically changes the processing order.

本発明の処理装置(100)は、電文に対して、処理すべき業務の順序を管理し、前記電文の処理順序検索依頼を受けて前記電文が処理すべき業務の情報を返し、外部からの処理順序変更依頼をもとに該当する前記電文の処理順序を変更する宛先管理部(102)と、前記宛先管理部(102)に対し前記電文の処理順序検索依頼を行い、前記処理順序検索の検索結果の処理すべき業務の情報をもとに業務単位に前記電文を振り分ける宛先決定部(103)と、業務単位に振り分けられた前記電文を取りまとめ、宛先業務毎に貯められた前記電文数又は取りまとめ開始からの経過時間を監視して一括処理単位となる電文集合を作成する電文集合管理部(104)と、前記電文集合管理部(104)で作成された前記電文集合を該当業務毎に一括処理を行う一括実行部(105)と
を具備する。
The processing apparatus (100) of the present invention manages the order of business to be processed for a message, receives the processing order search request for the message, returns information on the business to be processed by the message, Based on the processing order change request, a destination management unit (102) that changes the processing order of the corresponding message, and sends a processing order search request for the message to the destination management unit (102), and the processing order search A destination determination unit (103) that distributes the messages to business units based on information on the business to be processed in the search result, and collects the messages distributed to business units, and stores the number of messages stored for each destination business or A message set management unit (104) for creating a message set as a batch processing unit by monitoring the elapsed time from the start of the compilation, and the message set created by the message set management unit (104) for each corresponding business. Batch execution unit that performs processing and (105) comprises.

本発明の処理装置(100)は、電文送信装置(200)から送信される前記電文を受信する電文受信部(101)と、
前記一括処理を行った後、全ての業務処理が完了した処理済電文の集合を一括して次の宛先となる電文受信装置(300)に送信する電文送信部(106)と
を更に具備する。
The processing device (100) of the present invention includes a message reception unit (101) that receives the message transmitted from the message transmission device (200), and
After performing the batch processing, a message transmission unit (106) is further provided that transmits a set of processed messages for which all business processes have been completed to the next message reception device (300).

前記宛先管理部(102)は、前記電文毎に該当する電文が最後に処理を行った業務に関する情報をもとに、次に処理を行う業務を解決するための情報を保持する宛先管理テーブル(107)を含む。   The destination management unit (102) is a destination management table (holding information for resolving a task to be processed next) based on information on a task that has been processed last by a message corresponding to each message. 107).

前記宛先決定部(103)は、前記電文が前記次に処理を行う業務を前記宛先管理テーブル(107)より特定し、前記電文の制御部に宛先業務名を格納し、前記特定した業務の情報をもとに宛先業務単位に振り分けて電文集合バッファに格納する。   The destination determination unit (103) specifies a task to be processed next by the message from the destination management table (107), stores a destination task name in the control unit of the message, and stores the specified task information. Based on the above, it is sorted into destination business units and stored in the message set buffer.

前記電文集合管理部(104)は、前記電文集合バッファ毎に電文数や電文集合の作成開始からの経過時間を監視し、一括処理の単位となる電文集合を作成する。   The message set management unit (104) monitors the number of messages and the elapsed time since the start of message set creation for each message set buffer, and creates a message set as a unit of batch processing.

前記電文集合管理部(104)は、電文数や経過時間が規定値を超えた場合は、それまでに格納されている電文を電文集合として処理先となる業務に一括処理依頼を行い、全ての業務処理を終えた場合は、処理済電文の一括送信依頼を行う。   When the number of messages or the elapsed time exceeds a specified value, the message set management unit (104) makes a batch processing request to the business to be processed as a message set by storing the messages stored so far, When business processing is completed, a batch transmission request for processed messages is made.

各業務は、処理した電文を再び前記宛先決定部(103)宛に送付する。   Each business sends the processed message again to the destination determination unit (103).

前記電文送信部(106)は、前記電文集合管理部(104)からの一括送信依頼を受けて、前記電文受信装置(300)である電文受信用のクライアントに対して前記電文集合の送付を行う。   In response to the batch transmission request from the message set management unit (104), the message transmission unit (106) sends the message set to the message reception client that is the message reception device (300). .

本発明のリアルタイム処理方式は、(a)クライアントから電文を受信するステップと、(b)前記電文の受信を契機に、前記電文の宛先となる業務の特定依頼を行うステップと、(c)前記業務の特定依頼を受けて、宛先管理テーブル(107)を参照することで前記電文の宛先を特定し、前記業務毎振り分けて電文集合バッファに格納するステップと、(d)前記業務毎に規定条件を満たすまでの間、前記電文を取りまとめて電文集合を作成するステップと、(e)前記電文集合の作成が完了した場合、前記業務での一括処理依頼を行うステップとを具備する。   The real-time processing method of the present invention includes (a) a step of receiving a message from a client, (b) a step of making a request for specifying a task to be the destination of the message, upon receiving the message, (c) In response to the business specification request, the destination of the message is specified by referring to the destination management table (107), and is distributed for each business and stored in the message set buffer. (D) A prescribed condition for each business Until the condition is satisfied, the steps of collecting the messages and creating a message set; and (e) performing the batch processing request in the job when the creation of the message set is completed.

前記(d)ステップは、(d1)前記規定条件として、電文数が一定数になるまで取りまとめを行うステップを具備する。   The step (d) includes the step (d1) of summarizing until the number of messages reaches a predetermined number as the prescribed condition.

前記(d)ステップは、(d2)作成中である前記電文集合の最初の電文が到着してからの経過時間を監視し、前記電文数が一定数以下の場合でも規定時間が経過した時点でとりまとめを終えるステップを更に具備する。   (D) step (d2) monitors the elapsed time from the arrival of the first message in the message set being created, and when the specified time has passed even if the number of messages is less than a certain number. The method further includes a step of finishing the compilation.

本発明のリアルタイム処理方式は、(f)前記一括処理依頼を受けた後、前記電文集合の一括処理を行うステップを更に具備する。   The real-time processing method of the present invention further comprises (f) a step of performing batch processing of the message set after receiving the batch processing request.

本発明のリアルタイム処理方式は、(g)前記業務での処理が完了した電文に対し、次に処理する業務の特定を行うステップを更に具備する。   The real-time processing method of the present invention further comprises (g) a step of specifying the next business to be processed for a message that has been processed in the business.

本発明のリアルタイム処理方式は、前記(g)ステップは、(g1)前記次に処理する業務を前記宛先管理テーブル(107)より特定するステップを具備する。   In the real-time processing method of the present invention, the step (g) includes the step (g1) of specifying the next task to be processed from the destination management table (107).

本発明のリアルタイム処理方式は、(h)前記次に処理する業務が残っている場合、再び処理先業務単位に振り分け、前記電文集合バッファに格納するステップを更に具備する。   The real-time processing method of the present invention further comprises the step of (h) when the next business to be processed remains, it is again assigned to the processing target business unit and stored in the message set buffer.

本発明のリアルタイム処理方式は、処理すべき全ての業務での処理が完了するまでの間、前記(a)ステップから前記(h)ステップまでの処理を繰り返す。   In the real-time processing method of the present invention, the processing from the step (a) to the step (h) is repeated until the processing for all tasks to be processed is completed.

本発明のリアルタイム処理方式は、(i)次の宛先となる業務がない場合、前記電文を、処理済電文用の電文集合バッファに格納し、前記電文数や経過時間が規定値となった場合は一括して送信依頼を行うステップを具備する。   In the real-time processing method of the present invention, (i) when there is no business to be the next destination, the message is stored in the message set buffer for processed messages, and the number of messages and the elapsed time become specified values Includes a step of collectively requesting transmission.

本発明のリアルタイム処理方式は、(j)前記送信依頼を受けた場合、前記電文を前記クライアントに対して送信するステップを具備する。   The real-time processing method of the present invention comprises (j) a step of transmitting the message to the client when the transmission request is received.

本発明のリアルタイム処理方式は、(k)前記宛先管理テーブル(107)の内容を変更することで動的に業務順序の変更を行うステップを更に具備する。   The real-time processing method of the present invention further includes the step of (k) dynamically changing the business order by changing the contents of the destination management table (107).

本発明のプログラムは、上記のいずれかのリアルタイム処理方式を、コンピュータに実行させる。   The program of the present invention causes a computer to execute any one of the above real-time processing methods.

第1の効果は、同一業務AP(アプリケーション)宛の電文を複数個取りまとめて電文集合とし、宛先業務APで一括処して処理を行うため、一般的なOLTP方式のような電文1件単位で処理を行う方式と比較して、電文あたりのスケジューリングコストが少なくなるという点である。
第2の効果は、電文を取りまとめて電文集合を生成する際の規則として、電文数のほかに電文集合作成時間などを設定するため、一般的なバッチ処理方式のような処理開始間隔が長い方式と異なり、電文処理時間(電文到着から処理完了までの時間)の要件を満たす範囲内での即時処理が可能となる点である。
第3の効果は、業務変更などにより業務APの処理順序が変更となった場合に、宛先テーブルを更新することで対応が可能となる点である。既存のバッチ処理方式の場合、業務変更などにより業務の処理順序が変更となった場合は、そのつどスケジュールの再定義等の変更が必要になるのに対し、本方式ではテーブルを変更するだけで容易に動的スケジュールが可能となる。
The first effect is that a plurality of messages addressed to the same business AP (application) are collected into a message set and processed at the destination business AP in a batch, so that processing is performed in units of one message like a general OLTP method. The scheduling cost per message is reduced compared to the method of performing the above.
The second effect is a method with a long processing start interval such as a general batch processing method in order to set a message set creation time in addition to the number of messages as a rule for generating a message set by collecting messages. Unlike the above, it is possible to perform immediate processing within a range that satisfies the requirements of message processing time (time from message arrival to processing completion).
A third effect is that when the processing order of the business AP is changed due to business change or the like, it is possible to cope with it by updating the destination table. In the case of the existing batch processing method, if the processing order of the business is changed due to a business change, etc., it is necessary to change the schedule redefinition etc. each time. In this method, only the table is changed. Dynamic scheduling can be easily performed.

以下に本発明の第1実施形態について添付図面を参照して説明する。
図1を参照すると、本発明のリアルタイム処理システムは、処理装置100、電文送信装置200、電文受信装置300を有している。
処理装置100は、電文受信部101、宛先管理部102、宛先決定部103、電文集合管理部104、一括実行部105、電文送信部106を備える。
電文送信装置200は、処理装置100宛に電文を送信する。
電文受信装置300は、処理装置100から電文を受信する。
A first embodiment of the present invention will be described below with reference to the accompanying drawings.
Referring to FIG. 1, the real-time processing system of the present invention includes a processing device 100, a message transmission device 200, and a message reception device 300.
The processing device 100 includes a message reception unit 101, a destination management unit 102, a destination determination unit 103, a message set management unit 104, a batch execution unit 105, and a message transmission unit 106.
The message transmission device 200 transmits a message to the processing device 100.
The message receiving device 300 receives a message from the processing device 100.

なお、電文は、処理装置100への入力データである。但し、本発明のリアルタイム処理システムでは、1つの電文に対して複数の処理装置にて処理が行われることを想定している。このため、例えば、処理装置Aで処理された電文が処理装置Bでも処理されるように決められていた場合、本電文は、処理装置Aの入力データであり、処理装置Aの出力データでもある。   The electronic message is input data to the processing apparatus 100. However, in the real-time processing system of the present invention, it is assumed that processing is performed on a single message by a plurality of processing devices. For this reason, for example, when it is determined that the message processed by the processing device A is also processed by the processing device B, the message is the input data of the processing device A and the output data of the processing device A. .

電文受信部101は、電文送信装置200から送信される電文を受信する機能を有する。   The message reception unit 101 has a function of receiving a message transmitted from the message transmission device 200.

宛先管理部102は、各電文について、処理すべき業務の順序を管理する機能と、電文の処理順序検索依頼を受けて該当電文が処理すべき業務の情報を返す機能と、外部からの処理順序変更依頼をもとに該当電文の処理順序を変更する機能を有する。
宛先管理部102の例として、データベースが挙げられる。また、他にも、処理装置上のメモリを用いる場合が考えられる。
The destination management unit 102 has a function for managing the order of tasks to be processed for each message, a function for returning a message processing order search request in response to a message processing order search request, and a processing order from the outside. It has a function to change the processing order of the corresponding message based on the change request.
An example of the destination management unit 102 is a database. In addition, a case where a memory on the processing device is used is conceivable.

宛先決定部103は、宛先管理部102に対し電文の処理順序検索依頼を行う機能と、検索結果の処理すべき業務の情報をもとに業務単位に電文を振り分ける機能を有する。   The destination determination unit 103 has a function of requesting the destination management unit 102 to search for a processing order of messages, and a function of distributing messages to business units based on business information to be processed as search results.

電文集合管理部104は、業務単位に振り分けられた電文を取りまとめる機能と、宛先業務毎に貯められた電文数や取りまとめ開始からの経過時間などを監視して一括処理単位となる電文集合を作成する機能を有する。   The message set management unit 104 creates a message set as a batch processing unit by monitoring a function for collecting messages distributed to business units, the number of messages stored for each destination business, the elapsed time since the start of the collection, and the like. It has a function.

一括実行部105は、電文集合管理部104で作成された電文集合を該当業務毎に一括処理を行う機能を有する。   The batch execution unit 105 has a function of batch processing the message set created by the message set management unit 104 for each corresponding business.

電文送信部106は、全ての業務処理が完了した処理済電文の集合を一括して次の宛先となる電文受信装置300に送信する機能を有する。   The message transmitting unit 106 has a function of transmitting a set of processed messages for which all business processes have been completed to the message receiving apparatus 300 that is the next destination.

以上の構成により、処理装置100は、一括処理と即時処理、動的スケジュールを実現する。   With the above configuration, the processing apparatus 100 realizes batch processing, immediate processing, and dynamic schedule.

以下に本発明の処理の概要について説明する。
電文は、電文送信装置200から処理装置100の電文受信部101宛に送付される。電文受信部101は、電文受信を契機に受信電文の処理業務特定依頼を宛先決定部103に対して行う。
The outline of the processing of the present invention will be described below.
The message is sent from the message transmission device 200 to the message reception unit 101 of the processing device 100. The message receiving unit 101 makes a received message processing task specification request to the destination determining unit 103 when the message is received.

処理業務の特定は、宛先決定部103が宛先管理部102を参照することで実現する。宛先業務の特定後は、対象業務毎に振り分けて電文集合管理部104宛に電文を送付する。振り分けられた電文は、電文集合管理部104にて業務毎にまとめられる。   The processing work is specified by the destination determination unit 103 referring to the destination management unit 102. After the destination business is specified, a message is sent to the message set management unit 104 according to the target business. The distributed electronic messages are collected for each business by the electronic message set management unit 104.

電文集合管理部104は、個々の業務単位に、貯められた電文数や、最初の電文到着からの経過時間、到着電文の優先度などを監視し、これらが規定値となった場合や高優先度の電文が到着した場合などにそれまでまとめられた電文を電文集合として一括処理要求を行う。   The message set management unit 104 monitors the number of stored messages, the elapsed time from the arrival of the first message, the priority of the arrival message, etc. for each business unit. When a message arrives at a certain time, a batch processing request is made as a set of messages.

一括実行部105は、一括実行要求のあった電文集合を該当する業務にて一括処理を行う。   The batch execution unit 105 performs batch processing on a set of messages for which batch execution has been requested in a corresponding job.

業務処理を完了した電文は、次に処理すべき業務の特定を行うために宛先決定部103宛に再送される。宛先決定部103では、先と同様に宛先管理部102を参照し、次の処理業務の特定と業務毎の振分を行う。以降は以上の処理を業務が完了するまで繰り返す。   The message for which the business process has been completed is retransmitted to the destination determination unit 103 in order to specify the business to be processed next. The destination determination unit 103 refers to the destination management unit 102 in the same manner as the destination, and specifies the next processing job and assigns the job to each job. Thereafter, the above processing is repeated until the work is completed.

なお、宛先を決定する際に、電文によっては、全ての業務処理が完了しているケースもあるが、このような電文についても「処理済電文」として振分の対象とする。処理済電文として振り分けられた電文に関しても、電文集合管理部104で電文集合を生成するが、生成後は電文送信要求を電文送信部106に対して行う。   When determining the destination, depending on the message, there may be cases where all the business processing has been completed, but such a message is also subject to distribution as a “processed message”. The message set management unit 104 also generates a message set for messages distributed as processed messages. After generation, a message transmission request is sent to the message transmission unit 106.

電文送信部106は、該当する電文集合を一括して電文受信装置300宛に送信する。   The message transmission unit 106 transmits the corresponding message set to the message reception device 300 in a lump.

本発明では、複数の入力電文をまとめて処理単位(電文集合)とし各業務で処理することで、電文1件当たりの処理スケジューリングにかかるオーバヘッドを削減することが可能となる。このため、OLTP方式のような電文を1件ずつ処理する方式と比べ1電文あたりのスケジューリングコストが小さくなるというメリットがある。なお、本機能は、処理済電文の一括送信にも使用することで、電文受信装置300といった外部装置への電文転送にかかるオーバヘッドの削減も可能となる。   In the present invention, it is possible to reduce the overhead for processing scheduling per message by processing a plurality of input messages as a processing unit (message set) and processing each job. For this reason, there is an advantage that the scheduling cost per message is smaller than the method of processing messages one by one like the OLTP method. Note that this function can also be used for batch transmission of processed messages, thereby reducing overhead associated with message transfer to an external device such as the message receiver 300.

また、一括処理単位となる電文集合を作成する際に、電文数や、取りまとめ開始からの経過時間などを監視し、電文毎の処理時間要件に合わせて電文集合の作成規則を決定することができる。このため、一般的なバッチ処理のような一定時間(少なくとも1時間程度)で処理を行う方式とは異なり、処理時間要件に合わせた即時処理が可能となる。   Also, when creating a message set that is a batch processing unit, the number of messages and the elapsed time since the start of compilation can be monitored, and the rules for creating a message set can be determined according to the processing time requirements for each message. . For this reason, unlike a method in which processing is performed for a fixed time (at least about 1 hour) such as general batch processing, immediate processing according to processing time requirements is possible.

また、本発明では電文の処理順序を宛先テーブルで管理し、業務AP(アプリケーション)への振分前毎に処理順序の特定を行うため、業務の処理順序変更が必要となった場合は、該当テーブルの宛先業務の内容を更新することで対応可能となる。このため、バッチ処理方式のようにスケジュールが固定された方式と比べ、動的にスケジュールを変更できるというメリットがある。   Also, in the present invention, the processing order of messages is managed by the destination table, and the processing order is specified before allocation to the business AP (application). This can be handled by updating the contents of the destination transaction in the table. For this reason, there is an advantage that the schedule can be dynamically changed as compared with the method in which the schedule is fixed like the batch processing method.

本発明の実施例について以下に詳述する。
図2を参照すると、本実施例は処理装置100とクライアント10〜13を用いる。処理装置100とクライアント10〜13はネットワーク500により接続されている。クライアント10〜12は電文の送信を行い、クライアント13は処理済電文の受信を行う。
なお、クライアント10〜13は、処理装置100に電文を送信する時は図1の電文送信装置200に該当し、処理装置100から電文を受信する時は図1の電文受信装置300に該当する。
Examples of the present invention are described in detail below.
Referring to FIG. 2, this embodiment uses a processing apparatus 100 and clients 10-13. The processing device 100 and the clients 10 to 13 are connected by a network 500. The clients 10 to 12 transmit a message, and the client 13 receives a processed message.
The clients 10 to 13 correspond to the message transmission device 200 in FIG. 1 when transmitting a message to the processing device 100, and correspond to the message reception device 300 in FIG. 1 when receiving a message from the processing device 100.

クライアント10、11、12はネットワーク500を介して電文を処理装置100へ送信する機能を備えている。またクライアント13は処理済電文を、同ネットワークを介して受信する機能を備えている。   The clients 10, 11, and 12 have a function of transmitting a message to the processing device 100 via the network 500. In addition, the client 13 has a function of receiving processed messages via the network.

処理装置100は、電文受信部101、宛先決定部103、電文集合管理部104、一括実行部105、電文送信部106、宛先管理テーブル107、受信電文記憶部108を備える処理管理機構110と業務処理を行う業務AP1〜3により構成されている。
なお、宛先管理テーブル107は、図1に示す宛先管理部102に含まれる。この場合、性能を考慮し、処理装置上のメモリに宛先管理テーブル107を格納して管理するようにしても良い。また、受信電文記憶部108は、電文受信部101又は宛先決定部103に含まれていても良い。
The processing device 100 includes a message management unit 110 including a message reception unit 101, a destination determination unit 103, a message set management unit 104, a batch execution unit 105, a message transmission unit 106, a destination management table 107, and a received message storage unit 108, and business processing. It is comprised by business AP1-3 which performs.
The destination management table 107 is included in the destination management unit 102 shown in FIG. In this case, in consideration of performance, the destination management table 107 may be stored and managed in a memory on the processing device. The received message storage unit 108 may be included in the message reception unit 101 or the destination determination unit 103.

業務APは業務単位に分割されており、1つの電文は規定の順番で業務APにて処理を行う。また、本実施例では処理対象の業務APと処理順序は電文毎に異なるケースも想定しているため、電文によっては処理不要な業務APが存在しても構わない。図3を参照すると、電文A、B、Cのいずれも最初は業務AP1を行う。電文Aは業務AP1の後に業務AP2、業務AP3の順に実行を行うが、電文Bは業務AP1のあとは業務AP3で完了する。また、電文Cは3種類の業務を全て行うが業務AP1の後の処理順序が電文Aと異なり業務AP3、業務AP2の順となる。   The business AP is divided into business units, and one message is processed by the business AP in a prescribed order. Further, in the present embodiment, it is assumed that the processing AP and the processing order are different for each message. Therefore, depending on the message, there may be a processing AP that does not require processing. Referring to FIG. 3, all of the messages A, B, and C initially perform the business AP1. The message A is executed in the order of the job AP2 and the job AP3 after the job AP1, while the message B is completed in the job AP3 after the job AP1. The message C performs all three types of jobs, but the processing order after the job AP1 is different from the message A and is in the order of the jobs AP3 and AP2.

電文には、入力データを格納するデータ部のほかに次に処理を行う業務APを記録するための制御部から構成される。処理装置100への電文入力後や各業務APの処理終了後に宛先決定部103が次に処理を行う業務APを宛先管理テーブル107より特定し、宛先業務APを電文の制御部に格納する。図4を参照すると、電文Bは業務AP1、業務AP3の順で処理を行う。電文入力直後は宛先決定部103により制御部には宛先である「業務AP1」の情報が格納される。業務AP1の処理完了後に宛先決定部103は、制御部を次の宛先である「業務AP3」に更新する。更に業務AP3の処理完了後に宛先決定部103は、次の宛先を特定するために宛先管理テーブル107を参照するが、該当する宛先がないため制御部に「−」を格納する。   The message includes a control unit for recording a business AP to be processed next in addition to a data unit for storing input data. After inputting a message to the processing device 100 or after processing of each business AP, the destination determination unit 103 identifies the next business AP to be processed from the destination management table 107, and stores the destination business AP in the message control unit. Referring to FIG. 4, message B performs processing in the order of business AP1 and business AP3. Immediately after the telegram is input, the destination determination unit 103 stores the information of “business AP1” as the destination in the control unit. After the processing of the business AP1 is completed, the destination determination unit 103 updates the control unit to “business AP3” which is the next destination. Further, after the processing of the business AP 3 is completed, the destination determination unit 103 refers to the destination management table 107 in order to specify the next destination, but stores “-” in the control unit because there is no corresponding destination.

以下に処理管理機構の各部の機能を示す。
電文受信部101は、クライアントからの電文受信を契機に、該当電文の宛先業務の特定依頼を行う機能を持つ。なお、処理対象となった電文は、受信電文記憶部108に格納される。
The function of each part of the processing management mechanism is shown below.
The message receiving unit 101 has a function of making a request for specifying a destination job of a corresponding message when receiving a message from a client. Note that the message to be processed is stored in the received message storage unit 108.

宛先管理テーブル107は主記憶装置上に配置されており、電文毎に該当電文が最後に処理を行った業務AP情報より、次に処理を行う業務APを解決するための情報を保持する。   The destination management table 107 is arranged on the main storage device, and holds information for resolving the business AP to be processed next from the business AP information that has been processed last for each message.

宛先決定部103は、各電文が次に処理を行う業務APを宛先管理テーブル107より特定し電文の制御部に宛先業務AP名を格納する機能と、特定した情報をもとに宛先業務AP単位に振り分けて電文集合バッファに格納する機能を持つ。   The destination determination unit 103 specifies the business AP to be processed next by each message from the destination management table 107 and stores the destination business AP name in the control unit of the message, and the destination business AP unit based on the specified information It has a function to sort and store in the message set buffer.

電文集合管理部104は、電文集合バッファ毎に電文数や電文集合の作成開始からの経過時間を監視し、一括処理の単位となる電文集合を作成する。電文数や経過時間が規定値を超えた場合は、それまでに格納されている電文を電文集合として処理先となる業務APに一括処理依頼を行う。但し、全ての業務処理を終えた処理済電文は、一括送信依頼を行う。 The message set management unit 104 monitors the number of messages and the elapsed time from the start of creating a message set for each message set buffer, and creates a message set as a unit of batch processing. When the number of messages and the elapsed time exceed the specified values, a batch processing request is made to the business AP as the processing destination with the messages stored so far as a message set. However, for all processed messages that have been processed, a batch transmission request is made.

各業務APは処理した電文を再び宛先決定部103宛に送付する。   Each business AP sends the processed message to the destination determination unit 103 again.

電文送信部106は、電文集合管理部104からの一括送信依頼を受けて、電文受信用のクライアント13に対して該当電文集合の送付を行う。   In response to the batch transmission request from the message set management unit 104, the message transmission unit 106 sends the corresponding message set to the message reception client 13.

次に、本実施例における動作について説明する。図5は、本実施例における動作を示すフローチャートである。   Next, the operation in this embodiment will be described. FIG. 5 is a flowchart showing the operation in this embodiment.

(1)ステップS101
クライアント10、11、12からネットワーク500を介して出力される電文は、処理装置100の処理管理機構110に送付される。処理管理機構110の電文受信部101は、クライアントからの電文受信を契機に該当電文を受信電文記憶部108に格納し該当電文の宛先となる業務APの特定依頼を行う。
(1) Step S101
A message output from the clients 10, 11, and 12 via the network 500 is sent to the processing management mechanism 110 of the processing device 100. The message receiving unit 101 of the processing management mechanism 110 stores the corresponding message in the received message storage unit 108 when receiving a message from the client, and makes a request for specifying the business AP that is the destination of the corresponding message.

(2)ステップS102
宛先決定部103は、宛先業務APの特定依頼を受けて宛先管理テーブル107を参照することで該当電文の宛先を特定し、業務毎振り分けて電文集合バッファに格納する。
(2) Step S102
The destination determination unit 103 receives a request for specifying the destination business AP, refers to the destination management table 107, specifies the destination of the corresponding message, sorts the task by task, and stores it in the message set buffer.

(3)ステップS103
電文集合管理部104は、宛先業務AP毎に規定条件を満たすまでの間、電文を取りまとめて電文集合を作成する。ここで条件としては、より多くの電文を一括処理可能とするように電文数が一定数になるまで取りまとめを行うことが望ましい。また、電文数のほかに、作成中である電文集合の最初の電文が到着してからの経過時間を監視し電文数が一定数以下の場合でも規定時間が経過した時点でとりまとめを終える規則も併用することが望ましい。これにより、一括処理によるスケジュールコストの削減と、1電文あたりの処理時間要件に柔軟に対応可能な即時処理が可能となる。電文集合の作成が完了した場合は、宛先業務APでの一括処理依頼を一括実行部105に対して行う。
(3) Step S103
The message set management unit 104 creates a message set by collecting messages until the specified condition is satisfied for each destination business AP. Here, as a condition, it is desirable to collect the messages until the number of messages reaches a certain number so that more messages can be collectively processed. In addition to the number of messages, there is also a rule that monitors the elapsed time from the arrival of the first message in the message set being created, and finishes the compilation when the specified time has passed even if the number of messages is below a certain number. It is desirable to use together. As a result, it is possible to reduce schedule costs by batch processing and to perform immediate processing that can flexibly cope with processing time requirements per message. When the creation of the message set is completed, a batch processing request at the destination business AP is made to the batch execution unit 105.

(4)ステップS104
一括処理依頼を受けた一括実行部105は、該当電文集合の一括処理を行う。業務APでの処理が完了した電文は、再び宛先決定部103に送られ次に処理する業務APの特定を行う。
(4) Step S104
Upon receiving the batch processing request, the batch execution unit 105 performs batch processing of the corresponding message set. The message that has been processed by the business AP is sent again to the destination determination unit 103 to identify the business AP to be processed next.

(5)ステップS105
電文を受信した宛先決定部103は、個々の電文の次の宛先業務APを宛先テーブルより特定する。ここで次に処理するべき業務が残っている場合は、電文集合管理部104により再び処理先業務AP単位に振り分けられ、電文集合バッファに格納される。
(5) Step S105
Receiving the message, the destination determination unit 103 identifies the next destination business AP of each message from the destination table. Here, when there is a task to be processed next, the message set management unit 104 assigns it again to the processing target job AP and stores it in the message set buffer.

(6)ステップS106
以降は、処理すべき全ての業務APでの処理が完了するまでの間、上記の流れを繰り返す。
(6) Step S106
Thereafter, the above-described flow is repeated until the processing in all business APs to be processed is completed.

(7)ステップS107
宛先決定部103において、該当電文に必要な全ての業務で処理が完了した場合(次の宛先となる業務APがない場合)、本電文は、電文集合管理部104が有する処理済電文用の電文集合バッファに格納する。これらの電文も、電文集合管理部104にてとりまとめが行われ、電文数や経過時間が規定値となった場合は一括して電文送信部106に送信依頼を行う。
(7) Step S107
In the destination determination unit 103, when processing is completed for all the tasks required for the corresponding message (when there is no next destination business AP), this message is a message for a processed message that the message set management unit 104 has. Store in aggregate buffer. These messages are also collected by the message set management unit 104, and when the number of messages and the elapsed time become the specified values, a transmission request is sent to the message transmission unit 106 at once.

(8)ステップS108
送信要求を受けた電文送信部106は、該当電文をクライアント13に対して送信を行う。
(8) Step S108
Upon receiving the transmission request, the message transmission unit 106 transmits the corresponding message to the client 13.

業務APの処理順序が変更となった場合の動作について説明する。
電文の処理順序は宛先管理テーブル107にて管理を行い、各業務APでの処理が終わった後に本テーブルを参照することで宛先業務APを特定する。新規業務の追加や既存業務の廃止などが発生した場合は、業務APの処理順序の変更が伴うことが想定される。このような場合は、宛先テーブルの内容を変更することで動的に業務順序の変更を行う。
An operation when the processing order of the business AP is changed will be described.
The processing order of the message is managed in the destination management table 107, and the destination business AP is specified by referring to this table after the processing in each business AP is completed. When a new business is added or an existing business is abolished, it is assumed that the processing order of the business AP is changed. In such a case, the work order is dynamically changed by changing the contents of the destination table.

本発明は、処理装置への入力を電文集合として管理する。本電文集合を、処理先となる業務AP単位に振り分けて一定量(期間)蓄えて一括処理を行う。各業務APの処理を行った電文は、電文毎に次の処理先(宛先)となる業務AP(又は処理装置)を宛先管理手段により解決し再び電文集合として取りまとめて、後続処理装置宛てに一括送付する。ここで、一括送付された電文集合もまた、宛先となる処理装置(業務AP)にて一括処理が行われる。これにより、複数の業務APを搭載する複数台の処理装置から構成され、電文毎に複数の処理装置間を行き来して処理が完結するような大規模システムに対しても本発明を適用してスループットの高いリアルタイム処理の実現が可能となる。   The present invention manages input to the processing device as a message set. This message set is distributed to the business AP unit that is the processing destination, and a certain amount (period) is stored for batch processing. The messages processed by each business AP are resolved to the next processing destination (destination) business AP (or processing device) for each message by the address management means, and are collected again as a message set, and then sent to the subsequent processing device at once. Send it. Here, the batch-sent message sets are also batch-processed by the destination processing device (business AP). As a result, the present invention is also applied to a large-scale system that includes a plurality of processing devices equipped with a plurality of business APs and completes processing by going back and forth between a plurality of processing devices for each message. Real-time processing with high throughput can be realized.

また、本発明では、業務APの処理順序の動的変更に加えて、各電文の処理順序(宛先)を特定し電文集合を作成する。これにより、電文集合をもとにした一括処理/送信によるリアルタイム処理のスループット向上が可能となる。   In the present invention, in addition to the dynamic change of the processing order of the business AP, the processing order (destination) of each message is specified and a message set is created. This makes it possible to improve the throughput of real-time processing by batch processing / transmission based on the message set.

以上のように、本発明によるリアルタイム処理方式は、大量の入力電文を電文固有の処理順序に従い複数の業務APで処理を行うシステムにおいて、電文入力を契機として複数の電文を規則に従い取りまとめて該当業務APにて一括処理を行い、業務処理順序をテーブルで管理することで次に処理を行う業務APの特定(テーブルドリブン)を行う。これにより、大量な電文処理が必要となるリアルタイム処理において、一括処理によるスケジューリングコストの削減と、テーブルドリブンによる動的スケジューリングを可能とする。また、一括処理を行う電文の取りまとめ単位を、「電文数が一定数になるまで」や、「取りまとめ開始からの経過時間」などの条件をもとに設定することで処理実行時間の要件に柔軟に対応可能なリアルタイム処理が可能となる。   As described above, the real-time processing method according to the present invention is a system in which a large number of input messages are processed by a plurality of business APs in accordance with a processing sequence unique to the message, and a plurality of messages are collected according to the rules in response to message input. The batch processing is performed by the AP, and the business processing order to be processed next is specified (table driven) by managing the business processing order in a table. As a result, in real-time processing that requires a large amount of electronic message processing, it is possible to reduce scheduling cost by batch processing and dynamic scheduling by table-driven. In addition, it is possible to flexibly meet the requirements for processing execution time by setting the unit for grouping messages for batch processing based on conditions such as “until the number of messages reaches a certain number” and “elapsed time since the start of grouping”. Real-time processing can be performed.

図1は、本発明のリアルタイム処理システムの構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of the real-time processing system of the present invention. 図2は、本発明の実施例の構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of the embodiment of the present invention. 図3は、電文毎の業務APの処理順序を示す図である。FIG. 3 is a diagram illustrating the processing order of the business AP for each message. 図4は、業務APの処理順序と電文に格納される情報の関係を示す図である。FIG. 4 is a diagram illustrating the relationship between the processing order of business APs and information stored in a message. 図5は、本実施例の動作を示すフローチャートである。FIG. 5 is a flowchart showing the operation of this embodiment.

符号の説明Explanation of symbols

1〜3 業務AP
10〜13 クライアント
100 処理装置
101 電文受信部
102 宛先管理部
103 宛先決定部
104 電文集合管理部
105 一括実行部
106 電文送信部
107 宛先管理テーブル
108 受信電文記憶部
110 処理管理機構
200 電文送信装置
300 電文受信装置
500 ネットワーク
1-3 Business AP
10 to 13 Client 100 Processing device 101 Message reception unit 102 Destination management unit 103 Destination determination unit 104 Message set management unit 105 Collective execution unit 106 Message transmission unit 107 Destination management table 108 Received message storage unit 110 Processing management mechanism 200 Message transmission device 300 Telegram receiver 500 network

Claims (26)

電文を業務単位に振り分け、前記振り分けられた電文をまとめて電文集合とし、前記電文集合を該当する業務毎に一括して処理する処理装置と、
前記処理装置に前記電文を送信する電文送信装置と、
前記処理装置から前記電文集合を受信する電文受信装置と
を備え、
前記処理装置は、前記電文の処理順序に従い、該当する業務での処理が完了した電文について次に処理を行う業務が残っている場合、前記処理が完了した電文をまとめて新たな電文集合とし、前記新たな電文集合を前記次に処理を行う業務にて一括して処理し、前記電文に必要な全ての業務で処理が完了した場合、前記電文を前記電文受信装置に送信する
リアルタイム処理システム。
A processing device that sorts messages into business units, collects the sorted messages into a message set, and collectively processes the message set for each corresponding job;
A message transmission device that transmits the message to the processing device;
A message receiving device that receives the message set from the processing device;
The processing device, according to the processing sequence of the message, if there is a task to be processed next for a message that has been processed in the corresponding task, the messages that have been processed are collected into a new message set, A real-time processing system in which the new message set is collectively processed in the next task to be processed, and the message is transmitted to the message receiver when processing is completed in all tasks required for the message.
請求項1に記載のリアルタイム処理システムにおいて、
前記処理装置は、前記電文を一定数蓄積した時点でとりまとめを終了する
リアルタイム処理システム。
The real-time processing system according to claim 1,
The processing device terminates summarization when a predetermined number of the messages are accumulated.
請求項1又は2に記載のリアルタイム処理システムにおいて、
前記処理装置は、前記電文のとりまとめを開始してから一定時間が経過した時点でとりまとめを終了する
リアルタイム処理システム。
In the real-time processing system according to claim 1 or 2,
The said processing apparatus is a real-time processing system which complete | finishes a summarization when fixed time passes since the summarization of the said message | telegram was started.
請求項1乃至3のいずれか一項に記載のリアルタイム処理システムにおいて、
前記処理装置は、
前記電文が最後に処理を行った業務に基づいて、次に処理を行う業務を解決するための情報を保持する宛先管理テーブルを備える
リアルタイム処理システム。
In the real-time processing system according to any one of claims 1 to 3,
The processor is
A real-time processing system comprising a destination management table that stores information for resolving a task to be processed next based on a task that the message has processed last.
請求項4に記載のリアルタイム処理システムにおいて、
前記電文は、
入力データを格納する格納部と、
前記次に処理を行う業務を記録するための制御部と
を有し、
前記処理装置は、前記次に処理を行う業務を前記宛先管理テーブルより特定し、前記電文の前記制御部に格納する
リアルタイム処理システム。
The real-time processing system according to claim 4,
The message is
A storage unit for storing input data;
A control unit for recording the work to be processed next,
The processing device specifies a task to be processed next from the destination management table and stores it in the control unit of the message.
請求項1乃至5のいずれか一項に記載のリアルタイム処理システムにおいて、
前記処理装置は、前記処理順序を動的に変更する
リアルタイム処理システム。
In the real-time processing system according to any one of claims 1 to 5,
The processing device is a real-time processing system that dynamically changes the processing order.
電文に対して、処理すべき業務の順序を管理し、前記電文の処理順序検索依頼を受けて前記電文が処理すべき業務の情報を返し、外部からの処理順序変更依頼をもとに該当する前記電文の処理順序を変更する宛先管理部と、
前記宛先管理部に対し前記電文の処理順序検索依頼を行い、前記処理順序検索の検索結果の処理すべき業務の情報をもとに業務単位に前記電文を振り分ける宛先決定部と、
業務単位に振り分けられた前記電文を取りまとめ、宛先業務毎に貯められた前記電文数又は取りまとめ開始からの経過時間を監視して一括処理単位となる電文集合を作成する電文集合管理部と、
前記電文集合管理部で作成された前記電文集合を該当業務毎に一括処理を行う一括実行部と
を具備する
処理装置。
It corresponds to the processing based on the processing order change request from the outside, managing the order of the processing to be processed for the message, receiving the processing order search request for the message, returning the information of the processing to be processed by the message A destination management unit for changing the processing order of the message;
A destination determination unit that performs a processing order search request for the electronic message to the destination management unit, and distributes the electronic message to a business unit based on business information to be processed in the search result of the processing order search;
A message set management unit that collects the messages distributed to business units, monitors the number of messages stored for each destination business or the elapsed time from the start of the compilation, and creates a message set as a batch processing unit;
A processing apparatus comprising: a batch execution unit that batch-processes the message set created by the message set management unit for each corresponding business.
請求項7に記載の処理装置において、
電文送信装置から送信される前記電文を受信する電文受信部と、
前記一括処理を行った後、全ての業務処理が完了した処理済電文の集合を一括して次の宛先となる電文受信装置に送信する電文送信部と
を更に具備する
処理装置。
The processing apparatus according to claim 7, wherein
A message receiving unit for receiving the message transmitted from the message transmission device;
A processing apparatus, further comprising: a message transmission unit that collectively transmits a set of processed messages for which all business processes have been completed to the next message reception apparatus after performing the batch processing.
請求項8に記載の処理装置において、
前記宛先管理部は、前記電文毎に該当する電文が最後に処理を行った業務に関する情報をもとに、次に処理を行う業務を解決するための情報を保持する宛先管理テーブルを含む
処理装置。
The processing apparatus according to claim 8, wherein
The destination management unit includes a destination management table that holds information for resolving a task to be processed next based on information regarding a task that has been processed last by a message corresponding to each message. .
請求項9に記載の処理装置において、
前記宛先決定部は、前記電文が前記次に処理を行う業務を前記宛先管理テーブルより特定し、前記電文の制御部に宛先業務名を格納し、前記特定した業務の情報をもとに宛先業務単位に振り分けて電文集合バッファに格納する
処理装置。
The processing apparatus according to claim 9, wherein
The destination determination unit specifies a task to be processed next by the message from the destination management table, stores a destination task name in the control unit of the message, and stores the destination task based on the specified task information. A processing unit that sorts the data and stores it in the message set buffer.
請求項10に記載の処理装置において、
前記電文集合管理部は、前記電文集合バッファ毎に電文数や電文集合の作成開始からの経過時間を監視し、一括処理の単位となる電文集合を作成する
処理装置。
The processing apparatus according to claim 10, wherein
The message set management unit monitors the number of messages and the elapsed time from the start of message set creation for each message set buffer, and creates a message set as a unit of batch processing.
請求項11に記載の処理装置において、
前記電文集合管理部は、電文数や経過時間が規定値を超えた場合は、それまでに格納されている電文を電文集合として処理先となる業務に一括処理依頼を行い、全ての業務処理を終えた場合は、処理済電文の一括送信依頼を行う
処理装置。
The processing apparatus according to claim 11, wherein
When the number of messages or the elapsed time exceeds the specified value, the message set management unit makes a batch processing request to the business to be processed as a message set of the messages stored so far, and performs all the business processing. When finished, a processing device that makes a batch transmission request for processed messages.
請求項12に記載の処理装置において、
各業務は、処理した電文を再び前記宛先決定部宛に送付する
処理装置。
The processing apparatus according to claim 12, wherein
Each service sends the processed message again to the destination determination unit.
請求項13に記載の処理装置において、
前記電文送信部は、前記電文集合管理部からの一括送信依頼を受けて、前記電文受信装置である電文受信用のクライアントに対して前記電文集合の送付を行う
処理装置。
The processing apparatus according to claim 13, wherein
The message transmission unit receives a batch transmission request from the message set management unit and sends the message set to a message reception client that is the message reception device.
(a)クライアントから電文を受信するステップと、
(b)前記電文の受信を契機に、前記電文の宛先となる業務の特定依頼を行うステップと、
(c)前記業務の特定依頼を受けて、宛先管理テーブルを参照することで前記電文の宛先を特定し、前記業務毎振り分けて電文集合バッファに格納するステップと、
(d)前記業務毎に規定条件を満たすまでの間、前記電文を取りまとめて電文集合を作成するステップと、
(e)前記電文集合の作成が完了した場合、前記業務での一括処理依頼を行うステップと
を具備する
リアルタイム処理方式。
(A) receiving a message from the client;
(B) triggered by reception of the message, a step of making a request for specifying a task as a destination of the message;
(C) receiving a request for identifying the business, identifying a destination of the message by referring to a destination management table, sorting the business and storing it in a message set buffer;
(D) collecting the messages and creating a message set until a prescribed condition is satisfied for each job;
(E) A real-time processing method comprising: a step of requesting batch processing in the business when creation of the message set is completed.
請求項15に記載のリアルタイム処理方式において、
前記(d)ステップは、
(d1)前記規定条件として、電文数が一定数になるまで取りまとめを行うステップを具備する
リアルタイム処理方式。
The real-time processing method according to claim 15,
The step (d) includes:
(D1) A real-time processing method including a step of collecting until the number of messages reaches a predetermined number as the prescribed condition.
請求項16に記載のリアルタイム処理方式において、
前記(d)ステップは、
(d2)作成中である前記電文集合の最初の電文が到着してからの経過時間を監視し、前記電文数が一定数以下の場合でも規定時間が経過した時点でとりまとめを終えるステップを更に具備する
リアルタイム処理方式。
The real-time processing method according to claim 16, wherein
The step (d) includes:
(D2) further comprising a step of monitoring an elapsed time since the arrival of the first message in the message set being created, and finishing the compilation when the specified time has elapsed even when the number of messages is a predetermined number or less. Yes Real-time processing method.
請求項15乃至17のいずれか一項に記載のリアルタイム処理方式において、
(f)前記一括処理依頼を受けた後、前記電文集合の一括処理を行うステップを更に具備する
リアルタイム処理方式。
The real-time processing method according to any one of claims 15 to 17,
(F) A real-time processing method further comprising a step of performing batch processing of the message set after receiving the batch processing request.
請求項18に記載のリアルタイム処理方式において、
(g)前記業務での処理が完了した電文に対し、次に処理する業務の特定を行うステップを更に具備する
リアルタイム処理方式。
The real-time processing method according to claim 18,
(G) A real-time processing method further comprising a step of specifying a business to be processed next for a message that has been processed in the business.
請求項19に記載のリアルタイム処理方式において、
前記(g)ステップは、
(g1)前記次に処理する業務を前記宛先管理テーブルより特定するステップを具備する
リアルタイム処理方式。
The real-time processing method according to claim 19,
The step (g) includes:
(G1) A real-time processing method comprising a step of specifying the next task to be processed from the destination management table.
請求項19又は20に記載のリアルタイム処理方式において、
(h)前記次に処理する業務が残っている場合、再び処理先業務単位に振り分け、前記電文集合バッファに格納するステップを更に具備する
リアルタイム処理方式。
The real-time processing method according to claim 19 or 20,
(H) A real-time processing method, further comprising the step of, when the next business to be processed remains, assigning it again to a processing target business unit and storing it in the message set buffer.
請求項21に記載のリアルタイム処理方式において、
処理すべき全ての業務での処理が完了するまでの間、前記(a)ステップから前記(h)ステップまでの処理を繰り返す
リアルタイム処理方式。
The real-time processing method according to claim 21,
A real-time processing method in which the processing from the step (a) to the step (h) is repeated until processing for all the tasks to be processed is completed.
請求項22に記載のリアルタイム処理方式において、
(i)次の宛先となる業務がない場合、前記電文を、処理済電文用の電文集合バッファに格納し、前記電文数や経過時間が規定値となった場合は一括して送信依頼を行うステップを具備する
リアルタイム処理方式。
The real-time processing method according to claim 22,
(I) When there is no business as the next destination, the message is stored in a message set buffer for processed messages, and when the number of messages and the elapsed time become a specified value, a transmission request is collectively made. Real-time processing method with steps.
請求項23に記載のリアルタイム処理方式において、
(j)前記送信依頼を受けた場合、前記電文を前記クライアントに対して送信するステップを具備する
リアルタイム処理方式。
The real-time processing method according to claim 23,
(J) A real-time processing method comprising a step of transmitting the electronic message to the client when the transmission request is received.
請求項15乃至24のいずれか一項に記載のリアルタイム処理方式において、
(k)前記宛先管理テーブルの内容を変更することで動的に業務順序の変更を行うステップを更に具備する
リアルタイム処理方式。
In the real-time processing system according to any one of claims 15 to 24,
(K) A real-time processing method further comprising a step of dynamically changing the business order by changing the contents of the destination management table.
請求項15乃至25のいずれか一項に記載のリアルタイム処理方式を、コンピュータに実行させるためのプログラム。   A program for causing a computer to execute the real-time processing method according to any one of claims 15 to 25.
JP2005172938A 2005-06-13 2005-06-13 Real-time processing system, processing apparatus, real-time processing method, and program Expired - Fee Related JP4232109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005172938A JP4232109B2 (en) 2005-06-13 2005-06-13 Real-time processing system, processing apparatus, real-time processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005172938A JP4232109B2 (en) 2005-06-13 2005-06-13 Real-time processing system, processing apparatus, real-time processing method, and program

Publications (2)

Publication Number Publication Date
JP2006350474A true JP2006350474A (en) 2006-12-28
JP4232109B2 JP4232109B2 (en) 2009-03-04

Family

ID=37646280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005172938A Expired - Fee Related JP4232109B2 (en) 2005-06-13 2005-06-13 Real-time processing system, processing apparatus, real-time processing method, and program

Country Status (1)

Country Link
JP (1) JP4232109B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009193409A (en) * 2008-02-15 2009-08-27 Nec Corp Electronic document processing system, electronic document processing method, its program and its recording medium
CN112005220A (en) * 2018-04-27 2020-11-27 三菱电机株式会社 Data processing apparatus, monitoring method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009193409A (en) * 2008-02-15 2009-08-27 Nec Corp Electronic document processing system, electronic document processing method, its program and its recording medium
JP4645657B2 (en) * 2008-02-15 2011-03-09 日本電気株式会社 Telegram processing system, telegram processing method, program thereof, and recording medium thereof
CN112005220A (en) * 2018-04-27 2020-11-27 三菱电机株式会社 Data processing apparatus, monitoring method, and program

Also Published As

Publication number Publication date
JP4232109B2 (en) 2009-03-04

Similar Documents

Publication Publication Date Title
US8826284B1 (en) Scalable task scheduling
KR100509794B1 (en) Method of scheduling jobs using database management system for real-time processing
CN103235835B (en) For the inquiry implementation method and device of data-base cluster
CN101951411A (en) Cloud scheduling system and method and multistage cloud scheduling system
CN111209091B (en) Scheduling method of Spark task containing private data in mixed cloud environment
JP2017037492A (en) Distributed processing program, distributed processing method and distributed processor
CN107045459A (en) A kind of O&M request processing method and device based on ansible
CN113064742A (en) Message processing method, device, equipment and storage medium
CN107025131B (en) Task scheduling method and device
CN104320382A (en) Distributive real-time stream processing device, method and unit
JP4232109B2 (en) Real-time processing system, processing apparatus, real-time processing method, and program
CN111913784B (en) Task scheduling method and device, network element and storage medium
CN110750362A (en) Method and apparatus for analyzing biological information, and storage medium
CN102299903B (en) A kind of methods, devices and systems processing user&#39;s request
JP2003132039A (en) Scenario dividing system
JP3942979B2 (en) Parallel processing system, server, parallel processing method, program, and recording medium
CN106598721B (en) Media asset data streaming method and device
CN100382032C (en) Method and apparatus to create a reservation against a future scheduling object instantiation
CN109522004A (en) A kind of method that ETL process is run in distributed structure/architecture
TWI223762B (en) Front end dispatching method and system for long batch processing equipment in semiconductor manufacturing
CN112783634B (en) Task processing system, method and computer readable storage medium
CN111552561B (en) Task processing method and device
US8804173B2 (en) Apparatus management device and method for merging additional information identifiers into information acquisition requests
JP2012079038A (en) Job execution management system
CN108243204A (en) The methods of exhibiting of running state of process and displaying device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080623

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080626

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080825

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081113

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081126

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111219

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4232109

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111219

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121219

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121219

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131219

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees