JP2005222434A - Archive deployment management apparatus and program - Google Patents

Archive deployment management apparatus and program Download PDF

Info

Publication number
JP2005222434A
JP2005222434A JP2004031576A JP2004031576A JP2005222434A JP 2005222434 A JP2005222434 A JP 2005222434A JP 2004031576 A JP2004031576 A JP 2004031576A JP 2004031576 A JP2004031576 A JP 2004031576A JP 2005222434 A JP2005222434 A JP 2005222434A
Authority
JP
Japan
Prior art keywords
archive
name
server
file
deployment
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
JP2004031576A
Other languages
Japanese (ja)
Inventor
Shinichi Kida
新一 木田
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 JP2004031576A priority Critical patent/JP2005222434A/en
Publication of JP2005222434A publication Critical patent/JP2005222434A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an archive deployment management apparatus that can automatically update records of deployment states of archives synchronously with deployment processing and withdrawal processing of archives in and from a server. <P>SOLUTION: The archive deployment management apparatus comprises a command execution part 2 for executing a command to deploy archives in a server and a command to withdraw archives deployed in a server, a relational database 111 for recording management information including deployment states of archives in servers and filenames included in the deployed archives, a data registration/update processing part 3 and a data deletion processing part 5 for updating the management information stored in the relational database 111, and an input processing part 1 for analyzing the execution result of the command execution part 2 and, on condition that the command has been normally finished, commanding the data registration/update processing part 3 and data deletion processing part 5 to update the management information. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明はアーカイブ配備管理装置に関し、特にサーバへのアーカイブの配備処理および配備取消処理に同期して、アーカイブの配備状況データを自動更新するアーカイブ配備管理装置に関する。   The present invention relates to an archive deployment management apparatus, and more particularly to an archive deployment management apparatus that automatically updates archive deployment status data in synchronization with archive deployment processing and deployment cancellation processing on a server.

関連するファイルを一まとめにしたものをアーカイブと呼び、ネットワークを通じた送受信の手間を軽減するためなどに利用されている。代表的なアーカイブに、WebアプリケーションのアーカイブやEntreprise JavaBeans(登録商標)のアーカイブなどのJ2EE(JAVA 2 Platform Enterprise Edition)アーカイブがある。以下、単にアーカイブと記した場合、J2EEアーカイブを意味するものとするが、J2EEアーカイブ以外のアーカイブを本発明の対象にできることは勿論のことである。   A collection of related files is called an archive, and it is used to reduce the effort of sending and receiving through the network. Typical archives include J2EE (JAVA 2 Platform Enterprise Edition) archives such as Web application archives and Entreprise JavaBeans (registered trademark) archives. Hereinafter, when simply referring to an archive, it means a J2EE archive, but it goes without saying that an archive other than a J2EE archive can be the subject of the present invention.

アーカイブは複数のファイルが一まとめになっているため、その一部のファイルがバージョンアップなどによって更新されると、それにあわせてアーカイブも更新する必要がある。例えば、ファイルaaa、ファイルbbb、ファイルcccの3つのファイルをまとめたアーカイブabcが既に或るサーバに配備(deploy)されている状況で、バグなどを修正するためにファイルcccがファイルccc’に更新された場合、ファイルcccを含むアーカイブabcを、ファイルaaa、ファイルbbb、ファイルccc’の3つのファイルをまとめたアーカイブに置き換える必要がある。   Since the archive is a collection of multiple files, if some of the files are updated due to version upgrades, the archive must be updated accordingly. For example, in a situation where an archive abc including three files aaaa, file bbb, and file ccc is already deployed on a certain server, the file ccc is updated to the file ccc ′ to correct a bug or the like. In this case, it is necessary to replace the archive abc including the file ccc with an archive in which the three files of the file aaa, the file bbb, and the file ccc ′ are collected.

アーカイブの種類が多く、またアーカイブを配備するサーバの数が多いと、ファイルcccを含むアーカイブを洗い出す作業や、ファイルcccを含むアーカイブが配備されているサーバを洗い出す作業を、人手で行うことは多くの時間を必要とし、また漏れや間違いを起こしやすい。そこで、このような作業を機械化することが望まれる。このような機械化に利用可能な従来技術が特許文献1および特許文献2に記載されている。   If there are many types of archives and the number of servers on which the archive is deployed is large, it is often the case that the task of identifying the archive including the file ccc and the task of identifying the server on which the archive including the file ccc is deployed are performed manually. Time and is prone to leaks and mistakes. It is therefore desirable to mechanize such work. Conventional techniques available for such mechanization are described in Patent Document 1 and Patent Document 2.

特許文献1には、分散環境におけるファイルの配信と管理を行うファイル配信管理方法が記載されている。具体的には、マスタ端末でのファイル管理テーブル作成処理と、配信元におけるファイル更新処理、アーカイブ作成処理およびファイル配信処理を含むサーバ更新・配信処理と、配信先におけるアーカイブ展開処理、ファイル更新処理および更新結果送信処理を含むクライアント更新処理と、配信元における更新結果集計処理との4つの処理を非同期に実行することにより、ファイルの配信と配信されたファイルを管理している。   Patent Document 1 describes a file distribution management method for distributing and managing files in a distributed environment. Specifically, file management table creation processing at the master terminal, file update processing at the distribution source, server update / distribution processing including archive creation processing and file distribution processing, archive expansion processing at the distribution destination, file update processing, The file distribution and the distributed file are managed by asynchronously executing the four processes of the client update process including the update result transmission process and the update result aggregation process at the distribution source.

また特許文献2には、コンポジットオブジェクト保管庫にてソフトウェア資産を管理したり、資産間の関係を管理する情報資源管理装置が開示されている。
特開2001−306385号公報 特開平5−216636号公報
Patent Document 2 discloses an information resource management apparatus that manages software assets in a composite object storage and manages relationships between assets.
JP 2001-306385 A JP-A-5-216636

しかしながら、特許文献1に記載されるファイル配信管理方法は、マスタ端末でのファイル管理テーブル作成処理と、配信元におけるファイル更新処理、アーカイブ作成処理およびファイル配信処理を含むサーバ更新・配信処理とが非同期であり、特許文献2に記載される情報資源管理装置は、ソフトウェア資産の実行環境と直接的な関連性がない。このため、これらの従来技術を利用した場合、アーカイブをサーバに配備する処理と、アーカイブを配備したサーバのサーバ名およびそのアーカイブに格納されているファイルのファイル名をデータベースなどに登録する処理とが非同期になり、サーバにアーカイブを配備したのにデータベースに記録し忘れる事態や、反対にアーカイブのサーバへの配備に失敗したのにデータベースには配備されたように登録してしまう事態の発生が予想される。若し、両者が整合しなくなると、人手による洗い出し作業が必要になり、業務の遂行に多大な影響が及んでしまう。   However, in the file delivery management method described in Patent Document 1, the file management table creation process at the master terminal and the server update / delivery process including the file update process, the archive creation process, and the file delivery process at the delivery source are asynchronous. Therefore, the information resource management device described in Patent Document 2 is not directly related to the execution environment of software assets. For this reason, when these conventional technologies are used, there are a process for deploying the archive to the server and a process for registering the server name of the server where the archive is deployed and the file name of the file stored in the archive in a database. Asynchronous, it is expected that the archive will be forgotten to be recorded in the database even though the archive is deployed on the server, or the archive will be registered as if it was deployed even though the deployment of the archive to the server failed. Is done. If they do not match, manual washing work is required, which greatly affects the performance of the work.

そこで本発明の目的は、サーバへのアーカイブの配備処理および配備取消処理に同期して、アーカイブの配備状況の記録を自動更新することのできるアーカイブ配備管理装置を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide an archive deployment management apparatus capable of automatically updating a record of archive deployment status in synchronization with archive deployment processing and deployment cancellation processing on a server.

また本発明の別の目的は、サーバへのアーカイブの配備処理および配備取消処理に同期して自動更新されるアーカイブの配備状況の記録に基づいて、更新したファイルを含むアーカイブおよびそのアーカイブが配備されたサーバを自動的に洗い出すことのできるアーカイブ配備管理装置を提供することにある。   Another object of the present invention is to deploy an archive including an updated file and the archive based on a record of an archive deployment status that is automatically updated in synchronization with a server deployment process and a deployment cancellation process. It is an object of the present invention to provide an archive deployment management device that can automatically identify a server.

