JPH03282865A - Remote file reading-in system - Google Patents

Remote file reading-in system

Info

Publication number
JPH03282865A
JPH03282865A JP2084154A JP8415490A JPH03282865A JP H03282865 A JPH03282865 A JP H03282865A JP 2084154 A JP2084154 A JP 2084154A JP 8415490 A JP8415490 A JP 8415490A JP H03282865 A JPH03282865 A JP H03282865A
Authority
JP
Japan
Prior art keywords
file
computer
remote
storage device
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2084154A
Other languages
Japanese (ja)
Inventor
Masaji Isemura
伊勢村 正次
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 JP2084154A priority Critical patent/JPH03282865A/en
Publication of JPH03282865A publication Critical patent/JPH03282865A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily produce a device used for a remote file access by providing a file information informing means and a file transmitting means on a first computer of the side of which a file to be read in exists in a remote file store device. CONSTITUTION:A computer C1 and a computer C2 are connected, and the computer C1 is provided with a file transmitting means 1 and a file information informing means 2. Also, the computer C2 is provided with a file receiving means 3, a file information inquiring means 4, a file producing/deleting means 5, a file reading-in means 6, a file receiving state management table 7 and a remote file access managing means 8. Moreover, in the computer C1 and the computer C2, a remote file storage device 10 for read-in, and an application program 9 for processing a file exist, respectively. In such a way, the file on the other computer can be read in successively, and also, its device can easily be realized.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はリモートファイル読み込み方式に関し、特にフ
ァイルを順次読み込んで処理するアプリケーションプロ
グラムを実行するコンピュータとは別のコンピュータに
読み込むべきファイルが存在するときのリモートファイ
ル読み込み方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a remote file reading method, particularly when a file to be read exists on a computer other than a computer that executes an application program that sequentially reads and processes files. Regarding remote file reading method.

〔従来の技術〕[Conventional technology]

