JP2005222434A - Archive deployment management apparatus and program - Google Patents
Archive deployment management apparatus and program Download PDFInfo
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
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
特許文献1には、分散環境におけるファイルの配信と管理を行うファイル配信管理方法が記載されている。具体的には、マスタ端末でのファイル管理テーブル作成処理と、配信元におけるファイル更新処理、アーカイブ作成処理およびファイル配信処理を含むサーバ更新・配信処理と、配信先におけるアーカイブ展開処理、ファイル更新処理および更新結果送信処理を含むクライアント更新処理と、配信元における更新結果集計処理との4つの処理を非同期に実行することにより、ファイルの配信と配信されたファイルを管理している。
また特許文献2には、コンポジットオブジェクト保管庫にてソフトウェア資産を管理したり、資産間の関係を管理する情報資源管理装置が開示されている。
しかしながら、特許文献1に記載されるファイル配信管理方法は、マスタ端末でのファイル管理テーブル作成処理と、配信元におけるファイル更新処理、アーカイブ作成処理およびファイル配信処理を含むサーバ更新・配信処理とが非同期であり、特許文献2に記載される情報資源管理装置は、ソフトウェア資産の実行環境と直接的な関連性がない。このため、これらの従来技術を利用した場合、アーカイブをサーバに配備する処理と、アーカイブを配備したサーバのサーバ名およびそのアーカイブに格納されているファイルのファイル名をデータベースなどに登録する処理とが非同期になり、サーバにアーカイブを配備したのにデータベースに記録し忘れる事態や、反対にアーカイブのサーバへの配備に失敗したのにデータベースには配備されたように登録してしまう事態の発生が予想される。若し、両者が整合しなくなると、人手による洗い出し作業が必要になり、業務の遂行に多大な影響が及んでしまう。
However, in the file delivery management method described in
そこで本発明の目的は、サーバへのアーカイブの配備処理および配備取消処理に同期して、アーカイブの配備状況の記録を自動更新することのできるアーカイブ配備管理装置を提供することにある。 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
各アプリケーションサーバ300は、ハードディスク装置などの記憶部301にアーカイブを記憶し、ネットワーク200経由でクライアント端末400からアーカイブの送信要求があると、要求されたアーカイブを記憶部301から読み出してネットワーク200経由でクライアント端末400へ送信する。クライアント端末400は、受信したアーカイブをハードディスク装置などの記憶部401に記憶し、この記憶したファイルを展開してそれに含まれる各ファイルを取り出し、ブラウザなどのソフトウェアで画面に表示したりして利用する。
Each
アーカイブ配備管理装置100は、各アプリケーションサーバ300へのアーカイブの配備、配備の取消、アーカイブの配備状況データの記録などを行うコンピュータシステムである。図1の例では、アーカイブ配備管理装置100をアプリケーションサーバ300と独立した装置としているが、何れかのアプリケーションサーバ300を構成するコンピュータを、アーカイブ配備管理装置としても機能させるようにしても良い。
The archive deployment management apparatus 100 is a computer system that performs deployment of an archive to each
アーカイブ配備管理装置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
以下、アーカイブ配備管理装置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
入力処理部1は、入力装置103から入力される入力データ112を解析して動作種別を判別し、動作を振り分ける部分である。以下に、入力データ112の内容および動作種別を示す。
The
○入力データの内容
(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
また、入力処理部1は、入力データ112が、項目(2)のアーカイブ名と項目(3)のサーバ名とを指定し、且つ、項目(1)の動作種別が”配備取消実行”である場合、入力データ112に含まれる項目(3)のサーバ名および項目(2)のアーカイブ名を含む配備取消指示を、コマンド実行部2に与え、コマンド実行部2から返却される実行結果を解析し、正常終了と判定したときに限って、入力データ112に含まれる項目(3)のサーバ名および項目(2)のアーカイブ名を含む削除指示をデータ削除処理部5へ与える。正常終了と判定しない場合、このような削除指示は送出しない。
Further, the
ここで、入力処理部1は、コマンド実行部2によるアーカイブの配備処理が正常終了したかどうかを、例えば、返却される実行結果データ中に、正常終了したことを示す予め定められた文字列(例えば、文字列BUILD SUCCESSFUL)が含まれているかどうかを調べることによって行う。入力処理部1は同様に、コマンド実行部2によるアーカイブの配備取消処理が正常終了したかどうかを、返却される実行結果データ中に正常終了したことを示す予め定められた文字列が含まれているかどうかを調べることによって行う。
Here, the
また、入力処理部1は、入力データ112が、項目(2)の格納ファイル名を含み、動作種別が”検索実行”である場合、その入力データ112に項目(2)のファイル名(アーカイブに格納されているファイルのファイル名)が含まれていればそのファイル名を含み、項目(2)のファイル名が含まれていなければそのようなファイル名を含まない検索指示をデータ検索処理部6に与える。
In addition, when the
コマンド実行部2は、入力処理部1からサーバ名およびアーカイブ名を含む配備指示が与えられた時、そのサーバ名のアプリケーションサーバ300に対して、そのアーカイブ名のアーカイブを配備するコマンドを実行し、その実行結果データを入力処理部1に返却する。このようなコマンドは、deployコマンドと呼ばれ、アプリケーションサーバに標準装備されている。また、コマンド実行部2は、入力処理部1からサーバ名およびアーカイブ名を含む配備取消指示が与えられた時、そのサーバ名のアプリケーションサーバ300から、そのアーカイブ名のアーカイブの配備を取り消すコマンドを実行し、その実行結果データを入力処理部1に返却する。このようなコマンドは、undeployコマンドと呼ばれ、アプリケーションサーバに標準装備されている。
When the
関係データベース111を構成するアーカイブ名管理テーブル8は、どのアプリケーションサーバ300にどのアーカイブが配備されているかを管理するテーブルである。具体的には、図3に示すように、サーバ名とアーカイブ名とID(識別子)とを含むアーカイブ名管理情報を記録する。1つの行が1つのアーカイブ名管理情報になる。例えば、1行目のアーカイブ名管理情報は、sv01というサーバ名のアプリケーションサーバ300に、AAAA.jarというファイル名のアーカイブが配備されていることを示し、また当該アーカイブ名管理情報を一意に識別するIDが1であることを示す。
The archive name management table 8 constituting the
関係データベース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
なお、本実施例では、アーカイブ名管理テーブル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
展開処理部4は、データ登録/更新処理部3からアーカイブ名を受け取り、そのアーカイブ名のアーカイブを記憶部102から読み出して展開し、そのアーカイブに含まれる全てのファイルのファイル名の一覧を求めて、データ登録/更新処理部3に返却する。
The
データ削除処理部5は、サーバ名およびアーカイブ名を含む削除指示が入力処理部1から与えられた場合、アーカイブ名管理テーブル8から同じサーバ名とアーカイブ名を含むアーカイブ名管理情報を検索して、それに含まれるIDを取得した後、前記検索したアーカイブ名管理情報をアーカイブ名管理テーブル8から削除すると共に、前記取得したIDを含むファイル名管理情報をファイル名管理テーブル9から削除する。
When a deletion instruction including a server name and an archive name is given from the
データ検索処理部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
出力処理部7は、データ検索処理部6から受け取ったデータを出力データ113として出力装置104から出力する。
The
次に、図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
図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
次に、動作種別が”配備取消し実行”のときのフローチャートである図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
図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
次に、動作種別が”検索実行”のときのフローチャートである図6を参照して、関係データベース111を検索する際の動作を説明する。図6に示すように、まず、入力データ112でファイル名が指定されているかどうかを判断し(S301)、指定されている場合、そのファイル名をキーとしてファイル名管理テーブル9を検索し(S302)、見つかった行のIDをキーとしてアーカイブ名管理テーブル8を検索し(S303)、見つかった行のアーカイブ名管理情報に含まれるサーバ名およびアーカイブ名を出力する(S304)。ファイル名が指定されていない場合(S301でNO)、アーカイブ名管理テーブル8およびファイル名管理テーブル9のデータを全件取得する(S305)。
Next, an operation when searching the
図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,
以上本発明の実施例について説明したが、本発明は以上の実施例にのみ限定されず、その他各種の付加変更が可能である。例えば、データベース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
1…入力処理部
2…コマンド実行部
3…データ登録/更新処理部
4…展開処理部
5…データ削除処理部
6…データ検索処理部
7…出力処理部
8…アーカイブ名管理テーブル
9…ファイル名管理テーブル
100…アーカイブ配備管理装置
101…コンピュータ
102…記憶部
103…入力装置
104…出力装置
111…関係データベース
112…入力データ
113…出力データ
200…ネットワーク
300…アプリケーションサーバ
301…記憶部
400…クライアント端末
401…記憶部
DESCRIPTION OF
Claims (10)
サーバ名とアーカイブ名と識別子とを含むアーカイブ名管理情報を記憶するアーカイブ名管理テーブルと、
前記識別子とファイル名とを含むファイル名管理情報を記憶するファイル名管理テーブルと、
サーバ名およびアーカイブ名を含む登録指示が与えられた時、前記アーカイブ名管理テーブルに同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が登録されていない場合、前記サーバ名と前記アーカイブ名と新たに生成した識別子とを含むアーカイブ名管理情報を前記アーカイブ名管理テーブルに登録すると共に、前記アーカイブ名のアーカイブに含まれる全てのファイルについて、そのファイル名と前記識別子とを含むファイル名管理情報を前記ファイル名管理テーブルに登録し、前記アーカイブ名管理テーブルに同じサーバ名とアーカイブ名を含むアーカイブ名管理情報が既に登録されている場合、そのアーカイブ名管理情報に含まれる識別子と同じ識別子を含むファイル名管理情報を前記ファイル名管理テーブルから削除し、且つ、前記アーカイブ名のアーカイブに含まれる全てのファイルについて、そのファイル名と前記識別子とを含むファイル名管理情報を前記ファイル名管理テーブルに登録するデータ登録更新処理手段と、
サーバ名およびアーカイブ名を含む削除指示が与えられた時、前記アーカイブ名管理テーブルから同じサーバ名とアーカイブ名を含むアーカイブ名管理情報を検索してそれに含まれる識別子を取得した後、前記検索したアーカイブ名管理情報を前記アーカイブ名管理テーブルから削除すると共に、前記取得した識別子を含むファイル名管理情報を前記ファイル名管理テーブルから削除するデータ削除処理手段と、
動作種別と必要なデータを含む入力データを解析し、サーバ名およびアーカイブ名を含み動作種別が配備実行である入力データの場合は前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む配備指示を前記コマンド実行手段に与え、前記コマンド実行手段から返却される実行結果データを解析して実行結果が正常終了を示していると判定したときに限って前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む登録指示を前記データ登録更新処理手段へ与え、サーバ名およびアーカイブ名を含み動作種別が配備取消実行である入力データの場合は前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む配備取消指示を前記コマンド実行手段に与え、前記コマンド実行手段から返却される実行結果データを解析して正常終了していると判定したときに限って前記入力データに含まれる前記サーバ名および前記アーカイブ名を含む削除指示を前記データ削除処理手段へ与える入力処理手段とを備えることを特徴とするアーカイブ配備管理装置。 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.
前記入力処理手段は、解析した入力データが、ファイル名を含み動作種別が検索実行である入力データの場合、前記入力データに含まれるファイル名を含む検索指示を前記データ検索処理手段に与えるものであることを特徴とする請求項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:
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)
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 |
-
2004
- 2004-02-09 JP JP2004031576A patent/JP2005222434A/en active Pending
Cited By (4)
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 |