本発明の第1のアーカイブ配備管理装置は、サーバにアーカイブを配備するコマンドおよびサーバに配備されたアーカイブを取り消すコマンドを実行するコマンド実行手段と、サーバへのアーカイブの配備状況および配備されているアーカイブに含まれるファイル名を含む管理情報を記録する記憶部と、該記憶部に記憶された前記管理情報を更新する更新手段と、前記コマンド実行手段の実行結果データを解析し、前記コマンドが正常終了していることを条件に前記更新手段に前記管理情報の更新を指示する入力処理手段とを備えることを特徴とする。   The first archive deployment management apparatus of the present invention includes a command execution unit for executing a command for deploying an archive on a server and a command for canceling an archive deployed on the server, an archive deployment status on the server, and a deployed archive A storage unit that records management information including the file name included in the file, an update unit that updates the management information stored in the storage unit, and the execution result data of the command execution unit is analyzed, and the command ends normally And an input processing means for instructing the update means to update the management information on the condition that the information is being updated.

本発明の第2のアーカイブ配備管理装置は、第1のアーカイブ配備管理装置において、指定されたファイル名のファイルを含むアーカイブのファイル名および当該アーカイブが配備されているサーバ名を前記記憶部から検索して結果を出力する検索手段を備えることを特徴とする。   The second archive deployment management device of the present invention searches the storage unit for a file name of an archive including a file having a designated file name and a server name where the archive is deployed in the first archive deployment management device. And a search means for outputting the result.

本発明の第3のアーカイブ配備管理装置は、
サーバ名およびアーカイブ名を含む配備指示が与えられた時、前記サーバ名のサーバに前記アーカイブ名のアーカイブを配備するコマンドを実行して実行結果を返却し、サーバ名およびアーカイブ名を含む配備取消指示が与えられた時、前記サーバ名のサーバから前記アーカイブ名のアーカイブの配備を取り消すコマンドを実行して実行結果を返却するコマンド実行手段と、
サーバ名とアーカイブ名と識別子とを含むアーカイブ名管理情報を記憶するアーカイブ名管理テーブルと、
前記識別子とファイル名とを含むファイル名管理情報を記憶するファイル名管理テーブルと、
サーバ名およびアーカイブ名を含む登録指示が与えられた時、前記アーカイブ名管理テーブルに同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が登録されていない場合、前記サーバ名と前記アーカイブ名と新たに生成した識別子とを含むアーカイブ名管理情報を前記アーカイブ名管理テーブルに登録すると共に、前記アーカイブ名のアーカイブに含まれる全てのファイルについて、そのファイル名と前記識別子とを含むファイル名管理情報を前記ファイル名管理テーブルに登録し、前記アーカイブ名管理テーブルに同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が既に登録されている場合、そのアーカイブ名管理情報に含まれる識別子と同じ識別子を含むファイル名管理情報を前記ファイル名管理テーブルから削除し、且つ、前記アーカイブ名のアーカイブに含まれる全てのファイルについて、そのファイル名と前記識別子とを含むファイル名管理情報を前記ファイル名管理テーブルに登録するデータ登録更新処理手段と、
サーバ名およびアーカイブ名を含む削除指示が与えられた時、前記アーカイブ名管理テーブルから同じサーバ名とアーカイブ名を含むアーカイブ名管理情報を検索してそれに含まれる識別子を取得した後、前記検索したアーカイブ名管理情報を前記アーカイブ名管理テーブルから削除すると共に、前記取得した識別子を含むファイル名管理情報を前記ファイル名管理テーブルから削除するデータ削除処理手段と、
動作種別と必要なデータを含む入力データを解析し、サーバ名およびアーカイブ名を含み動作種別が配備実行である入力データの場合は前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む配備指示を前記コマンド実行手段に与え、前記コマンド実行手段から返却される実行結果データを解析して実行結果が正常終了を示していると判定したときに限って前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む登録指示を前記データ登録更新処理手段へ与え、サーバ名およびアーカイブ名を含み動作種別が配備取消実行である入力データの場合は前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む配備取消指示を前記コマンド実行手段に与え、前記コマンド実行手段から返却される実行結果データを解析して正常終了していると判定したときに限って前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む削除指示を前記データ削除処理手段へ与える入力処理手段とを備えることを特徴とする。
The third archive deployment management device of the present invention is:
When a deployment instruction including a server name and an archive name is given, a command for deploying the archive with the archive name is executed on the server with the server name, the execution result is returned, and a deployment cancellation instruction including the server name and the archive name is performed. Command execution means for executing a command for canceling the deployment of the archive with the archive name from the server with the server name and returning an execution result;
An archive name management table for storing archive name management information including a server name, an archive name, and an identifier;
A file name management table for storing file name management information including the identifier and the file name;
When the registration instruction including the server name and the archive name is given and the archive name management information including the same server name and archive name is not registered in the archive name management table, the server name and the archive name are newly added. The archive name management information including the generated identifier is registered in the archive name management table, and for all files included in the archive with the archive name, file name management information including the file name and the identifier is stored in the file. File name management including the same identifier as that included in the archive name management information when the archive name management information including the same server name and archive name is already registered in the archive name management table. Delete the information from the file name management table, One, for all files included in the archive of the archive name, a data registration update processing means for registering the filename management information including a file name and the identifier to the filename management table,
When a delete instruction including a server name and an archive name is given, the archive name management information including the same server name and archive name is searched from the archive name management table to obtain an identifier included therein, and then the searched archive Data deletion processing means for deleting name management information from the archive name management table and deleting file name management information including the acquired identifier from the file name management table;
Analyzing the input data including the operation type and necessary data, and in the case of input data including the server name and archive name and the operation type being deployment execution, a deployment instruction including the server name and the archive name included in the input data Only when the execution result data returned from the command execution means is analyzed and it is determined that the execution result indicates normal termination, and the server name and the input data included in the input data A registration instruction including an archive name is given to the data registration update processing means, and in the case of input data that includes a server name and an archive name and the operation type is deployment cancellation execution, the server name and the archive name included in the input data are An execution result returned from the command execution unit is given to the command execution unit And an input processing means for giving a deletion instruction including the server name and the archive name included in the input data to the data deletion processing means only when it is determined that the data has been normally terminated by analyzing the data. Features.

本発明の第4のアーカイブ配備管理装置は、第1または第3のアーカイブ配備管理装置において、前記入力処理手段は、正常終了したことを示す予め定められた文字列が前記実行結果データに含まれているかどうかを調べることによって、前記コマンド実行手段によるコマンドの実行が正常終了しているかどうかを判定するものであることを特徴とする。   According to a fourth archive deployment management device of the present invention, in the first or third archive deployment management device, the execution result data includes a predetermined character string indicating that the input processing means has ended normally. It is determined whether or not the command execution by the command execution means has been completed normally by checking whether the command has been executed.

本発明の第5のアーカイブ配備管理装置は、第3のアーカイブ配備管理装置において、前記データ登録更新処理手段からアーカイブ名を受け取り、前記アーカイブ名のアーカイブを展開し、該アーカイブに含まれるファイルのファイル名の一覧を前記データ登録更新処理手段に返却する展開処理手段を備えることを特徴とする。   A fifth archive deployment management device according to the present invention is the third archive deployment management device, which receives an archive name from the data registration update processing means, expands an archive with the archive name, and files of files included in the archive An expansion processing means for returning a list of names to the data registration update processing means is provided.

本発明の第6のアーカイブ配備管理装置は、第3のアーカイブ配備管理装置において、ファイル名を含む検索指示が与えられた場合、前記ファイル名を含むファイル名管理情報を前記ファイル名管理テーブルから検索してそのファイル名管理情報に含まれる識別子を取得し、該取得した識別子を含むアーカイブ名管理情報を前記アーカイブ名管理テーブルから検索し、検索結果を出力するデータ検索処理手段を備え、
前記入力処理手段は、解析した入力データが、ファイル名を含み動作種別が検索実行である入力データの場合、前記入力データに含まれるファイル名を含む検索指示を前記データ検索処理手段に与えるものであることを特徴とする。
When a search instruction including a file name is given in the third archive deployment management apparatus, the sixth archive deployment management apparatus of the present invention searches the file name management table for file name management information including the file name. An identifier included in the file name management information, search for archive name management information including the acquired identifier from the archive name management table, and a data search processing means for outputting a search result,
The input processing means gives a search instruction including a file name included in the input data to the data search processing means when the analyzed input data is input data including a file name and an operation type is search execution. It is characterized by being.