従来のリモートファイル読み込み方式は、他のコンピュ
ータ上に存在する目的のファイルであるリモートファイ
ルを自コンピュータ側に転送(2てから、アプリケーシ
ョンプログラムを実行してファイルを読み込んでいた。
In the conventional remote file reading method, a remote file, which is a target file existing on another computer, is transferred to the own computer (2), and then an application program is executed to read the file.

あるいは、リモートファイルを直接アクセスする従来の
リモートファイル読み込み方式は、双方のコンピュータ
にそのための複雑な仕掛けを設けて、リモートファイル
の直接アクセスを実現している。
Alternatively, in the conventional remote file reading method for directly accessing remote files, both computers are equipped with complicated mechanisms to achieve direct access to remote files.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のリモートファイル読み込み方式の前者の
方式は、アプリケーションプログラムの実行とは別に、
実行に先立ってファイル転送をしなければならず、手間
がかかり効率が悪いという欠点を有している。
The former method of the conventional remote file reading method described above, in addition to executing the application program,
This method has the drawback of requiring a file transfer prior to execution, which is time consuming and inefficient.

また、後者の方式は、リモートファイルアクセスのため
の仕掛けが双方のコンピュータに必要であり、複雑で容
易に作成できないという欠点を有している。
Furthermore, the latter method requires a mechanism for remote file access on both computers, which is complicated and cannot be easily created.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のリモートファイル読み込み方式は、互いにデー
タ交換ができる複数のコンピュータが接続された分散処
理システムのリモートファイル読み込み方式において、 読み込むべきファイルがリモートファイル格納装置に存
在する側の第1のコンピュータに、第2のコンピュータ
からのファイル情報の問い合わせに答えて前記リモート
ファイル格納装置のファイル情報を通知するファイル情
報通知手段と、 前記第2のコンピュータから要求されたファイルを前記
リモートファイル格納装置から取り出して前記第2のコ
ンピュータに送信するファイル送信手段と、 を有するとともに、 ファイルを読み込んでアプリケーションプログラムを実
行する側の前記第2のコンピュータに、前記第1のコン
ピュータへファイル情報を問い合わせるファイル情報問
い合わせ手段と、そのファイル情報に基づいて一時ファ
イル格納装夏にファイルの格納領域を設定して使用後に
削除するファイル作成/削除手段と、 前記ファイル送信手段により送られてくるファイルを受
信して前記一時ファイル格納装置へ書き込むファイル受
信手段と、 前記ファイル受信手段により受信済みレコード番号が書
き込まれるファイル受信状態管理テーブルと、 前記一時ファイル格納装置から受信したファイルのレコ
ードを読み込むファイル読み込み手段と、 前記アプリケーションプログラムからの第1のコンピュ
ータ上のファイルに対する順次読み込みモードのオープ
ン命令を受け付けた時に、前記ファイル情報問い合わせ
手段、前記ファイル作成/削除手段および前記ファイル
受信手段により、前記一時ファイル格納装置にファイル
の格納領域を設定してファイルの受信を始め、読み込み
命令受け付は時に、前記ファイル受信状態管理テーブル
を参照して、未受信であれば受信を待ち合わせてから、
受信済みレコードであれば直ちに、前記ファイル読み込
み手段によりレコードを読み込んで前記アプリケーショ
ンプログラムへ渡し、クローズ命令受け付は時に、前記
ファイル作成/削除手段により前記一時ファイル装置か
らファイルの格納領域を削除するリモートファイルアク
セス管理手段と、 を有して構成されている。
The remote file reading method of the present invention is a remote file reading method for a distributed processing system in which a plurality of computers that can exchange data with each other are connected. file information notifying means for notifying file information of the remote file storage device in response to a file information inquiry from a second computer; and retrieving a file requested by the second computer from the remote file storage device; file information inquiry means for inquiring file information from the second computer that reads the file and executes the application program to the first computer; a file creation/deletion means for setting a file storage area in a temporary file storage device based on the file information and deleting it after use; a file reception state management table in which received record numbers are written by the file reception means; file reading means for reading records of files received from the temporary file storage device; When an open command in sequential read mode for a file on the computer No. 1 is received, a file storage area is set in the temporary file storage device by the file information inquiry means, the file creation/deletion means, and the file reception means. When receiving a read command, it refers to the file reception status management table and waits for reception if it has not been received.
If the record has been received, the record is immediately read by the file reading means and passed to the application program, and when a close command is received, the file storage area is deleted from the temporary file device by the file creation/deletion means. A file access management means;

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のリモートファイル読み込み方式の一実
施例を示すブロック図であり、第2図は本実施例の処理
の流れの一例を示す動作説明図である。
FIG. 1 is a block diagram showing an embodiment of the remote file reading method of the present invention, and FIG. 2 is an operational explanatory diagram showing an example of the processing flow of this embodiment.

第1図に示すように、コンピュータC1とコンピュータ
C2とが接続され、コンピュータC1はファイル送信手
段1およびファイル情報通知手段2を備え、コンピュー
タC2はファイル受信手段3、ファイル情報問い合わせ
手段4.ファイル作成/削除手段5.ファイル読み込み
手段6.ファイル受信状態管理テーブル7およびリモー
トファイルアクセス管理手段8を備えている。
As shown in FIG. 1, a computer C1 and a computer C2 are connected, the computer C1 is equipped with a file transmitting means 1 and a file information notifying means 2, and the computer C2 is equipped with a file receiving means 3, a file information inquiry means 4. File creation/deletion means 5. File reading means 6. It includes a file reception status management table 7 and remote file access management means 8.

また、コンピュータC1には読み込むべきリモートファ
イル格納装置10、コンピュータC2にはファイルを処
理するアプリケーションプログラム9が存在する。
Further, the computer C1 has a remote file storage device 10 to be read, and the computer C2 has an application program 9 for processing files.

そして、コンピュータC2のアプリケーションプログラ
ム9は、自コンピュータC2内のファイルの順次読み込
みをするように作られており、読み込むべき目的のファ
イルがコンピュータC1のリモートファイル格納装置1
0にある。
The application program 9 of the computer C2 is designed to sequentially read files in its own computer C2, and the target file to be read is the remote file storage device 1 of the computer C1.
It is at 0.

本実施例は、コンピュータC2でアプリケーションプロ
グラム9を実行し、コンピュータC1のリモートファイ
ル格納装置10からファイルをあたかもコンピュータC
2内のファイルであるかのように読み込むことができる
In this embodiment, an application program 9 is executed on the computer C2, and a file is transferred from the remote file storage device 10 of the computer C1 as if it were a computer C2.
It can be read as if it were a file in 2.

以降、第2図に沿って本実施例の動作を説明する。Hereinafter, the operation of this embodiment will be explained along with FIG.

まず、リモートファイルアクセス管理手段8は、アプリ
ケーションプログラム9から順次読み込みモードのオー
ブン要求を受け付けたとき、読み込むべきファイルがコ
ンピュ−タC1のリモートファイル格納装置10にあれ
ば、ファイル情報問い合わせ手段4によりリモートファ
イル格納装置10にあるファイルのファイル属性や容量
等を問い合わせる。
First, when the remote file access management means 8 receives an oven request for sequential read mode from the application program 9, if the file to be read is in the remote file storage device 10 of the computer C1, the remote file access management means 8 uses the file information inquiry means 4 to remotely access the file. The file attributes, capacity, etc. of the files in the file storage device 10 are inquired.

そこで、ファイル情報問い合わせ手段4は、ファイル情
報通知手段2へ通知要求をだし、ファイル情報通知手段
2は、その要求に従いリモートファイル格納装置10の
ファイル情報を調べて送り返す。
Therefore, the file information inquiry means 4 issues a notification request to the file information notification means 2, and the file information notification means 2 checks the file information of the remote file storage device 10 in accordance with the request and sends it back.

また、リモートファイルアクセス管理手段8は、このフ
ァイル情報をファイル作成/削除手段5へ通知するので
、ファイル作成/削除手段5は、リモートファイル格納
装置10のファイルと同じ属性で一時ファイル格納装置
11にファイルの格納領域を設定する。
Furthermore, the remote file access management means 8 notifies this file information to the file creation/deletion means 5, so that the file creation/deletion means 5 stores the file in the temporary file storage device 11 with the same attributes as the file in the remote file storage device 10. Set the file storage area.

そして、リモートファイルアクセス管理手段8は、ファ
イル受信状態管理テーブル7を初期化し、ファイル受信
手段3に対してファイル受信要求をだし、アプリケーシ
ョンプログラム9ヘオープン命令完了を返す。
Then, the remote file access management means 8 initializes the file reception status management table 7, issues a file reception request to the file reception means 3, and returns an open command completion to the application program 9.

一方、ファイル受信手段3は、ファイル送信手段1と通
信して、リモートファイル格納装W1゜のファイルを順
次受信し、一時ファイル格納装置11の格納領域へ書き
込み、同時に、ファイル受信状態管理テーブル7に受信
済みレコード番号を書き込む。
On the other hand, the file receiving means 3 communicates with the file transmitting means 1, sequentially receives the files in the remote file storage device W1, writes them into the storage area of the temporary file storage device 11, and at the same time writes them into the file reception status management table 7. Write the received record number.

続いて、アプリケーションプログラム9がら読み込み命
令が実行されると、リモートファイルアクセス管理手段
8は、ファイル受信状態管理テーブル7を参照し、該レ
コードが受信済みであれば読み込み処理を行うが、未受
信であれば受信が終わるまで待ち合わせて受信できてが
ら読み込み処理を行う。
Subsequently, when a read command is executed from the application program 9, the remote file access management means 8 refers to the file reception status management table 7, and if the record has been received, performs the read process, but if the record has not been received, If there is, it waits until the reception is finished and performs the reading process while the reception is completed.

読み込み処理では、ファイル読み込み手段6を用いて一
時ファイル格納装置11からファイルのレコードを読み
込み、アプリケーションプログラム9へ渡す。
In the reading process, a file record is read from the temporary file storage device 11 using the file reading means 6 and is passed to the application program 9.

最後に、アプリケーションプログラム9からクローズ命
令が実行されると、リモートファイルアクセス管理手段
8は、ファイル作成/削除手段6を用いて一時ファイル
格納装置11の格納領域を削除し、アプリケーションプ
ログラム9ヘクローズ完了通知を返す。
Finally, when the close command is executed from the application program 9, the remote file access management means 8 uses the file creation/deletion means 6 to delete the storage area of the temporary file storage device 11, and notifies the application program 9 of completion of the close. return it.

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

以上説明したように、本発明のリモートファイル読み込
み方式は、互いにファイルの転送ができる複数のコンピ
ュータが接続された分散処理システムで、自コンピュー
タ上のファイルを処理するアプリケーションプログラム
を追加・修正することもなく、また、ファイル全体を事
前に複写しておくこともなく、他コンピュータ上のファ
イルの順次読み込みをすることができ、しかもその仕掛
けが容易に実現できるという効果を有している。
As explained above, the remote file reading method of the present invention is a distributed processing system in which multiple computers are connected that can transfer files to each other, and it is also possible to add or modify application programs that process files on the own computer. Moreover, it is possible to sequentially read files on other computers without having to copy the entire file in advance, and it has the effect that the mechanism can be easily realized.

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

第1図は本発明のリモートファイル読み込み方式の一実
施例を示すブロック図であり、第2図は本実施例の処理
の流れの一例を示す動作説明図である。 1・・・ファイル送信手段、2・・・ファイル情報通知
手段、3・・・ファイル受信手段、4・・・ファイル情
報問い合わせ手段、5・・・ファイル作成/削除手段、
6・・・ファイル読み込み手段、7・・・ファイル受信
状態管理テーブル、8・・・リモートファイルアクセス
管理手段、9・・・アプリケーションプログラム、10
・・・リモートファイル格納装置、11・・・一時ファ
イル格納装置、C1,C2・・・コンピュータ。
FIG. 1 is a block diagram showing an embodiment of the remote file reading method of the present invention, and FIG. 2 is an operational explanatory diagram showing an example of the processing flow of this embodiment. 1... File sending means, 2... File information notifying means, 3... File receiving means, 4... File information inquiry means, 5... File creation/deletion means,
6... File reading means, 7... File reception status management table, 8... Remote file access management means, 9... Application program, 10
...Remote file storage device, 11...Temporary file storage device, C1, C2...Computer.

Claims (1)

【特許請求の範囲】 互いにデータ交換ができる複数のコンピュータが接続さ
れた分散処理システムのリモートファイル読み込み方式
において、 読み込むべきファイルがリモートファイル格納装置に存
在する側の第1のコンピュータに、第2のコンピュータ
からのファイル情報の問い合わせに答えて前記リモート
ファイル格納装置のファイル情報を通知するファイル情
報通知手段と、 前記第2のコンピュータから要求されたファイルを前記
リモートファイル格納装置から取り出して前記第2のコ
ンピュータに送信するファイル送信手段と、 を有するとともに、 ファイルを読み込んでアプリケーションプログラムを実
行する側の前記第2のコンピュータに、前記第1のコン
ピュータへファイル情報を問い合わせるファイル情報問
い合わせ手段と、 そのファイル情報に基づいて一時ファイル格納装置にフ
ァイルの格納領域を設定して使用後に削除するファイル
作成/削除手段と、 前記ファイル送信手段により送られてくるファイルを受
信して前記一時ファイル格納装置へ書き込むファイル受
信手段と、 前記ファイル受信手段により受信済みレコード番号が書
き込まれるファイル受信状態管理テーブルと、 前記一時ファイル格納装置から受信したファイルのレコ
ードを読み込むファイル読み込み手段と、 前記アプリケーションプログラムからの第1のコンピュ
ータ上のファイルに対する順次読み込みモードのオープ
ン命令を受け付けた時に、前記ファイル情報問い合わせ
手段、前記ファイル作成/削除手段および前記ファイル
受信手段により、前記一時ファイル格納装置にファイル
の格納領域を設定してファイルの受信を始め、読み込み
命令受け付け時に、前記ファイル受信状態管理テーブル
を参照して、未受信であれば受信を待ち合わせてから、
受信済みレコードであれば直ちに、前記ファイル読み込
み手段によりレコードを読み込んで前記アプリケーショ
ンプログラムへ渡し、クローズ命令受け付け時に、前記
ファイル作成/削除手段により前記一時ファイル装置か
らファイルの格納領域を削除するリモートファイルアク
セス管理手段と、 を有することを特徴とするリモートファイル読み込み方
式。
[Claims] In a remote file reading method for a distributed processing system in which a plurality of computers that can exchange data with each other are connected, a first computer whose file to be read exists in a remote file storage device is connected to a second computer. file information notification means for notifying file information of the remote file storage device in response to a file information inquiry from a computer; file information inquiry means for inquiring file information from the first computer to the second computer that reads the file and executes the application program; a file creation/deletion unit that sets a file storage area in a temporary file storage device based on the information and deletes it after use; and a file reception unit that receives a file sent by the file transmission unit and writes it to the temporary file storage device. means; a file reception status management table into which a received record number is written by the file reception means; a file reading means for reading a record of the file received from the temporary file storage device; When an open command in sequential read mode for a file is received, the file information inquiry means, the file creation/deletion means, and the file reception means set a file storage area in the temporary file storage device and receive the file. , when accepting a read command, refer to the file reception status management table, wait for reception if it has not been received, and then
If the record has been received, the file reading means immediately reads the record and passes it to the application program, and when a close command is received, the file creation/deletion means deletes the file storage area from the temporary file device; remote file access; A remote file reading method comprising: a management means; and a remote file reading method.
JP2084154A 1990-03-30 1990-03-30 Remote file reading-in system Pending JPH03282865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2084154A JPH03282865A (en) 1990-03-30 1990-03-30 Remote file reading-in system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2084154A JPH03282865A (en) 1990-03-30 1990-03-30 Remote file reading-in system

Publications (1)

Publication Number Publication Date
JPH03282865A true JPH03282865A (en) 1991-12-13

Family

ID=13822589

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2084154A Pending JPH03282865A (en) 1990-03-30 1990-03-30 Remote file reading-in system

Country Status (1)

Country Link
JP (1) JPH03282865A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003022196A (en) * 2001-07-06 2003-01-24 Nec Corp Method for automatically executing test program in portable terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003022196A (en) * 2001-07-06 2003-01-24 Nec Corp Method for automatically executing test program in portable terminal

Similar Documents

Publication Publication Date Title
JP4704161B2 (en) How to build a file system
JP2005332067A (en) Backup acquisition method and disk array device
US7694089B2 (en) Resource efficient remote copy pair for data retention
CN109375568A (en) A kind of multi-source data real-time acquisition device
JPH1185655A (en) Computer system
JPH03282865A (en) Remote file reading-in system
JP2000036022A5 (en)
JPH0789334B2 (en) Database management processing method
JP2780601B2 (en) Message batch processing system
JPH11120056A (en) Saving and restoring method for project data
JP3544219B2 (en) File sharing system
JPS6368960A (en) Sequential access controller for shared storage medium
JP2767966B2 (en) High-speed file access method
JP3376316B2 (en) Disk array device, high-speed communication method used therefor, and recording medium recording control program therefor
JPH0451861B2 (en)
JP2641399B2 (en) File management device
JPH1198448A (en) Video server system and access processing method therefor
JPH10320218A (en) Automatic starting method for cooperative job in data transfer processing
JPH07146809A (en) Information processor
JPH09231139A (en) Data doubling device
JPH02242350A (en) Circulating file processing system for data processing system
JPH04340664A (en) Shape data management device
JPH04360248A (en) Remote file updating system
JPH05298231A (en) Intelligent secondary storage
JP2004348229A (en) File moving system, file moving method and its program