本発明の第7のアーカイブ配備管理装置は、第6のアーカイブ配備管理装置において、前記入力処理手段は、解析した入力データが、ファイル名を含まない動作種別が検索実行である入力データの場合、ファイル名を含まない検索指示を前記データ検索処理手段に与えるものであり、
前記データ検索処理手段は、ファイル名を含まない検索指示が与えられた場合、前記アーカイブ名管理テーブルに記憶された全てのアーカイブ名管理情報について、そのアーカイブ名管理情報に含まれる識別子を含むファイル名管理情報を前記ファイル名管理テーブルから検索し、各アーカイブ名管理情報に含まれるサーバ名およびアーカイブ名と、当該サーバ名のサーバの当該アーカイブ名のアーカイブに含まれるファイルのファイル名とを含む検索結果を出力するものであることを特徴とする。
According to a seventh archive deployment management device of the present invention, in the sixth archive deployment management device, when the input processing unit analyzes the input data whose operation type does not include a file name is search execution, A search instruction not including a file name is given to the data search processing means;
The data search processing means, when a search instruction not including a file name is given, for all archive name management information stored in the archive name management table, a file name including an identifier included in the archive name management information Search results for management information from the file name management table, including a server name and an archive name included in each archive name management information, and a file name of a file included in the archive of the archive name of the server of the server name Is output.

本発明の第1のプログラムは、コンピュータを、サーバにアーカイブを配備するコマンドおよびサーバに配備されたアーカイブを取り消すコマンドを実行するコマンド実行手段、サーバへのアーカイブの配備状況および配備されているアーカイブに含まれるファイル名を含む管理情報を記録する記憶部に記憶された前記管理情報を更新する更新手段、前記コマンド実行手段の実行結果データを解析し、前記コマンドが正常終了していることを条件に前記更新手段に前記管理情報の更新を指示する入力処理手段、として機能させることを特徴とする。   The first program of the present invention includes a command execution means for executing a command for deploying an archive on a server and a command for canceling an archive deployed on the server, an archive deployment status on the server, and a deployed archive. Update means for updating the management information stored in the storage unit for recording the management information including the included file name, analyzing the execution result data of the command execution means, on condition that the command has been completed normally The update unit is made to function as an input processing unit that instructs to update the management information.

本発明の第2のプログラムは、第1のプログラムにおいて、前記コンピュータをさらに、指定されたファイル名のファイルを含むアーカイブのファイル名および該アーカイブが配備されているサーバ名を前記記憶部から検索して結果を出力する検索手段、として機能させることを特徴とする。   According to a second program of the present invention, in the first program, the computer further searches the storage unit for a file name of an archive including a file having a specified file name and a server name where the archive is deployed. And a search means for outputting the results.

本発明の第3のプログラムは、第1または第2のプログラムにおいて、前記入力処理手段は、正常終了したことを示す予め定められた文字列が前記実行結果データに含まれているかどうかを調べることによって、前記コマンド実行手段によるコマンドの実行が正常終了しているかどうかを判定するものであることを特徴とする。   In the third program of the present invention, in the first or second program, the input processing means checks whether or not a predetermined character string indicating normal termination is included in the execution result data To determine whether or not the command execution by the command execution means has been normally completed.

本発明によれば、サーバへのアーカイブの配備処理および配備取消処理に同期して、アーカイブの配備状況の記録を自動更新することができる。その理由は、サーバにアーカイブを配備するコマンドおよびサーバに配備されたアーカイブを取り消すコマンドの実行結果データを解析し、コマンドが正常終了していることを条件に管理情報の更新を指示する入力処理手段を備えているからである。   According to the present invention, it is possible to automatically update the archive deployment status record in synchronization with the archive deployment process and the deployment cancellation process on the server. The reason is that the input processing means analyzes the execution result data of the command for deploying the archive on the server and the command for canceling the archive deployed on the server, and instructs to update the management information on the condition that the command is normally completed. Because it has.

また本発明によれば、ファイル更新時に、更新されたファイルを含むアーカイブおよびそのアーカイブが配備されたサーバを自動的に洗い出すことができる。その理由は、指定されたファイル名のファイルを含むアーカイブのファイル名および当該アーカイブが配備されているサーバ名を、記録された管理情報から検索して結果を出力する検索手段を備えているからである。   Further, according to the present invention, when a file is updated, an archive including the updated file and a server on which the archive is deployed can be automatically identified. The reason is that it has search means that searches the recorded management information for the file name of the archive containing the file with the specified file name and the server name where the archive is deployed, and outputs the result. is there.

図1を参照すると、本発明の一実施例にかかるアーカイブ配備管理装置100は、インターネットなどのネットワーク200を通じて複数のアプリケーションサーバ300に接続されている。また、ネットワーク200には1台以上のクライアント端末400が接続されている。   Referring to FIG. 1, an archive deployment management apparatus 100 according to an embodiment of the present invention is connected to a plurality of application servers 300 through a network 200 such as the Internet. One or more client terminals 400 are connected to the network 200.

各アプリケーションサーバ300は、ハードディスク装置などの記憶部301にアーカイブを記憶し、ネットワーク200経由でクライアント端末400からアーカイブの送信要求があると、要求されたアーカイブを記憶部301から読み出してネットワーク200経由でクライアント端末400へ送信する。クライアント端末400は、受信したアーカイブをハードディスク装置などの記憶部401に記憶し、この記憶したファイルを展開してそれに含まれる各ファイルを取り出し、ブラウザなどのソフトウェアで画面に表示したりして利用する。   Each application server 300 stores an archive in a storage unit 301 such as a hard disk device. When an archive transmission request is received from the client terminal 400 via the network 200, the requested archive is read from the storage unit 301 and transmitted via the network 200. It transmits to the client terminal 400. The client terminal 400 stores the received archive in the storage unit 401 such as a hard disk device, expands the stored file, extracts each file included therein, and displays the file on a screen using software such as a browser. .

アーカイブ配備管理装置100は、各アプリケーションサーバ300へのアーカイブの配備、配備の取消、アーカイブの配備状況データの記録などを行うコンピュータシステムである。図1の例では、アーカイブ配備管理装置100をアプリケーションサーバ300と独立した装置としているが、何れかのアプリケーションサーバ300を構成するコンピュータを、アーカイブ配備管理装置としても機能させるようにしても良い。   The archive deployment management apparatus 100 is a computer system that performs deployment of an archive to each application server 300, cancellation of deployment, recording of archive deployment status data, and the like. In the example of FIG. 1, the archive deployment management apparatus 100 is an apparatus independent of the application server 300, but a computer constituting any one of the application servers 300 may function as an archive deployment management apparatus.

アーカイブ配備管理装置100は、CPUを含んで構成されるコンピュータ101と、ハードディスク装置などの記憶部102と、キーボードやマウスなどの入力装置103と、液晶ディスプレイやプリンタなどの出力装置104とを備えている。記憶部102には、アーカイブおよびアーカイブの配備状況を記録したデータが記憶されている。コンピュータ101は、入力装置103から入力されるアーカイブの配備やその取消を指示するデータに基づいて、記憶部102に記憶されたアーカイブをアプリケーションサーバ300に配備(deploy)する処理、アプリケーションサーバ300に配備されているアーカイブの配備を取り消す処理を実行し、その処理と同期して、記憶部102に記録されているアーカイブの配備状況の記録データを自動更新する処理を実行する。また、入力装置103から入力される検索を指示するデータに基づいて、記憶部102に記憶されたアーカイブ配備状況の記録データを検索し、結果を出力装置104から出力する処理を実行する。   The archive deployment management device 100 includes a computer 101 including a CPU, a storage unit 102 such as a hard disk device, an input device 103 such as a keyboard and a mouse, and an output device 104 such as a liquid crystal display and a printer. Yes. The storage unit 102 stores data that records archives and archive deployment status. The computer 101 deploys the archive stored in the storage unit 102 to the application server 300 based on data for instructing the deployment and cancellation of the archive input from the input device 103. A process of canceling the archive deployment that has been performed is executed, and a process of automatically updating the record data of the archive deployment status recorded in the storage unit 102 is executed in synchronization with the process. Further, based on the data instructing the search input from the input device 103, the archive deployment status record data stored in the storage unit 102 is searched, and a process of outputting the result from the output device 104 is executed.

以下、アーカイブ配備管理装置100のより詳しい構成と動作を詳細に説明する。   Hereinafter, a more detailed configuration and operation of the archive deployment management apparatus 100 will be described in detail.

図2を参照すると、アーカイブ配備管理装置100のコンピュータ101には、入力処理部1と、コマンド実行部2と、データ登録/更新処理部3と、展開処理部4と、データ削除処理部5と、データ検索処理部6と、出力処理部7とが設けられている。また、アーカイブ名管理テーブル8とファイル名管理テーブル9とから構成される関係データベース111が、アーカイブ配備管理装置100が備える記憶部102(図1)に設けられている。なお、記憶部102にはアーカイブおよび管理プログラムが記憶されているが、図2では図示を省略している。管理プログラムは、コンピュータ101をアーカイブ配備管理装置として機能させるプログラムであり、コンピュータ101の起動時などにコンピュータ101に読み取られ、コンピュータ101の動作を制御することにより、コンピュータ101上に前述した各機能手段(1〜7)を実現する。   Referring to FIG. 2, the computer 101 of the archive deployment management apparatus 100 includes an input processing unit 1, a command execution unit 2, a data registration / update processing unit 3, a development processing unit 4, and a data deletion processing unit 5. A data search processing unit 6 and an output processing unit 7 are provided. Further, a relational database 111 composed of the archive name management table 8 and the file name management table 9 is provided in the storage unit 102 (FIG. 1) provided in the archive deployment management apparatus 100. The storage unit 102 stores an archive and a management program, but is not shown in FIG. The management program is a program that causes the computer 101 to function as an archive deployment management apparatus. The management program is read by the computer 101 when the computer 101 is started up, and controls the operation of the computer 101 to thereby execute the above-described functional units on the computer 101 (1-7) is realized.

入力処理部1は、入力装置103から入力される入力データ112を解析して動作種別を判別し、動作を振り分ける部分である。以下に、入力データ112の内容および動作種別を示す。   The input processing unit 1 is a part that analyzes the input data 112 input from the input device 103 to determine the operation type and distributes the operation. The contents and operation types of the input data 112 are shown below.

○入力データの内容
(1)動作種別
(2)アーカイブ名またはアーカイブに格納されているファイルのファイル名
(3)アーカイブを配備するアプリケーションサーバのサーバ名
○動作種別(以下の何れかを指定)
・”配備実行”
アーカイブをアプリケーションサーバに配備する。
・”配備取消実行”
アーカイブをアプリケーションサーバから配備取消する。
・”検索実行”
指定したファイル名をキーとして管理テーブルを検索する。
○指定方法
項目(1)の動作種別に”配備実行”または”配備取消実行”を指定した場合、項目(2)にはアーカイブ名を指定する。アーカイブ名とはアーカイブ自身のファイル名のことである。
項目(1)の動作種別に”検索実行”を指定した場合、項目(2)には格納ファイル名を指定し、項目(3)は指定しない。なお、後述するように、項目(2)を指定しない場合もある。
○ Contents of input data (1) Action type (2) Archive name or file name of the file stored in the archive (3) Server name of the application server that deploys the archive ○ Action type (specify one of the following)
・ "Deployment execution"
Deploy the archive to the application server.
・ "Deployment cancellation execution"
Undeploy the archive from the application server.
・ "Search execution"
Search the management table using the specified file name as a key.
○ Specifying method When “Deployment execution” or “Deployment cancellation execution” is specified as the operation type of item (1), an archive name is specified in item (2). The archive name is the file name of the archive itself.
When “execute search” is specified as the operation type of item (1), the storage file name is specified in item (2), and item (3) is not specified. As will be described later, the item (2) may not be specified.

入力処理部1は、入力データ112が、項目(2)のアーカイブ名と項目(3)のサーバ名とを指定し、且つ、項目(1)の動作種別が”配備実行”である場合、入力データ112に含まれる項目(3)のサーバ名および項目(2)のアーカイブ名を含む配備指示を、コマンド実行部2に与え、コマンド実行部2から返却される実行結果を解析し、正常終了と判定したときに限って、入力データ112に含まれる項目(3)のサーバ名および項目(2)のアーカイブ名を含む登録指示をデータ登録/更新処理部3へ与える。正常終了と判定しない場合、このような登録指示は送出しない。   When the input data 112 specifies the archive name of the item (2) and the server name of the item (3) and the operation type of the item (1) is “deployment execution”, the input processing unit 1 A deployment instruction including the server name of the item (3) and the archive name of the item (2) included in the data 112 is given to the command execution unit 2, and the execution result returned from the command execution unit 2 is analyzed. Only when it is determined, a registration instruction including the server name of the item (3) and the archive name of the item (2) included in the input data 112 is given to the data registration / update processing unit 3. Such a registration instruction is not sent if it is not determined to be normal termination.

また、入力処理部1は、入力データ112が、項目(2)のアーカイブ名と項目(3)のサーバ名とを指定し、且つ、項目(1)の動作種別が”配備取消実行”である場合、入力データ112に含まれる項目(3)のサーバ名および項目(2)のアーカイブ名を含む配備取消指示を、コマンド実行部2に与え、コマンド実行部2から返却される実行結果を解析し、正常終了と判定したときに限って、入力データ112に含まれる項目(3)のサーバ名および項目(2)のアーカイブ名を含む削除指示をデータ削除処理部5へ与える。正常終了と判定しない場合、このような削除指示は送出しない。   Further, the input processing unit 1 specifies that the input data 112 specifies the archive name of the item (2) and the server name of the item (3), and the operation type of the item (1) is “deployment cancel execution”. In this case, the command execution unit 2 is given a deployment cancellation instruction including the server name of the item (3) and the archive name of the item (2) included in the input data 112, and the execution result returned from the command execution unit 2 is analyzed. Only when it is determined as normal termination, a deletion instruction including the server name of the item (3) and the archive name of the item (2) included in the input data 112 is given to the data deletion processing unit 5. If it is not determined that the process ends normally, such a deletion instruction is not sent.

ここで、入力処理部1は、コマンド実行部2によるアーカイブの配備処理が正常終了したかどうかを、例えば、返却される実行結果データ中に、正常終了したことを示す予め定められた文字列(例えば、文字列BUILD SUCCESSFUL)が含まれているかどうかを調べることによって行う。入力処理部1は同様に、コマンド実行部2によるアーカイブの配備取消処理が正常終了したかどうかを、返却される実行結果データ中に正常終了したことを示す予め定められた文字列が含まれているかどうかを調べることによって行う。   Here, the input processing unit 1 indicates whether or not the archive deployment processing by the command execution unit 2 has ended normally, for example, a predetermined character string (indicated in a returned execution result data) indicating that it has ended normally. For example, by checking whether or not the character string BUILD SUCCESSFUL) is included. Similarly, the input processing unit 1 includes a predetermined character string indicating whether or not the archive deployment cancellation processing by the command execution unit 2 has ended normally in the returned execution result data. Do this by examining whether or not.

また、入力処理部1は、入力データ112が、項目(2)の格納ファイル名を含み、動作種別が”検索実行”である場合、その入力データ112に項目(2)のファイル名(アーカイブに格納されているファイルのファイル名)が含まれていればそのファイル名を含み、項目(2)のファイル名が含まれていなければそのようなファイル名を含まない検索指示をデータ検索処理部6に与える。   In addition, when the input data 112 includes the storage file name of the item (2) and the operation type is “search execution”, the input processing unit 1 stores the file name of the item (2) (in the archive) If the file name of the stored file is included, the data search processing unit 6 issues a search instruction including the file name, and if the file name of the item (2) is not included, the search instruction not including such a file name. To give.

コマンド実行部2は、入力処理部1からサーバ名およびアーカイブ名を含む配備指示が与えられた時、そのサーバ名のアプリケーションサーバ300に対して、そのアーカイブ名のアーカイブを配備するコマンドを実行し、その実行結果データを入力処理部1に返却する。このようなコマンドは、deployコマンドと呼ばれ、アプリケーションサーバに標準装備されている。また、コマンド実行部2は、入力処理部1からサーバ名およびアーカイブ名を含む配備取消指示が与えられた時、そのサーバ名のアプリケーションサーバ300から、そのアーカイブ名のアーカイブの配備を取り消すコマンドを実行し、その実行結果データを入力処理部1に返却する。このようなコマンドは、undeployコマンドと呼ばれ、アプリケーションサーバに標準装備されている。   When the command execution unit 2 receives a deployment instruction including a server name and an archive name from the input processing unit 1, the command execution unit 2 executes a command to deploy an archive with the archive name to the application server 300 with the server name. The execution result data is returned to the input processing unit 1. Such a command is called a “deploy” command, and is standard on the application server. When the command execution unit 2 is given a deployment cancellation instruction including the server name and archive name from the input processing unit 1, the command execution unit 2 executes a command for canceling the deployment of the archive with the archive name from the application server 300 with the server name. The execution result data is returned to the input processing unit 1. Such a command is called an undeploy command, and is standard on the application server.

関係データベース111を構成するアーカイブ名管理テーブル8は、どのアプリケーションサーバ300にどのアーカイブが配備されているかを管理するテーブルである。具体的には、図3に示すように、サーバ名とアーカイブ名とID(識別子)とを含むアーカイブ名管理情報を記録する。1つの行が1つのアーカイブ名管理情報になる。例えば、1行目のアーカイブ名管理情報は、sv01というサーバ名のアプリケーションサーバ300に、AAAA.jarというファイル名のアーカイブが配備されていることを示し、また当該アーカイブ名管理情報を一意に識別するIDが1であることを示す。   The archive name management table 8 constituting the relational database 111 is a table for managing which archive is deployed on which application server 300. Specifically, as shown in FIG. 3, archive name management information including a server name, an archive name, and an ID (identifier) is recorded. One line becomes one archive name management information. For example, the archive name management information on the first line indicates that an archive with the file name AAAA.jar is deployed in the application server 300 with the server name sv01, and uniquely identifies the archive name management information. Indicates that the ID is 1.

関係データベース111を構成するファイル名管理テーブル9は、各アプリケーションサーバ300の各アーカイブにどのファイルが含まれているかを管理するテーブルである。具体的には、図3に示すように、ID(識別子)とファイル名とを含むファイル名管理情報を記憶する。1つの行が1つのファイル名管理情報になる。ここで、IDはアーカイブ名管理テーブル8で使用されるIDである。例えば、1行目のファイル名管理情報は、IDが1なので、アーカイブ名管理テーブル8の1行目のアーカイブ名管理情報が示すsv01というサーバ名のアプリケーションサーバ300に配備されているAAAA.jarというファイル名のアーカイブに、file1.classというファイルが含まれていることを示す。   The file name management table 9 constituting the relational database 111 is a table for managing which files are included in each archive of each application server 300. Specifically, as shown in FIG. 3, file name management information including an ID (identifier) and a file name is stored. One line becomes one file name management information. Here, the ID is an ID used in the archive name management table 8. For example, since the file name management information on the first line has an ID of 1, AAAA.jar deployed on the application server 300 having the server name sv01 indicated by the archive name management information on the first line of the archive name management table 8 Indicates that a file named file1.class is included in the file name archive.

なお、本実施例では、アーカイブ名管理テーブル8の行とファイル名管理テーブル9の行とをIDで対応付けたが、ファイル名管理テーブル9のIDの部分に、サーバ名およびアーカイブ名を設定するようにしても良い。   In the present embodiment, the row of the archive name management table 8 and the row of the file name management table 9 are associated with each other by ID, but the server name and archive name are set in the ID portion of the file name management table 9. You may do it.

データ登録/更新処理部3は、サーバ名およびアーカイブ名を含む登録指示が入力処理部1から与えられた場合、アーカイブ名管理テーブル8に同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が登録されているかどうかを調べ、登録されていなければ、登録指示に含まれるサーバ名とアーカイブ名と新たに生成したIDとを含むアーカイブ名管理情報をアーカイブ名管理テーブル8に登録すると共に、登録指示に含まれるアーカイブ名のアーカイブに含まれる全てのファイルのファイル名を展開処理部4によって求め、そのファイル名と前記IDとを含むファイル名管理情報をファイル名管理テーブル9に登録する。他方、アーカイブ名管理テーブル8に同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が既に登録されていれば、そのアーカイブ名管理情報に含まれるIDと同じIDを含むファイル名管理情報をファイル名管理テーブル9から削除し、且つ、登録指示に含まれるアーカイブ名のアーカイブに含まれる全てのファイルのファイル名を展開処理部4によって求め、そのファイル名と前記IDとを含むファイル名管理情報をファイル名管理テーブル9に登録する。   When the registration instruction including the server name and the archive name is given from the input processing unit 1, the data registration / update processing unit 3 registers the archive name management information including the same server name and archive name in the archive name management table 8. If not registered, archive name management information including the server name, archive name, and newly generated ID included in the registration instruction is registered in the archive name management table 8 and included in the registration instruction. The file name management information including the file name and the ID is registered in the file name management table 9 by obtaining the file names of all the files included in the archive having the archive name. On the other hand, if archive name management information including the same server name and archive name is already registered in the archive name management table 8, the file name management information including the same ID as the ID included in the archive name management information is managed as the file name. The decompression processing unit 4 obtains the file names of all the files that are deleted from the table 9 and included in the archive having the archive name included in the registration instruction, and the file name management information including the file name and the ID is obtained as the file name. Register in the management table 9.

展開処理部4は、データ登録/更新処理部3からアーカイブ名を受け取り、そのアーカイブ名のアーカイブを記憶部102から読み出して展開し、そのアーカイブに含まれる全てのファイルのファイル名の一覧を求めて、データ登録/更新処理部3に返却する。   The expansion processing unit 4 receives the archive name from the data registration / update processing unit 3, reads the archive with the archive name from the storage unit 102, expands it, and obtains a list of file names of all files included in the archive Return to the data registration / update processing unit 3.

データ削除処理部5は、サーバ名およびアーカイブ名を含む削除指示が入力処理部1から与えられた場合、アーカイブ名管理テーブル8から同じサーバ名とアーカイブ名を含むアーカイブ名管理情報を検索して、それに含まれるIDを取得した後、前記検索したアーカイブ名管理情報をアーカイブ名管理テーブル8から削除すると共に、前記取得したIDを含むファイル名管理情報をファイル名管理テーブル9から削除する。   When a deletion instruction including a server name and an archive name is given from the input processing unit 1, the data deletion processing unit 5 searches the archive name management information including the same server name and archive name from the archive name management table 8, After acquiring the ID included therein, the searched archive name management information is deleted from the archive name management table 8, and the file name management information including the acquired ID is deleted from the file name management table 9.

データ検索処理部6は、ファイル名を含む検索指示が入力処理部1から与えられた場合、そのファイル名を含むファイル名管理情報をファイル名管理テーブル9から検索して、そのファイル名管理情報に含まれるIDを取得し、次に、この取得したIDを含むアーカイブ名管理情報をアーカイブ名管理テーブル8から検索し、その検索結果を出力処理部7へ伝達する。また、データ検索処理部6は、ファイル名を含まない検索指示が入力処理部1から与えられた場合、アーカイブ名管理テーブル8に記憶された全てのアーカイブ名管理情報について、そのアーカイブ名管理情報に含まれるIDを含むファイル名管理情報をファイル名管理テーブル9から検索し、各アーカイブ名管理情報に含まれるサーバ名およびアーカイブ名と、当該サーバ名のアプリケーションサーバ300の当該アーカイブ名のアーカイブに含まれるファイルのファイル名とを含む検索結果を出力処理部7に伝達する。   When a search instruction including a file name is given from the input processing unit 1, the data search processing unit 6 searches the file name management table 9 for file name management information including the file name, and uses the file name management information as the file name management information. The included ID is acquired, and then the archive name management information including the acquired ID is searched from the archive name management table 8 and the search result is transmitted to the output processing unit 7. Further, when a search instruction not including a file name is given from the input processing unit 1, the data search processing unit 6 adds all the archive name management information stored in the archive name management table 8 to the archive name management information. The file name management information including the included ID is searched from the file name management table 9, and is included in the archive of the server name and archive name included in each archive name management information and the archive name of the application server 300 of the server name. The search result including the file name of the file is transmitted to the output processing unit 7.

出力処理部7は、データ検索処理部6から受け取ったデータを出力データ113として出力装置104から出力する。   The output processing unit 7 outputs the data received from the data search processing unit 6 from the output device 104 as output data 113.

次に、図4、図5および図6のフローチャートを参照して本実施例の全体の動作について説明する。   Next, the overall operation of the present embodiment will be described with reference to the flowcharts of FIGS. 4, 5, and 6.

まず、動作種別が”配備実行”であるときのフローチャートである図4を参照して、アーカイブをアプリケーションサーバ300に配備する際の処理を説明する。図4に示すように、まず、入力データ112で指定されたアーカイブを入力データ112で指定されたアプリケーションサーバ300に配備するためのコマンドを実行する(S101)。次にコマンドが正常終了したかどうかを判別し(S102)、正常終了でない場合、処理を終了し、正常終了の場合、アーカイブを展開する(S103)。次に、サーバ名およびアーカイブ名をキーとしてアーカイブ名管理テーブル8を検索し(S104)、見つからなかった場合(S104でNO)、アーカイブ名管理テーブル8に、サーバ名およびアーカイブ名ならびにIDを含むアーカイブ名管理情報を追加し(S105)、ファイル名管理テーブル9にアーカイブ展開結果のファイル名と前記IDを含むファイル名管理情報を追加する(S106)。ステップS104で同じサーバ名とアーカイブ名のアーカイブ名管理情報が見つかった場合、ファイル名管理テーブル9から前記見つかったアーカイブ名管理情報中のIDを含むファイル名管理情報を全て一旦削除した後、アーカイブ展開結果のファイル名と前記見つかったアーカイブ名管理情報中のIDを含むファイル名管理情報を登録する(S107)。   First, with reference to FIG. 4 which is a flowchart when the operation type is “deployment execution”, processing when an archive is deployed on the application server 300 will be described. As shown in FIG. 4, first, a command for deploying the archive designated by the input data 112 to the application server 300 designated by the input data 112 is executed (S101). Next, it is determined whether or not the command has ended normally (S102). If the command has not ended normally, the process ends. If the command has ended normally, the archive is expanded (S103). Next, the archive name management table 8 is searched using the server name and the archive name as a key (S104). If not found (NO in S104), the archive including the server name, archive name, and ID is stored in the archive name management table 8. Name management information is added (S105), and file name management information including the file name of the archive development result and the ID is added to the file name management table 9 (S106). When archive name management information having the same server name and archive name is found in step S104, all the file name management information including the ID in the found archive name management information is once deleted from the file name management table 9, and then the archive is expanded. The file name management information including the resulting file name and the ID in the found archive name management information is registered (S107).

図7に配備実行の例を示す。各管理テーブル8、9が図2に示したような内容であるとき、図7に示すようなXXXXXX.jarというファイル名のアーカイブをapsv03というサーバ名のアプリケーションサーバ300に配備することを指示する入力データ112が入力された場合、アーカイブ名管理テーブル8に、図7の4行目に示すようなアーカイブ名管理情報が追加される。また、ファイル名XXXXXX.jarのアーカイブに3つのファイルが含まれており、それぞれのファイル名をx1.class、x2.class、x3.classとすると、ファイル名管理テーブル9に、図7の8〜10行目に示すようなファイル名管理情報が追加される。   FIG. 7 shows an example of deployment execution. When each of the management tables 8 and 9 has the contents as shown in FIG. 2, an instruction for instructing to deploy the archive with the file name XXXXXX.jar as shown in FIG. 7 to the application server 300 with the server name apsv03 When the data 112 is input, archive name management information as shown in the fourth line of FIG. 7 is added to the archive name management table 8. In addition, the archive of the file name XXXXXX.jar contains three files. If the file names are x1.class, x2.class, and x3.class, the file name management table 9 includes 8-8 in FIG. File name management information as shown in the 10th line is added.

次に、動作種別が”配備取消し実行”のときのフローチャートである図5を参照して、アーカイブをアプリケーションサーバ300から配備取消しの際の処理を説明する。図5に示すように、まず、入力データ112で指定されたアーカイブを入力データで指定されたアプリケーションサーバ300から配備取消しのためのコマンドを実行する(S201)。次に、コマンドが正常終了したかどうかを判別し(S202)、正常終了でない場合、処理を終了し、正常終了の場合、サーバ名およびアーカイブ名をキーとしてアーカイブ名管理テーブル8を検索し(S203)、見つかったとき、アーカイブ名管理テーブル8から見つかった行を削除し(S204)、そのアーカイブに対応するファイル名管理テーブル9のファイル名を含むファイル名管理情報を削除する(S205)。なお、何らかの理由で、ステップS203で同じサーバ名とアーカイブ名のアーカイブ名管理情報が見つからなかったときは、処理を終了する。   Next, with reference to FIG. 5 which is a flowchart when the operation type is “execution of deployment cancellation”, processing when canceling deployment of an archive from the application server 300 will be described. As shown in FIG. 5, first, a command for canceling the deployment of the archive specified by the input data 112 is executed from the application server 300 specified by the input data (S201). Next, it is determined whether or not the command has ended normally (S202). If the command has not ended normally, the process ends. If the command has ended normally, the archive name management table 8 is searched using the server name and archive name as keys (S203). If found, the found line is deleted from the archive name management table 8 (S204), and the file name management information including the file name of the file name management table 9 corresponding to the archive is deleted (S205). If, for some reason, the archive name management information with the same server name and archive name is not found in step S203, the process ends.

図8に配備取消し実行の例を示す。各管理テーブル8、9が図7に示したような内容であるとき、図8に示すようなBBBBBB.warというファイル名のアーカイブをsv01というサーバ名のアプリケーションサーバ300から配備取消しを指示する入力データ112が入力された場合、図7に示すアーカイブ名管理テーブル8の2行目が削除され、この削除した2行目のIDと同じ2のIDを持つファイル名管理テーブル9の4、5行目が削除される。   FIG. 8 shows an example of execution of deployment cancellation. When the management tables 8 and 9 have the contents as shown in FIG. 7, the input data instructing to cancel the deployment of the archive with the file name BBBBBB.war as shown in FIG. 8 from the application server 300 with the server name sv01. When 112 is input, the second line of the archive name management table 8 shown in FIG. 7 is deleted, and the fourth and fifth lines of the file name management table 9 having the same ID of 2 as the deleted second line ID. Is deleted.

次に、動作種別が”検索実行”のときのフローチャートである図6を参照して、関係データベース111を検索する際の動作を説明する。図6に示すように、まず、入力データ112でファイル名が指定されているかどうかを判断し(S301)、指定されている場合、そのファイル名をキーとしてファイル名管理テーブル9を検索し(S302)、見つかった行のIDをキーとしてアーカイブ名管理テーブル8を検索し(S303)、見つかった行のアーカイブ名管理情報に含まれるサーバ名およびアーカイブ名を出力する(S304)。ファイル名が指定されていない場合(S301でNO)、アーカイブ名管理テーブル8およびファイル名管理テーブル9のデータを全件取得する(S305)。   Next, an operation when searching the relational database 111 will be described with reference to FIG. 6 which is a flowchart when the operation type is “execute search”. As shown in FIG. 6, first, it is determined whether or not a file name is specified in the input data 112 (S301). If specified, the file name management table 9 is searched using the file name as a key (S302). The archive name management table 8 is searched using the ID of the found row as a key (S303), and the server name and archive name included in the archive name management information of the found row are output (S304). If the file name is not specified (NO in S301), all data in the archive name management table 8 and the file name management table 9 are acquired (S305).

図9に検索実行の例を示す。各管理テーブル8、9が図8に示したような内容であるとき、図9(a)に示すように、file002.classというファイル名を指定した検索実行を指示する入力データ112が入力された場合、「サーバ名server2、アーカイブ名CCCCC.ear」が出力される。また、図9(b)に示すように、ファイル名を指定しないで検索実行を指示する入力データ112が入力された場合、同図(b)に示すように、アーカイブ名管理テーブル8に登録されているアプリケーションサーバのアーカイブ名毎に、ファイル名管理テーブル9に登録されているファイル名の一覧が出力される。   FIG. 9 shows an example of search execution. When the contents of each management table 8 and 9 are as shown in FIG. 8, as shown in FIG. 9A, input data 112 instructing execution of a search with a file name “file002.class” is input. In this case, “server name server2, archive name CCCCC.ear” is output. Further, as shown in FIG. 9B, when the input data 112 for instructing the search execution without specifying the file name is input, it is registered in the archive name management table 8 as shown in FIG. 9B. A list of file names registered in the file name management table 9 is output for each archive name of the application server.

以上本発明の実施例について説明したが、本発明は以上の実施例にのみ限定されず、その他各種の付加変更が可能である。例えば、データベース111は関係データベースでなく、他の種類のデータベースを用いることも可能である。   Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various other additions and modifications can be made. For example, the database 111 is not a relational database, and other types of databases can be used.

本発明の実施例のアーカイブ配備管理装置を含むネットワーク全体の構成例を示すブロック図である。It is a block diagram which shows the structural example of the whole network containing the archive deployment management apparatus of the Example of this invention. 本発明の実施例のアーカイブ配備管理装置のより詳細な構成を示すブロック図である。It is a block diagram which shows the more detailed structure of the archive deployment management apparatus of the Example of this invention. 本発明の実施例のアーカイブ配備管理装置が備えるデータベースを構成するアーカイブ名管理テーブルとファイル名管理テーブルの内容例を示す図である。It is a figure which shows the example of the content of the archive name management table and file name management table which comprise the database with which the archive deployment management apparatus of the Example of this invention is provided. 本発明の実施例のアーカイブ配備管理装置において入力データの動作種別が”配備実行”のときの処理例を示すフローチャートである。It is a flowchart which shows the process example when the operation | movement classification of input data is "deployment execution" in the archive deployment management apparatus of the Example of this invention. 本発明の実施例のアーカイブ配備管理装置において入力データの動作種別が”配備取消実行”のときの処理例を示すフローチャートである。It is a flowchart which shows the process example when the operation | movement classification of input data is "deployment cancellation execution" in the archive deployment management apparatus of the Example of this invention. 本発明の実施例のアーカイブ配備管理装置において入力データの動作種別が”検索実行”のときの処理例を示すフローチャートである。It is a flowchart which shows the process example when the operation | movement classification of input data is "search execution" in the archive deployment management apparatus of the Example of this invention. 本発明の実施例のアーカイブ配備管理装置における配備実行の動作例の説明図である。It is explanatory drawing of the operation example of deployment execution in the archive deployment management apparatus of the Example of this invention. 本発明の実施例のアーカイブ配備管理装置における配備取消実行の動作例の説明図である。It is explanatory drawing of the operation example of deployment cancellation execution in the archive deployment management apparatus of the Example of this invention. 本発明の実施例のアーカイブ配備管理装置における検索実行の動作例の説明図である。It is explanatory drawing of the operation example of search execution in the archive deployment management apparatus of the Example of this invention.

符号の説明Explanation of symbols

1…入力処理部
2…コマンド実行部
3…データ登録/更新処理部
4…展開処理部
5…データ削除処理部
6…データ検索処理部
7…出力処理部
8…アーカイブ名管理テーブル
9…ファイル名管理テーブル
100…アーカイブ配備管理装置
101…コンピュータ
102…記憶部
103…入力装置
104…出力装置
111…関係データベース
112…入力データ
113…出力データ
200…ネットワーク
300…アプリケーションサーバ
301…記憶部
400…クライアント端末
401…記憶部
DESCRIPTION OF SYMBOLS 1 ... Input processing part 2 ... Command execution part 3 ... Data registration / update processing part 4 ... Development processing part 5 ... Data deletion processing part 6 ... Data search processing part 7 ... Output processing part 8 ... Archive name management table 9 ... File name Management table 100 ... Archive deployment management device 101 ... Computer 102 ... Storage unit 103 ... Input device 104 ... Output device 111 ... Relational database 112 ... Input data 113 ... Output data 200 ... Network 300 ... Application server 301 ... Storage unit 400 ... Client terminal 401: Storage unit

Claims (10)

サーバにアーカイブを配備するコマンドおよびサーバに配備されたアーカイブを取り消すコマンドを実行するコマンド実行手段と、サーバへのアーカイブの配備状況および配備されているアーカイブに含まれるファイル名を含む管理情報を記録する記憶部と、該記憶部に記憶された前記管理情報を更新する更新手段と、前記コマンド実行手段の実行結果データを解析し、前記コマンドが正常終了していることを条件に前記更新手段に前記管理情報の更新を指示する入力処理手段とを備えることを特徴とするアーカイブ配備管理装置。   Record command management means including command execution means for executing commands to deploy archives to servers and commands to cancel archives deployed to servers, and the deployment status of archives to servers and the file names included in the deployed archives A storage unit, an update unit that updates the management information stored in the storage unit, and an analysis result data of the command execution unit are analyzed. An archive deployment management apparatus comprising: an input processing unit that instructs to update management information. 指定されたファイル名のファイルを含むアーカイブのファイル名および該アーカイブが配備されているサーバ名を前記記憶部から検索して結果を出力する検索手段を備えることを特徴とする請求項1記載のアーカイブ配備管理装置。   2. The archive according to claim 1, further comprising search means for searching a file name of an archive including a file having a specified file name and a server name where the archive is deployed from the storage unit and outputting the result. Deployment management device. サーバ名およびアーカイブ名を含む配備指示が与えられた時、前記サーバ名のサーバに前記アーカイブ名のアーカイブを配備するコマンドを実行して実行結果を返却し、サーバ名およびアーカイブ名を含む配備取消指示が与えられた時、前記サーバ名のサーバから前記アーカイブ名のアーカイブの配備を取り消すコマンドを実行して実行結果を返却するコマンド実行手段と、
サーバ名とアーカイブ名と識別子とを含むアーカイブ名管理情報を記憶するアーカイブ名管理テーブルと、
前記識別子とファイル名とを含むファイル名管理情報を記憶するファイル名管理テーブルと、
サーバ名およびアーカイブ名を含む登録指示が与えられた時、前記アーカイブ名管理テーブルに同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が登録されていない場合、前記サーバ名と前記アーカイブ名と新たに生成した識別子とを含むアーカイブ名管理情報を前記アーカイブ名管理テーブルに登録すると共に、前記アーカイブ名のアーカイブに含まれる全てのファイルについて、そのファイル名と前記識別子とを含むファイル名管理情報を前記ファイル名管理テーブルに登録し、前記アーカイブ名管理テーブルに同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が既に登録されている場合、そのアーカイブ名管理情報に含まれる識別子と同じ識別子を含むファイル名管理情報を前記ファイル名管理テーブルから削除し、且つ、前記アーカイブ名のアーカイブに含まれる全てのファイルについて、そのファイル名と前記識別子とを含むファイル名管理情報を前記ファイル名管理テーブルに登録するデータ登録更新処理手段と、
サーバ名およびアーカイブ名を含む削除指示が与えられた時、前記アーカイブ名管理テーブルから同じサーバ名とアーカイブ名を含むアーカイブ名管理情報を検索してそれに含まれる識別子を取得した後、前記検索したアーカイブ名管理情報を前記アーカイブ名管理テーブルから削除すると共に、前記取得した識別子を含むファイル名管理情報を前記ファイル名管理テーブルから削除するデータ削除処理手段と、
動作種別と必要なデータを含む入力データを解析し、サーバ名およびアーカイブ名を含み動作種別が配備実行である入力データの場合は前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む配備指示を前記コマンド実行手段に与え、前記コマンド実行手段から返却される実行結果データを解析して実行結果が正常終了を示していると判定したときに限って前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む登録指示を前記データ登録更新処理手段へ与え、サーバ名およびアーカイブ名を含み動作種別が配備取消実行である入力データの場合は前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む配備取消指示を前記コマンド実行手段に与え、前記コマンド実行手段から返却される実行結果データを解析して正常終了していると判定したときに限って前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む削除指示を前記データ削除処理手段へ与える入力処理手段とを備えることを特徴とするアーカイブ配備管理装置。
When a deployment instruction including a server name and an archive name is given, a command for deploying the archive with the archive name is executed on the server with the server name, the execution result is returned, and a deployment cancellation instruction including the server name and the archive name is performed. Command execution means for executing a command for canceling the deployment of the archive with the archive name from the server with the server name and returning an execution result;
An archive name management table for storing archive name management information including a server name, an archive name, and an identifier;
A file name management table for storing file name management information including the identifier and the file name;
When the registration instruction including the server name and the archive name is given and the archive name management information including the same server name and archive name is not registered in the archive name management table, the server name and the archive name are newly added. The archive name management information including the generated identifier is registered in the archive name management table, and for all files included in the archive with the archive name, the file name management information including the file name and the identifier is stored in the file. File name management including the same identifier as that included in the archive name management information when the archive name management information including the same server name and archive name is already registered in the archive name management table. Delete the information from the file name management table, One, for all files included in the archive of the archive name, a data registration update processing means for registering the filename management information including a file name and the identifier to the filename management table,
When a delete instruction including a server name and an archive name is given, the archive name management information including the same server name and archive name is searched from the archive name management table to obtain an identifier included therein, and then the searched archive Data deletion processing means for deleting name management information from the archive name management table and deleting file name management information including the acquired identifier from the file name management table;
Analyzing the input data including the operation type and necessary data, and in the case of input data including the server name and archive name and the operation type being deployment execution, a deployment instruction including the server name and the archive name included in the input data And the server name included in the input data and only when it is determined that the execution result indicates normal termination by analyzing the execution result data returned from the command execution unit. A registration instruction including an archive name is given to the data registration update processing means, and in the case of input data that includes a server name and an archive name and the operation type is deployment cancellation execution, the server name and the archive name included in the input data are An execution result returned from the command execution unit is given to the command execution unit And an input processing means for giving a deletion instruction including the server name and the archive name included in the input data to the data deletion processing means only when it is determined that the data has been normally terminated by analyzing the data. A featured archive deployment management device.
前記入力処理手段は、正常終了したことを示す予め定められた文字列が前記実行結果データに含まれているかどうかを調べることによって、前記コマンド実行手段によるコマンドの実行が正常終了しているかどうかを判定するものであることを特徴とする請求項1または3記載のアーカイブ配備管理装置。   The input processing means determines whether or not the execution of the command by the command execution means has been normally completed by checking whether or not a predetermined character string indicating normal completion is included in the execution result data. 4. The archive deployment management apparatus according to claim 1, wherein the archive deployment management apparatus is a determination unit. 前記データ登録更新処理手段からアーカイブ名を受け取り、前記アーカイブ名のアーカイブを展開し、該アーカイブに含まれるファイルのファイル名の一覧を前記データ登録更新処理手段に返却する展開処理手段を備えることを特徴とする請求項3記載のアーカイブ配備管理装置。   And an expansion processing unit that receives an archive name from the data registration update processing unit, expands the archive having the archive name, and returns a list of file names of files included in the archive to the data registration update processing unit. The archive deployment management device according to claim 3. ファイル名を含む検索指示が与えられた場合、前記ファイル名を含むファイル名管理情報を前記ファイル名管理テーブルから検索してそのファイル名管理情報に含まれる識別子を取得し、該取得した識別子を含むアーカイブ名管理情報を前記アーカイブ名管理テーブルから検索し、検索結果を出力するデータ検索処理手段を備え、
前記入力処理手段は、解析した入力データが、ファイル名を含み動作種別が検索実行である入力データの場合、前記入力データに含まれるファイル名を含む検索指示を前記データ検索処理手段に与えるものであることを特徴とする請求項3記載のアーカイブ配備管理装置。
When a search instruction including a file name is given, file name management information including the file name is searched from the file name management table, an identifier included in the file name management information is acquired, and the acquired identifier is included. Data retrieval processing means for retrieving archive name management information from the archive name management table and outputting a search result,
The input processing means gives a search instruction including a file name included in the input data to the data search processing means when the analyzed input data is input data including a file name and an operation type is search execution. The archive deployment management apparatus according to claim 3, wherein the archive deployment management apparatus is provided.
前記入力処理手段は、解析した入力データが、ファイル名を含まない動作種別が検索実行である入力データの場合、ファイル名を含まない検索指示を前記データ検索処理手段に与えるものであり、
前記データ検索処理手段は、ファイル名を含まない検索指示が与えられた場合、前記アーカイブ名管理テーブルに記憶された全てのアーカイブ名管理情報について、そのアーカイブ名管理情報に含まれる識別子を含むファイル名管理情報を前記ファイル名管理テーブルから検索し、各アーカイブ名管理情報に含まれるサーバ名およびアーカイブ名と、当該サーバ名のサーバの当該アーカイブ名のアーカイブに含まれるファイルのファイル名とを含む検索結果を出力するものであることを特徴とする請求項6記載のアーカイブ配備管理装置。
The input processing means, when the analyzed input data is input data whose operation type does not include a file name is search execution, gives a search instruction that does not include a file name to the data search processing means,
The data search processing means, when a search instruction not including a file name is given, for all archive name management information stored in the archive name management table, a file name including an identifier included in the archive name management information Search results for management information from the file name management table, including a server name and an archive name included in each archive name management information, and a file name of a file included in the archive of the archive name of the server of the server name The archive deployment management apparatus according to claim 6, wherein:
コンピュータを、サーバにアーカイブを配備するコマンドおよびサーバに配備されたアーカイブを取り消すコマンドを実行するコマンド実行手段、サーバへのアーカイブの配備状況および配備されているアーカイブに含まれるファイル名を含む管理情報を記録する記憶部に記憶された前記管理情報を更新する更新手段、前記コマンド実行手段の実行結果データを解析し、前記コマンドが正常終了していることを条件に前記更新手段に前記管理情報の更新を指示する入力処理手段、として機能させるプログラム。   Management information including a command execution means for executing a command for deploying an archive to a server and a command for canceling an archive deployed on the server, management information including the deployment status of the archive to the server and the file name included in the deployed archive. Updating the management information stored in the storage unit for recording, analyzing the execution result data of the command execution unit, and updating the management information on the condition that the command has been normally completed A program for functioning as input processing means for instructing 前記コンピュータをさらに、指定されたファイル名のファイルを含むアーカイブのファイル名および該アーカイブが配備されているサーバ名を前記記憶部から検索して結果を出力する検索手段、として機能させることを特徴とする請求項8記載のプログラム。   The computer is further made to function as search means for searching a file name of an archive including a file having a specified file name and a server name where the archive is deployed from the storage unit and outputting the result. The program according to claim 8. 前記入力処理手段は、正常終了したことを示す予め定められた文字列が前記実行結果データに含まれているかどうかを調べることによって、前記コマンド実行手段によるコマンドの実行が正常終了しているかどうかを判定するものであることを特徴とする請求項8または9記載のプログラム。   The input processing means determines whether or not the execution of the command by the command execution means has been normally completed by checking whether or not a predetermined character string indicating normal completion is included in the execution result data. 10. The program according to claim 8, wherein the program is to be determined.
JP2004031576A 2004-02-09 2004-02-09 Archive deployment management apparatus and program Pending JP2005222434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004031576A JP2005222434A (en) 2004-02-09 2004-02-09 Archive deployment management apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004031576A JP2005222434A (en) 2004-02-09 2004-02-09 Archive deployment management apparatus and program

Publications (1)

Publication Number Publication Date
JP2005222434A true JP2005222434A (en) 2005-08-18

Family

ID=34997992

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004031576A Pending JP2005222434A (en) 2004-02-09 2004-02-09 Archive deployment management apparatus and program

Country Status (1)

Country Link
JP (1) JP2005222434A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866068A (en) * 2019-11-09 2020-03-06 上证所信息网络有限公司 Announcement data storage method and device based on HDFS
CN112487150A (en) * 2020-12-11 2021-03-12 航天信息股份有限公司 File management method, system, storage medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866068A (en) * 2019-11-09 2020-03-06 上证所信息网络有限公司 Announcement data storage method and device based on HDFS
CN110866068B (en) * 2019-11-09 2024-02-02 上证所信息网络有限公司 Advertisement data storage method and device based on HDFS
CN112487150A (en) * 2020-12-11 2021-03-12 航天信息股份有限公司 File management method, system, storage medium and electronic equipment
CN112487150B (en) * 2020-12-11 2023-12-26 航天信息股份有限公司 File management method, system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11163541B2 (en) System for the discovery and provisioning of artifacts and composites
US20200201748A1 (en) Systems and methods for testing source code
US7461095B2 (en) Image server store system and method using combined image views
US10621211B2 (en) Language tag management on international data storage
JP4912026B2 (en) Information processing apparatus and information processing method
RU2357283C2 (en) Scheme for refreshing connection with network printing device for clients of printer device
CN109391664A (en) System and method for the deployment of more cluster containers
US20060130017A1 (en) Combined image views and methods of creating images
US20030195951A1 (en) Method and system to dynamically detect, download and install drivers from an online service
US20040186849A1 (en) File storage service system, file management device, file management method, ID denotative NAS server and file reading method
CN1329840C (en) File archival
US20070073770A1 (en) Methods, systems, and computer program products for resource-to-resource metadata association
JP2009522677A (en) Method, system, and device for file system dump / restore by node numbering
JPH1021061A (en) Automatic version-up system for client software
JP2006344171A (en) Information processing apparatus, control method thereof, computer program, and storage medium
US11113265B2 (en) Information processing apparatus and information processing system
JP5106062B2 (en) File search method, file search device, search system, and file search program
JP2005242904A (en) Document group analysis device, document group analysis method, document group analysis system, program and storage medium
JP5164673B2 (en) Server apparatus, catalog processing method and program
JP2006031608A (en) Computer, storage system, file management method which computer performs, and program
JP2005222434A (en) Archive deployment management apparatus and program
JP2008040602A (en) Content management system and method and program using file server
JP6313987B2 (en) File management program, file management method, and file management system
US20100114978A1 (en) Methodology for the Automatic Capture of Process Information in Federated Knowledge Systems
JPH11212985A (en) Information library device