JP2009187324A - File keeping device, file keeping method and program - Google Patents
File keeping device, file keeping method and program Download PDFInfo
- Publication number
- JP2009187324A JP2009187324A JP2008027013A JP2008027013A JP2009187324A JP 2009187324 A JP2009187324 A JP 2009187324A JP 2008027013 A JP2008027013 A JP 2008027013A JP 2008027013 A JP2008027013 A JP 2008027013A JP 2009187324 A JP2009187324 A JP 2009187324A
- Authority
- JP
- Japan
- Prior art keywords
- capacity
- file
- area
- contract
- data
- 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
本発明は、ネットワークを通じてユーザにファイルを保存する領域を提供するアプリケーションサービスプロバイダ(ASP)に関し、特に業としてそのような領域を提供するASP(レンタルストレージサービスなど)に関する。 The present invention relates to an application service provider (ASP) that provides an area for storing a file to a user through a network, and particularly relates to an ASP (such as a rental storage service) that provides such an area as a business.
インターネットにおいてASPによって提供されるサービスの一つとして、レンタルストレージサービス、ホスティングサービス(いわゆるレンタルサーバ)などがある。これらのサービスにおいては、ユーザが該サービスを利用するに当たって、該サービスによってファイルを保存することのできるユーザ領域と、ユーザ領域に保存できるファイルの総容量である契約容量があらかじめ定められる。 As one of services provided by ASP on the Internet, there are a rental storage service, a hosting service (so-called rental server), and the like. In these services, when a user uses the service, a user area where files can be saved by the service and a contract capacity which is a total capacity of files which can be saved in the user area are determined in advance.
これに関連する技術として、次に述べるような特許文献がある。特許文献1には、デジタルコンテンツデータ保管に関して、保管サイズと保管時間に応じた従量制の課金を行うという技術が記載されている。特許文献2には、ネットワークを介するコンテンツの視聴に対して課金する方法の一例が記載されている。特許文献3には、ストレージ使用領域の大きさだけでなく、ストレージの総合的な使用状況により課金するという技術が記載されている。
As a technique related to this, there is a patent document as described below. Japanese Patent Application Laid-Open No. 2004-228561 describes a technique for charging a pay-as-you-go system according to storage size and storage time for digital content data storage.
特許文献4には、ネットワークを介するコンテンツの視聴に対して、再生時間もしくは情報量に基づいて課金するという技術が記載されている。特許文献5には、ネットワーク上のストレージとローカルドライブとで、ローカルドライブに記憶された容量が所定の閾値を超えると該データをネットワークドライブに移動し、ローカルドライブの空きが大きくなればネットワークドライブからデータを移動するという技術が記載されている。
特許文献6には、データの重要度に応じて、品質と料金の異なるデータ格納場所の中で保管場所を判別して、保管および課金するという技術が記載されている。特許文献7には、ストレージに格納されたデータに対するアクセス速度をもとに課金するという技術が記載されている。 Patent Document 6 describes a technique in which a storage location is determined from data storage locations of different quality and fee according to the importance of data, and storage and charging are performed. Patent Document 7 describes a technique of charging based on the access speed for data stored in a storage.
このようなレンタルストレージサービスにおいては通常、契約容量を超えてファイルを保存することはできないか、契約容量を超えた分の容量などに応じて超過料金が課金される。この超過料金は、思わぬ高額なものとなることがある。 In such rental storage services, it is usually impossible to store files exceeding the contracted capacity, or an excess charge is charged according to the capacity exceeding the contracted capacity. This excess charge can be unexpectedly expensive.
特許文献1のサービスにおいては、ユーザが使用できる上限の容量を定義せず、使った分だけ課金する仕組みを有しているので、ユーザがデータを蓄積できなくなる状態に陥ることはない。しかしながら、保管サイズと保管時間に応じた従量制課金であるため、大量のデータを長期間保存することにより、その課金は思わぬ高額なものとなる可能性がある。特許文献6のサービスにおいても、ユーザが使用できる容量を定義していないので、特許文献1と同様の問題がある。
The service disclosed in
また、特許文献1および6のサービスにおいては、ユーザが使用できる上限容量についての考慮が無いため、ASP側が用意した記憶装置内の全容量までデータを蓄積することができてしまい、この場合にはサービス自体の停止、もしくは他のユーザへの悪影響などの不具合を招くといった問題もある。ASP側としては、契約容量を超えるデータ蓄積をユーザに許可し、かつサービス停止に陥らないようにするためには、磁気ディスクなどの記憶装置に対する十分な設備投資が必要である。
In the services of
ただし、このために用意する記憶装置は、長期間にわたってデータの消失や破損などの危険性が少なく、かつユーザから高速に読み書きが可能なものである必要がある。そのため、データ読み書きの速度の高速性と、記憶されるデータに対して手厚いデータ保護の施策を備えた高信頼性とを有する、高性能な記憶装置を使用する必要がある。しかしながら、高性能な記憶装置は言うまでもなく単位記憶容量当たりの単価が高いので、これによって大きな記憶容量を準備するコストは膨大なものとなる。 However, a storage device prepared for this purpose needs to have a low risk of data loss or damage over a long period of time and can be read and written at high speed by a user. Therefore, it is necessary to use a high-performance storage device having high speed of data reading / writing and high reliability provided with a measure for protecting data stored. However, since a high-performance storage device has a high unit price per unit storage capacity, the cost for preparing a large storage capacity is enormous.
ちなみに特許文献5のサービスは、ネットワーク上のストレージとローカルドライブとの間でデータを移動させるだけであり、上記の問題を解決する構成を備えていない。それら以外の、特許文献2〜4および7も、上記の問題を解決する構成を備えていない。
Incidentally, the service of Patent Document 5 merely moves data between a storage on a network and a local drive, and does not have a configuration for solving the above-described problem. Other than those,
本発明の目的は、ASPにおいて、ユーザに過大な課金を発生させずに一時的に契約容量を超過してデータを蓄積することができ、かつ設備投資のコストを抑制することのできるファイル保管装置、ファイル保管方法およびプログラムを提供することにある。 An object of the present invention is to provide a file storage device capable of temporarily exceeding the contract capacity and storing data and suppressing the cost of capital investment in an ASP without causing excessive charging to the user. Another object is to provide a file storage method and program.
上記目的を達成するため、本発明に係るファイル保管装置は、ファイルを保存および削除することのできるファイル保管装置であって、あらかじめ定められた契約容量の範囲で単数および複数のファイルを保存および削除することのできる契約領域が確保されている第1のデータ格納部と、第1のデータ格納部とは別に設けられた第2のデータ格納部と、契約領域にファイルを追加することが可能な容量である契約領域空容量を記憶している管理情報格納部と、契約領域空容量を超える容量のファイルが契約領域に追加されようとしている場合、第2のデータ格納部に追加記憶領域を作成する蓄積情報制御部とを有することを特徴とする。 In order to achieve the above object, a file storage apparatus according to the present invention is a file storage apparatus capable of storing and deleting files, and storing and deleting a single file and a plurality of files within a predetermined contracted capacity range. A first data storage unit in which a contract area that can be secured is secured, a second data storage unit provided separately from the first data storage unit, and a file can be added to the contract area When the management information storage unit that stores the contract area free capacity that is the capacity and a file with a capacity that exceeds the contract area free capacity is about to be added to the contract area, an additional storage area is created in the second data storage unit And an accumulated information control unit.
上記目的を達成するため、本発明に係るファイル保管方法は、第1のデータ格納部と第2のデータ格納部とを有するファイル保管装置にファイルを保管する方法であって、第1のデータ格納部にあらかじめ定められた契約容量の範囲で単数および複数のファイルを保存および削除することのできる契約領域を確保する契約領域確保工程と、契約領域にファイルを追加することが可能な容量である契約領域空容量を記憶する契約領域空容量記憶工程と、契約領域に追加されようとしているファイルの容量が契約領域空容量を超えるか否かを判断する第1のファイル容量判断工程と、第1のファイル容量判断工程でファイルの容量が契約領域空容量を超える場合、第2のデータ格納部に追加記憶領域を作成する追加記憶領域作成工程とを有することを特徴とする。 In order to achieve the above object, a file archiving method according to the present invention is a method for archiving a file in a file archiving apparatus having a first data storage unit and a second data storage unit. A contract area securing process that secures a contract area where one or more files can be saved and deleted within the contract capacity range predetermined in the department, and a contract that is a capacity that can add files to the contract area A contract area free capacity storing step for storing area free capacity, a first file capacity determining step for determining whether or not the capacity of a file to be added to the contract area exceeds the contract area free capacity, And an additional storage area creation step of creating an additional storage area in the second data storage unit when the file capacity exceeds the contract area empty capacity in the file capacity determination step. The features.
上記目的を達成するため、本発明に係るファイル保管プログラムは、第1のデータ格納部と第2のデータ格納部とを有するファイル保管装置を制御するコンピュータに、第1のデータ格納部にあらかじめ定められた契約容量の範囲で単数および複数のファイルを保存および削除することのできる契約領域を確保する契約領域確保処理と、契約領域にファイルを追加することが可能な容量である契約領域空容量を記憶する契約領域空容量記憶処理と、契約領域に追加されようとしているファイルの容量が契約領域空容量を超えるか否かを判断する第1のファイル容量判断処理と、第1のファイル容量判断処理でファイルの容量が契約領域空容量を超える場合、第2のデータ格納部に追加記憶領域を作成する追加記憶領域作成処理とを実行させることを特徴とする。 In order to achieve the above object, a file archiving program according to the present invention is pre-determined in a first data storage unit in a computer that controls a file archiving apparatus having a first data storage unit and a second data storage unit. Contract area reservation processing that secures a contract area that can store and delete single and multiple files within the specified contract capacity range, and the contract area empty capacity that can add files to the contract area Contract area free capacity storage process to be stored, first file capacity determination process to determine whether the capacity of a file to be added to the contract area exceeds the contract area free capacity, and first file capacity determination process If the file capacity exceeds the contract area free space, the second data storage unit executes additional storage area creation processing for creating an additional storage area And wherein the door.
本発明は、契約容量を超えそうになった場合に、第1のデータ格納部と異なる第2のデータ格納部に追加記憶領域を作成するように構成したので、第2のデータ格納部を第1のデータ格納部より単位記憶容量当たりの単価の低いものとすることができる。これによって、ASPにおいて、ユーザに過大な課金を発生させずに一時的に契約容量を超過してデータを蓄積することができ、かつ設備投資のコストを抑制することができるという、従来にない優れたファイル保管装置、ファイル保管方法およびプログラムを提供することができる。 Since the present invention is configured to create the additional storage area in the second data storage unit different from the first data storage unit when the contracted capacity is about to be exceeded, the second data storage unit is provided in the second data storage unit. The unit price per unit storage capacity can be lower than that of one data storage unit. As a result, it is possible for ASP to temporarily exceed the contract capacity without accumulating excessive charges to the user and accumulate data, and to reduce the cost of capital investment, which is unprecedented. File storage device, file storage method, and program can be provided.
[第1の実施の形態]
図1は、本発明の第1の実施の形態に係るファイル保管装置10の構成を示す機能ブロック図である。ファイル保管装置10は、ネットワーク20に接続され、ディスク装置などのデータ格納装置を備えたコンピュータ装置によって構成される。ファイル保管装置10は、蓄積情報制御部11、管理情報格納部12、制御プログラム格納部13、高性能データ格納部14、低性能データ格納部15の各機能ブロックで構成される。各々の詳細な構成は後述する。
[First Embodiment]
FIG. 1 is a functional block diagram showing a configuration of a file storage apparatus 10 according to the first embodiment of the present invention. The file storage device 10 is configured by a computer device that is connected to the
蓄積情報制御部11は、以後に説明する本実施の形態に係る動作を実行するコンピュータの主要部であり、制御プログラム格納部13から読み出されるプログラムを実行する。管理情報格納部12は、蓄積情報制御部11の動作に必要となる、各ユーザおよび各ストレージ装置(高性能データ格納部14および低性能データ格納部15を総称していう)などについてのデータを保存する。
The accumulated
高性能データ格納部14および低性能データ格納部15は、磁気ディスク装置、光ディスク装置などによって構成されるデータ記憶装置である。ここでいう「性能」とは、データ読み書きの高速性と、記憶されるデータに対する信頼性とを合わせた概念である。特に記憶されるデータに対する保護の手厚さを、ここでは重視する。もちろん単位記憶容量当たりの単価が高い記憶装置であればあるほど、高性能であると言える。
The high-performance
高性能データ格納部14は、ファイバチャネルやSCSIなどのような高性能なインターフェイスによって接続される高価なディスク装置に、さらにRAID−1またはRAID−10などのような、容量効率が低いが障害時にも転送速度の低下がないデータ保護の施策を施している。一方、低性能データ格納部15は、ATAなどのような低性能なインターフェイスによって接続される安価なディスク装置に、RAID−5などのような、容量効率が高いが障害時には転送速度の低下があるデータ保護の施策を施すか、もしくはそのような施策を特に行わない。
The high-performance
一方、ネットワーク20には携帯電話、モバイル端末、デスクトップPC、大型コンピュータなどのようなクライアント装置21が接続され、それらの端末からネットワーク20を介して、ファイル保管装置10が提供するレンタルストレージサービスを利用することができる。
On the other hand, a
図2は、図1に示したファイル保管装置10によって提供されるレンタルストレージサービス(以後、単にサービスという)をクライアント装置21から見たイメージを示す概念図である。ユーザがサービスを契約すると、契約領域22として、契約された記憶容量(以後契約容量という)分のストレージが割り当てられる。
FIG. 2 is a conceptual diagram showing an image of a rental storage service (hereinafter simply referred to as a service) provided by the file storage device 10 shown in FIG. When the user contracts for the service, storage for the contracted storage capacity (hereinafter referred to as contract capacity) is allocated as the
ユーザは、クライアント装置21からネットワーク20を介して契約領域22にアクセスすることができる。当然のことではあるが、同一サービスを利用する他のユーザの契約領域22には、原則としてアクセスできない(契約内容などによっては、制限付きでアクセスが許可される場合もある)。
The user can access the
図3は、図1に示したファイル保管装置10において、追加記憶領域23が作成される動作を示す概念図である。高性能データ格納部14は、複数の高性能ディスク装置34によって構成される。低性能データ格納部15は、複数の低性能ディスク装置35によって構成される。ユーザがサービスを契約すると割り当てられる契約領域22は、高性能データ格納部14に含まれる。
FIG. 3 is a conceptual diagram showing an operation of creating the
一方、一時的に契約容量を超過するデータが記憶される場合には、その契約容量を超過した容量分の追加記憶領域23が一時的に作成される。追加記憶領域23は、低性能データ格納部15から、不足している容量の分の領域を作成して追加で割り当てることによって実現される。
On the other hand, when data that temporarily exceeds the contracted capacity is stored, an
図4は、図1に示したファイル保管装置10で、契約容量を超過するデータが記憶された場合の動作を示す概念図である。図4(a)は、契約領域22に契約容量を超えない容量の第1のユーザデータ41が記憶されている状態である。この状態から、第2のユーザデータ42を契約領域22に追加して記憶させる。第1のユーザデータ41と第2のユーザデータ42の容量を合わせても、まだ契約容量を超えない。
FIG. 4 is a conceptual diagram showing an operation when data exceeding the contracted capacity is stored in the file storage device 10 shown in FIG. FIG. 4A shows a state in which the
この場合、図4(b)に示すように、第1のユーザデータ41と第2のユーザデータ42は契約領域22内で連続して格納される。この時点で、第1のユーザデータ41と第2のユーザデータ42との合計容量を契約容量から引いた分の、空き容量が残っている。
In this case, as shown in FIG. 4B, the
ここで、この空き容量を上回る容量の第3のユーザデータ43を、さらに追加して記憶させる。そこで、図4(c)に示すように、不足する容量、つまり第3のユーザデータ43の容量から空き容量を引いた分に相当する容量の、追加記憶領域23が作成される。これによって、図4(d)に示すように、第1のユーザデータ41と第2のユーザデータ42に、さらに第3のユーザデータ43が連続して、契約領域22と追加記憶領域23とを合わせた領域に記憶される。以上のように、データ登録時には、必ず各データはストレージ内に連続して配置される。
Here, the
図5は、図1に示したファイル保管装置10で、不要データの削除によって追加記憶領域23が開放される動作を示す概念図である。図5(a)は、図4(d)と同様に、第1〜第3のユーザデータ41〜43が、契約領域22と追加記憶領域23とを合わせた領域に連続して記憶されている状態を示す。ここで、第2のユーザデータ42を削除することを考える。第1のユーザデータ41と第3のユーザデータ43との合計容量は、契約容量を下回るので、追加記憶領域23を使用せずに契約領域22だけで格納することができる容量である。
FIG. 5 is a conceptual diagram showing an operation in which the
この場合、図5(b)に示すように、契約領域22内の、第2のユーザデータ42を削除することによって空いた領域に、第3のユーザデータ43が移動される。第3のユーザデータ43は、第1のユーザデータ41と連続する状態となる。このようにすれば、図5(c)に示すように、追加記憶領域23にデータが存在しない状態となるので、追加記憶領域23は低性能データ格納部15に返却され、図5(d)に示すように契約領域22だけを使用する状態となる。
In this case, as shown in FIG. 5B, the
ここで、第1のユーザデータ41と第3のユーザデータ43との合計容量が契約容量を上回る場合は、追加記憶領域23を返却することはできない。ただし、この場合も、第2のユーザデータ42が削除されれば、第3のユーザデータ43は移動されて、第1のユーザデータ41と連続する状態となる。追加記憶領域23をもともと使用していない場合も同様である。必ず各データはストレージ内に連続して配置されることが、本実施の形態では鉄則である。
Here, when the total capacity of the
図6は、図1に示したファイル保管装置10で、データの更新の動作を示す概念図である。図6(a)は、契約領域22内に、第1〜第3のユーザデータ41〜43が連続して記憶されている状態を示す。ここで、第2のユーザデータ42を削除して、第4のユーザデータ44を記憶させることを考える。つまり、第2のユーザデータ42が、更新されて第4のユーザデータ44になる。この場合も、まず図6(b)に示すように第2のユーザデータ42を削除し、さらに図6(c)に示すように、それによって空いた領域に第3のユーザデータ43を移動して第1のユーザデータ41と連続する状態とする。その上で、図6(d)に示すように、第3のユーザデータ43と連続するように、第4のユーザデータ44が記憶される。
FIG. 6 is a conceptual diagram showing an operation of updating data in the file storage device 10 shown in FIG. FIG. 6A shows a state in which the first to
この場合は、契約領域22内であっても、契約領域22と追加記憶領域23とを合わせた領域であっても、動作は同一である。記憶容量の変化によって必要が生じた場合に、図4および図5に示した追加記憶領域23の追加もしくは解放の動作を行うようにするとよい。
In this case, the operation is the same whether in the
図7は、図1に示したファイル保管装置10におけるファイル管理情報101の構成を示す概念図である。契約領域22と追加記憶領域23とを合わせて、ユーザ領域100という。ユーザ領域100に対するファイル管理情報101は、管理情報格納部12に記憶される。
FIG. 7 is a conceptual diagram showing the configuration of the
いま、ユーザ領域100に、N個のユーザデータ41a〜…(ファイル(1)〜ファイル(N))が保存されているものとする。それらに対応するファイル管理情報101は、ユーザ領域100の存在するディスク装置の識別子を示すディスクID111、該ユーザがユーザ領域100に記憶させているファイル数Nを示す格納ファイル数112、および各ユーザデータ(ファイル(1)〜ファイル(N))ごとに与えられる識別子121、格納位置先頭アドレス122、データサイズ123からなる。
Now, it is assumed that N pieces of
以後、ファイル管理情報101の中でn番目のユーザデータ41a〜…であるファイル(n)に対する識別子121、格納位置先頭アドレス122、およびデータサイズ123を各々、識別子(n)、格納位置先頭アドレス(n)、データサイズ(n)のように表す。(nおよびNは自然数であり、かつ1≦n≦N)
Thereafter, the
図8は、図1に示したファイル保管装置10の構成をさらに詳しく示す機能ブロック図である。蓄積情報制御部11は、ハードウェアとしてはCPU211、通信制御装置212、第1の一時蓄積メモリ213、第2の一時蓄積メモリ214、内部時計215、RAID制御装置216、および仮想記憶領域管理テーブル217で構成される。
FIG. 8 is a functional block diagram showing the configuration of the file storage apparatus 10 shown in FIG. 1 in more detail. The storage
通信制御装置212は、CPU211で実行されるプログラムがネットワーク20にアクセスするためのインターフェイスである。RAID制御装置216は、CPU211で実行されるプログラムが高性能データ格納部14および低性能データ格納部15にアクセスするためのインターフェイスである。
The
第1の一時蓄積メモリ213は、CPU211と通信制御装置212との間で受け渡しされるデータを一時保存する一時蓄積メモリである。第2の一時蓄積メモリ214は、CPU211とRAID制御装置216との間で受け渡しされるデータを一時保存する一時蓄積メモリである。これらの一時蓄積メモリ213および214は、望ましくは大容量の廉価なDRAMによって実装される。
The first
仮想記憶領域管理テーブル217は、RAID制御装置216によって作成される情報を記憶するものであり、高速なアクセスおよび比較的長期のデータ保管のために、望ましくは不揮発性メモリによって実装される。
The virtual storage area management table 217 stores information created by the
前述のように、高性能データ格納部14は、複数の高性能ディスク装置34によって構成される。低性能データ格納部15は、複数の低性能ディスク装置35によって構成される。契約領域22および追加記憶領域23はユーザから見れば連続領域に蓄積されているようになっているが、実際には契約領域22は高性能データ格納部14に、追加記憶領域23は低性能データ格納部15に格納される。
As described above, the high-performance
このため、仮想記憶領域管理テーブル217は、ユーザから見る契約領域22および追加記憶領域23と、それらが実際に格納される高性能データ格納部14および低性能データ格納部15の、各々の格納位置の対応を記憶する。
For this reason, the virtual storage area management table 217 stores the storage areas of the
内部時計215は、詳しくは後述するが、ユーザが追加記憶領域23を使用した時間を測定するために使用される。
Although described in detail later, the
管理情報格納部12は、前述のファイル管理情報101、および各ユーザごとの課金情報300を、ディスクID111をキーとして対応させて記憶しているものであり、高速なアクセス、比較的長期のデータ保管、および将来の容量追加のために、望ましくは不揮発性メモリもしくは高性能のディスク装置103などによって実装される。
The management
制御プログラム格納部13は、CPU211において以後の説明で示される処理を実行するプログラム231を記憶しているものであり、高速なアクセス、比較的長期のデータ保管、および格納するプログラムの保守のために、望ましくは不揮発性メモリによって実装される。
The control
以上で示した構成のファイル保管装置10に対して、ネットワーク20から通信回線を通して、クライアント装置21からの要求が蓄積情報制御部11に届くと、通信制御装置212は該要求の内容を解析し、データを第1の一時蓄積メモリ213に記憶した後、CPU211に対して該要求の処理を要求する。
When the request from the
CPU211はこの要求に基づき、第1の一時蓄積メモリ213に記憶されたデータを順次読み込み、要求を解析し、必要なプログラム231を制御プログラム格納部13から読み込み、該要求に対応するユーザの情報を管理情報格納部12から読み出し、処理を行う。このとき必要に応じて、管理情報格納部12内のファイル管理情報101および課金情報300を変更する。そして該要求に対応して、CPU211はRAID制御装置216に対してストレージ装置への書き込み要求を行う。このときのデータの受け渡しに、第2の一時蓄積メモリ214が使用される。
Based on this request, the
図9は、図8に示した課金情報300のデータ構成を示す概念図である。課金情報300は、各々のユーザを表す情報として、顧客ID301、顧客名称302、顧客住所303、契約容量304、拡張領域最大容量305、契約容量超過時猶予時間306、連絡先メールアドレス307、契約開始日付308などを含む。
FIG. 9 is a conceptual diagram showing a data structure of
このうち契約容量304は、契約領域22の容量である。拡張領域最大容量305は、契約に基づいて許可される追加記憶領域23の最大容量である。この容量を超える追加記憶領域23を作成することはできない。契約容量超過時猶予時間306は、追加記憶領域23を使用することが許可される時間の最大値であり、契約条件に基づいてたとえば「1ヶ月に合計72時間以内」などのように設定される。これを超えて追加記憶領域23を使用したユーザには、たとえばペナルティとして、契約容量超過時猶予時間306を超えた期間に対応する額を課金する(以後、このような課金を拡張課金という)などの措置を取ることができる。
Of these, the
また、課金情報300は、各々のユーザの該サービスの使用状況を表す情報として、契約領域ディスクID309、契約領域空容量310、追加記憶領域ディスクID311、追加記憶領域空容量312、容量超過フラグ313、拡張課金フラグ314、累積超過時間315、超過発生日時316、更新日時317などを含む。
In addition, the
契約領域ディスクID309は、契約に基づき割り当てられた契約領域22を表す識別子であり、ファイル管理情報101に含まれるディスクID111に対応する。契約領域空容量310は、契約領域ディスクID309で表される契約領域22の、契約容量304に対する空き容量である。追加記憶領域ディスクID311は、契約領域22に付加された追加記憶領域23を表す識別子である。追加記憶領域空容量312は、追加記憶領域ディスクID311で表される追加記憶領域23の、拡張領域最大容量305に対する空き容量である。
The contract
容量超過フラグ313および拡張課金フラグ314はブーリアン変数である。容量超過フラグ313は、追加記憶領域23が割り当てられている状態だとYesとなり、そうでなければNoとなる。拡張課金フラグ314は、契約容量超過時猶予時間306を超えて追加記憶領域23を使用している、つまり拡張課金が必要な状態だとYesとなり、そうでなければNoとなる。累積超過時間315は、課金対象期間内に追加記憶領域23を使用した累積時間を表す。超過発生日時316は、最も新しく追加記憶領域23が割り当てられた日時を表す。更新日時317は、これらのデータが最も新しく更新された日時を表す。
The
このような課金情報300を持つことにより、契約領域22と追加記憶領域23とを合わせた占有容量がユーザごとに自明なものとなるので、容量超過状態に陥ったことや、その容量超過状態が解消されたことなどを容易に検出し、それに対応した動作を的確に行うことができる。
By having
図10は、図1および図8に示したファイル保管装置10で、ユーザがクライアント装置21を介してユーザ領域100にデータ登録を依頼した際に、プログラム231がファイル管理情報101に対して行う処理を表すフローチャートである。ここでは、ユーザ領域100にN件のファイル(1)〜ファイル(N)が格納されている状態から、新たにN+1件目のデータであるファイル(N+1)を追加するものである。
FIG. 10 shows the processing performed by the
実行開始されると、格納ファイル数112に登録されているファイル数NをN+1に更新し(ステップS401)、ファイル(N+1)の識別子(N+1)、格納位置先頭アドレス(N+1)、データサイズ(N+1)を各々ファイル管理情報101に追加する(ステップS402〜404)。その後で、ユーザ領域100にファイル(N+1)の実際のデータを蓄積して(ステップS405)、処理を終了する。
When the execution starts, the number N of files registered in the stored
図11は、図1および図8に示したファイル保管装置10で、ユーザがクライアント装置21を介してユーザ領域100にデータ削除を依頼した際に、プログラム231がファイル管理情報101に対して行う処理を表すフローチャートである。ここでは、ユーザ領域100にN件のファイル(1)〜ファイル(N)が格納されている状態から、その中のM件目のデータであるファイル(M)を削除するものである。(Mは自然数であり、かつ1≦M≦N)
FIG. 11 shows processing performed by the
実行開始されると、まずユーザ領域100においてファイル(M)の次のファイルであるファイル(M+1)を、削除されたファイル(M)のデータサイズの分だけ移動させる(ステップS451)。続いて識別子(M)を識別子(M+1)で上書きし(ステップS452)、格納位置先頭アドレス(M)をステップS451によって移動した後の値で上書きし(ステップS453)、データサイズ(M)をデータサイズ(M+1)で上書きする(ステップS454)。
When the execution is started, the file (M + 1) that is the next file (M) in the
その後でMの値を1だけ増加し(ステップS455)、Mの値がNに到達したか否かを判断する(ステップS456)。到達していればステップS457以降に進み、到達していなければステップS451に戻る。ステップS451〜456の工程の繰り返しで、削除対象のファイル(M)は上書きされる。 Thereafter, the value of M is increased by 1 (step S455), and it is determined whether or not the value of M has reached N (step S456). If it has reached, the process proceeds to step S457 and thereafter, and if not, the process returns to step S451. By repeating the steps S451 to S456, the file (M) to be deleted is overwritten.
ステップS456でMの値がNに到達していれば、識別子(N)、格納位置先頭アドレス(N)、データサイズ(N)を各々削除し(ステップS457〜459)、格納ファイル数112の値NをN−1に更新し(ステップS460)、処理を終了する。 If the value of M has reached N in step S456, the identifier (N), storage location head address (N), and data size (N) are deleted (steps S457 to 459), and the value of the number of stored files 112 N is updated to N-1 (step S460), and the process ends.
なお、データを更新する場合は、図11に示した処理で更新前のデータを削除した後、図10に示した処理で更新後のデータを追加する。 In the case of updating data, after the data before update is deleted by the process shown in FIG. 11, the data after update is added by the process shown in FIG.
図12は、図10に示したデータ登録の処理の際に、プログラム231が課金情報300に対して行う処理を表すフローチャートである。まず新規に登録されるファイル(N+1)の容量であるデータサイズ(N+1)について確認した(ステップS501)後、課金情報300に記録されている容量超過フラグ313、契約領域空容量310および追加記憶領域空容量312を確認する(ステップS502)。なお、この段階ではデータサイズ(N+1)はまだファイル管理情報101に登録されていないが、ここでは便宜上ファイル(N+1)の容量をデータサイズ(N+1)という。
FIG. 12 is a flowchart showing processing performed by the
そして、容量超過フラグ313がYesであるか否かを判断する(ステップS503)。容量超過フラグ313がYesであれば追加記憶領域23が現在割り当てられているので、後述のステップS531に進む。容量超過フラグ313がNoであれば追加記憶領域23が現在割り当てられていないので、ステップS504に進む。
Then, it is determined whether or not the
追加記憶領域23が現在割り当てられていない状態であれば、ステップS501で確認したデータサイズ(N+1)が、契約領域空容量310より大きいか否かを判断する(ステップS504)。データサイズ(N+1)が契約領域空容量310より大きければ、新規に追加記憶領域23を割り当てる必要があるので、ステップS521に進む。データサイズ(N+1)が契約領域空容量310以内であれば、追加記憶領域23を割り当てる必要はないので、ステップS511に進む。
If the
ステップS503〜504の判断でステップS511に進んだ場合は、追加記憶領域23が現在割り当てられていず、ファイル(N+1)を登録した後も追加記憶領域23を割り当てる必要はないということを意味する。この場合は、内部時計215から現在時刻を取得し(ステップS511)、契約領域空容量310の値を現在の値からデータサイズ(N+1)を減算した値に更新し(ステップS512)、更新日時317をステップS511で取得した時刻に更新する(ステップS513)。そしてステップS551に進み、図10で示したデータ登録処理を実行する。
If the process proceeds to step S511 as determined in steps S503 to S504, it means that the
ステップS503〜504の判断でステップS521に進んだ場合は、追加記憶領域23が現在割り当てられていないが、契約領域空容量310だけではファイル(N+1)を登録することができないということを意味する。この場合は、データサイズ(N+1)が、契約領域空容量310と追加記憶領域空容量312とを合わせた値より大きいか否かを判断する(ステップS521)。
If the process proceeds to step S521 based on the determination in steps S503 to S504, it means that the
ステップS521で、データサイズ(N+1)が、契約領域空容量310と追加記憶領域空容量312とを合わせた値より大きければ、追加記憶領域23を割り当てたとしてもファイル(N+1)を登録するために十分な空き容量が得られずにオーバーフロー状態になることを意味するので、ステップS541のエラー処理に進む。そうでなければ、ステップS522に進む。
If the data size (N + 1) is larger than the sum of the contract area
ステップS522に進んだ場合は、ファイル(N+1)を登録するために追加記憶領域23を新規に割り当てることになる。まず内部時計215から現在時刻を取得し(ステップS522)、容量超過フラグ313の値をYesに変更し(ステップS523)、超過発生日時316をステップS522で取得した時刻に更新し(ステップS524)、契約領域空容量310の値を0に更新する(ステップS525)。
When the process proceeds to step S522, the
そして低性能データ格納部15から追加記憶領域23を取得し(ステップS526)、取得された追加記憶領域23の追加記憶領域ディスクID311を登録し(ステップS527)、ファイル(N+1)を登録した場合の追加記憶領域23の空き容量を計算して追加記憶領域空容量312に登録し(ステップS528)、更新日時317をステップS522で取得した時刻に更新する(ステップS529)。そしてステップS551に進み、図10で示したデータ登録処理を実行する。
Then, the
ステップS503の判断でステップS531に進んだ場合は、追加記憶領域23が既に割り当てられていることを意味する。契約領域空容量310は0である。この場合は、データサイズ(N+1)が追加記憶領域空容量312より大きいか否かを判断する(ステップS531)。データサイズ(N+1)が追加記憶領域空容量312より大きければ、ファイル(N+1)を登録するために十分な空き容量が得られずにオーバーフロー状態になることを意味するので、ステップS541のエラー処理に進む。そうでなければ、ステップS532に進む。
If the process proceeds to step S531 in the determination of step S503, it means that the
ステップS532に進んだ場合は、まず内部時計215から現在時刻を取得し(ステップS532)、累積超過時間315の値を「ステップS532で取得した時刻から超過発生日時316を引いた時間」に更新する(ステップS533)。そしてファイル(N+1)を登録した場合の追加記憶領域23の空き容量を計算して追加記憶領域空容量312を更新(ステップS534)、更新日時317をステップS532で取得した時刻に更新する(ステップS535)。そしてステップS551に進み、図10で示したデータ登録処理を実行する。
When the process proceeds to step S532, first the current time is acquired from the internal clock 215 (step S532), and the value of the accumulated
ステップS521もしくは531の判断でステップS541に進んだ場合は、オーバーフロー状態が生じてファイル(N+1)を登録することはできないので、データ登録の依頼元であるクライアント装置21にエラーメッセージを返して(ステップS541)、処理を終了する。
If the process proceeds to step S541 as determined in step S521 or 531, an overflow condition has occurred and the file (N + 1) cannot be registered, so an error message is returned to the
ステップS551に進んだ場合は、ファイル(N+1)の登録が可能であるということを意味するので、図10で示したデータ登録処理を実行してファイル(N+1)を登録し(ステップS551)、処理を終了する。 If the process proceeds to step S551, it means that the file (N + 1) can be registered. Therefore, the data registration process shown in FIG. 10 is executed to register the file (N + 1) (step S551). Exit.
図13は、図11に示したデータ削除の処理の際に、プログラム231が課金情報300に対して行う処理を表すフローチャートである。まず削除されるファイル(M)の容量であるデータサイズ(M)について確認した(ステップS601)後、課金情報300に記録されている容量超過フラグ313、契約領域空容量310、追加記憶領域空容量312、拡張領域最大容量305を確認する(ステップS602)。その後で、図11で示したデータ削除処理を実行してファイル(M)を削除する(ステップS603)。
FIG. 13 is a flowchart showing processing performed by the
そして、容量超過フラグ313がYesであるか否かを判断する(ステップS604)。容量超過フラグ313がYesであれば追加記憶領域23が現在割り当てられているので、後述のステップS605に進む。容量超過フラグ313がNoであれば追加記憶領域23が現在割り当てられていないので、ステップS611に進む。
Then, it is determined whether or not the
追加記憶領域23が現在割り当てられている状態であれば、ステップS601で確認したデータサイズ(M)と、ステップS602で確認した追加記憶領域空容量312とを合わせた容量が、拡張領域最大容量305より大きいか否かを判断する(ステップS605)。データサイズ(M)と追加記憶領域空容量312とを合わせた容量が拡張領域最大容量305より大きければ、追加記憶領域23を使用する必要が無くなったことになるので、ステップS621に進む。合わせた容量が拡張領域最大容量305以内であれば、追加記憶領域23を引き続き使用するので、ステップS631に進む。
If the
ステップS604の判断でステップS611に進んだ場合は、追加記憶領域23が現在割り当てられていないということを意味する。この状態からファイル(M)を削除した場合は、契約領域空容量310はそこからデータサイズ(M)だけ大きくなるので、追加記憶領域23を割り当てる必要は当然ない。この場合は、内部時計215から現在時刻を取得し(ステップS611)、契約領域空容量310の値を現在の値からデータサイズ(M)を加算した値に更新し(ステップS612)、更新日時317をステップS611で取得した時刻に更新し(ステップS613)、処理を終了する。
If the process proceeds to step S611 in the determination of step S604, it means that the
ステップS604〜605の判断でステップS621に進んだ場合は、追加記憶領域23が割り当てられていたが、ファイル(M)を削除したことにより追加記憶領域23を使用する必要が無くなったということを意味する。この場合は、まず内部時計215から現在時刻を取得し(ステップS621)、容量超過フラグ313の値をNoに変更し(ステップS622)、超過発生日時316を消去し(ステップS623)、契約領域空容量310の値を「データサイズ(M)と追加記憶領域空容量312とを合わせた容量から拡張領域最大容量305を引いた値」に更新する(ステップS624)。
If the process proceeds to step S621 as a result of the determination in steps S604 to 605, it means that the
そして累積超過時間315の値を「ステップS621で取得した時刻から超過発生日時316を引いた時間」に更新し(ステップS625)、追加記憶領域ディスクID311を消去し(ステップS626)、追加記憶領域空容量312を消去し(ステップS627)、更新日時317をステップS621で取得した時刻に更新し(ステップS628)、追加記憶領域23を低性能データ格納部15に返却して(ステップS629)、処理を終了する。
Then, the value of the cumulative
ステップS604〜605の判断でステップS631に進んだ場合は、追加記憶領域23が現在割り当てられており、ファイル(M)を削除した後も追加記憶領域23を使用し続ける必要があるということを意味する。この場合は、まず内部時計215から現在時刻を取得し(ステップS631)、累積超過時間315の値を「ステップS631で取得した時刻から超過発生日時316を引いた時間」に更新する(ステップS632)。続いて追加記憶領域空容量312を、現在の値からデータサイズ(M)を引いた値に更新し(ステップS633)、更新日時317をステップS631で取得した時刻に更新して(ステップS634)、処理を終了する。
If the process proceeds to step S631 as determined in steps S604 to 605, it means that the
図14〜15は、図10〜11に示したデータ更新の処理の際に、プログラム231が課金情報300に対して行う処理を表すフローチャートである。まず削除されるファイル(M)の容量であるデータサイズ(M)、および追加されるファイル(N)の容量であるデータサイズ(N)について確認した(ステップS701)後、容量超過フラグ313、契約領域空容量310、追加記憶領域空容量312、拡張領域最大容量305を確認する(ステップS702)。その後で、図11で示したデータ削除処理を実行してファイル(M)を削除する(ステップS703)。
14 to 15 are flowcharts showing processing performed by the
そして、容量超過フラグ313がYesであるか否かを判断する(ステップS704)。容量超過フラグ313がYesであれば追加記憶領域23が現在割り当てられているので、後述のステップS705に進む。容量超過フラグ313がNoであれば追加記憶領域23が現在割り当てられていないので、ステップS706に進む。
Then, it is determined whether or not the
ステップS704の判断でステップS705に進んだ場合は、追加記憶領域23が現在割り当てられている状態であることを意味する。この場合、ステップS701で確認した各データサイズから、(データサイズ(M)−データサイズ(N))+追加記憶領域空容量312、つまりファイル(M)をファイル(N)に置換することによって減少するデータの容量と追加記憶領域空容量312とを合わせた容量が、拡張領域最大容量305より大きいか否かを判断する(ステップS705)。
If the process proceeds to step S705 as determined in step S704, it means that the
減少するデータの容量と追加記憶領域空容量312とを合わせた容量が、拡張領域最大容量305より大きければ、追加記憶領域23を使用する必要が無くなったことになるので、ステップS721に進む。合わせた容量が拡張領域最大容量305以内であれば、追加記憶領域23を引き続き使用するので、ステップS711に進む。
If the total capacity of the decreasing data capacity and the additional storage area
ステップS704の判断でステップS706に進んだ場合は、追加記憶領域23が現在割り当てられていない状態であることを意味する。この場合、ステップS701で確認した各データサイズからデータサイズ(N)−データサイズ(M)、つまりファイル(M)をファイル(N)に置換することによって増加するデータの容量が、契約領域空容量310より大きいか否かを判断する(ステップS706)。
If the process proceeds to step S706 in the determination in step S704, it means that the
増加するデータの容量が契約領域空容量310より大きければ、新規に追加記憶領域23を割り当てる必要があるので、ステップS741に進む。増加するデータの容量が契約領域空容量310以内であれば、追加記憶領域23を割り当てる必要はないので、ステップS731に進む。
If the increasing data capacity is larger than the contract area
なお、ファイル(M)をファイル(N)に置換することによって、該置換を実行した後のデータの総容量が契約領域22と追加記憶領域23を合わせたユーザ領域100の総容量を上回る場合には、オーバーフロー状態が生じるので、該置換処理を打ち切ってクライアント装置21にエラーメッセージを返す(図12のステップS521、531、541と同様)。図14においては、図面の錯綜を回避するため、この処理の記載を省略している。
When the file (M) is replaced with the file (N), the total data capacity after the replacement exceeds the total capacity of the
ステップS704〜705の判断でステップS711に進んだ場合は、追加記憶領域23が現在割り当てられており、ファイル(M)をファイル(N)に置換した後も追加記憶領域23を使用し続ける必要があるということを意味する。
When the process proceeds to step S711 as determined in steps S704 to 705, the
この場合は、まず内部時計215から現在時刻を取得し(ステップS711)、累積超過時間315の値を「ステップS711で取得した時刻から超過発生日時316を引いた時間」に更新する(ステップS712)。続いて追加記憶領域空容量312を、現在の値からデータサイズ(M)を引いてデータサイズ(N)を足した値に更新し(ステップS713)、更新日時317をステップS711で取得した時刻に更新して(ステップS714)、ステップS751に進む。
In this case, first, the current time is acquired from the internal clock 215 (step S711), and the value of the accumulated
ステップS704〜705の判断でステップS721に進んだ場合は、追加記憶領域23が割り当てられていたが、ファイル(M)をファイル(N)に置換したことにより追加記憶領域23を使用する必要が無くなったということを意味する。
When the process proceeds to step S721 based on the determination in steps S704 to 705, the
この場合は、まず内部時計215から現在時刻を取得し(ステップS721)、容量超過フラグ313の値をNoに変更し(ステップS722)、超過発生日時316を消去し(ステップS723)、契約領域空容量310の値を「ファイル(M)をファイル(N)に置換することによって減少するデータの容量と追加記憶領域空容量312とを合わせた容量から拡張領域最大容量305を引いた値」に更新する(ステップS724)。
In this case, the current time is first obtained from the internal clock 215 (step S721), the value of the
そして累積超過時間315の値を「ステップS721で取得した時刻から超過発生日時316を引いた時間」に更新し(ステップS725)、追加記憶領域ディスクID311を消去し(ステップS726)、追加記憶領域空容量312を消去し(ステップS727)、更新日時317をステップS621で取得した時刻に更新し(ステップS728)、追加記憶領域23を低性能データ格納部15に返却して(ステップS729)、ステップS751に進む。
Then, the value of the cumulative
ステップS704および706の判断でステップS731に進んだ場合は、追加記憶領域23が現在割り当てられていず、ファイル(M)をファイル(N)に置換した後も追加記憶領域23を割り当てる必要はないということを意味する。この場合は、内部時計215から現在時刻を取得し(ステップS731)、契約領域空容量310の値を現在の値からデータサイズ(M)を加算してデータサイズ(N)を減算した値に更新し(ステップS732)、更新日時317をステップS731で取得した時刻に更新して(ステップS733)、ステップS751に進む。
If the process proceeds to step S731 based on the determination in steps S704 and 706, the
ステップS704および706の判断でステップS741に進んだ場合は、追加記憶領域23が現在割り当てられていないが、契約領域空容量310だけではファイル(M)をファイル(N)に置換することができないので追加記憶領域23を新規に割り当てる必要があるということを意味する。この場合は、まず内部時計215から現在時刻を取得し(ステップS741)、容量超過フラグ313の値をYesに変更し(ステップS742)、超過発生日時316をステップS741で取得した時刻に更新し(ステップS743)、契約領域空容量310の値を0に更新する(ステップS744)。
If the determination in steps S704 and 706 has proceeded to step S741, the
そして低性能データ格納部15から追加記憶領域23を取得し(ステップS745)、取得された追加記憶領域23の追加記憶領域ディスクID311を登録し(ステップS746)、ファイル(M)をファイル(N)に置換した場合の追加記憶領域23の空き容量を計算して追加記憶領域空容量312に登録し(ステップS747)、更新日時317をステップS741で取得した時刻に更新し(ステップS748)、ステップS751に進む。
Then, the
ステップS751に進んだ場合は、図10で示したデータ登録処理を実行してファイル(N)を登録し、処理を終了する。なお、ファイルの削除、登録、置換の際に行われる具体的な処理は、必ずしも図10〜15で示した例には限定されない。たとえば契約領域22および追加記憶領域23に記憶されている容量が契約容量304を超えるか否かの判断などで、図10〜15で示した例以外の方法で、実質的に同一の判断を行うこともできる。
If the process proceeds to step S751, the data registration process shown in FIG. 10 is executed to register the file (N), and the process ends. Note that the specific processing performed when deleting, registering, and replacing a file is not necessarily limited to the examples shown in FIGS. For example, substantially the same determination is made by a method other than the example shown in FIGS. 10 to 15 by determining whether the capacity stored in the
図16は、図1および図8に示したファイル保管装置10で、ファイルの削除もしくは登録を行う際に、プログラム231がクライアント装置21に表示するユーザインターフェイス画面の例を示す概念図である。図16(a)はファイル削除指示画面800である。ユーザはユーザID801と削除対象ファイル名802とを入力し、削除ボタン803を押すことによって、ユーザ領域100から削除する対象となるファイルを選択することができる。なお、ユーザ領域100に現在登録されているファイル名の一覧を表示して、そこから削除対象ファイル名802を選択するようにしてもよい。取消ボタン804を押せば、処理を中断することができる。
FIG. 16 is a conceptual diagram showing an example of a user interface screen displayed on the
図16(b)はファイル削除確認画面810である。ファイル削除指示画面800で削除ボタン803を押すとファイル削除確認画面810に進み、ユーザID801および削除対象ファイル名802で入力した内容がメッセージ811で表示される。ここで削除実行ボタン812を押せば、ユーザID801で指定されたユーザの、削除対象ファイル名802で指定されたファイルに対して、図11および図13で示したファイル削除の処理が実行される。取消ボタン813を押せば、処理を中断することができる。
FIG. 16B shows a file
図16(c)はファイル登録指示画面820である。ユーザはユーザID821、登録元ファイル名822、登録先ファイル名823、およびコメント824を入力し、登録ボタン825を押すことによって、ユーザ領域100に登録する対象となるファイルを選択することができる。なお、ユーザ領域100にローカルディスク上のファイル名の一覧を表示して、そこから登録元ファイル名822を選択するようにしてもよい。取消ボタン826を押せば、処理を中断することができる。
FIG. 16C shows a file
図16(d)はファイル登録確認画面830である。ファイル登録指示画面820で登録ボタン825を押すとファイル登録確認画面830に進み、ユーザID821、登録元ファイル名822、登録先ファイル名823、およびコメント824で入力した内容がメッセージ831で表示される。ここで登録実行ボタン832を押せば、ユーザID801で指定されたユーザの、登録元ファイル名822および登録先ファイル名823で指定されたファイルに対して、図10および図12で示したファイル登録の処理が実行される。取消ボタン833を押せば、処理を中断することができる。
FIG. 16D shows a file registration confirmation screen 830. When the registration button 825 is pressed on the file
図14〜15で示したファイル置換の入力画面および確認画面についてはここでは図示しないが、図16(a)〜(d)に示した例に準ずる形で、削除されるファイル名と登録されるファイル名とを選択するようにユーザインターフェイス画面を構成すればよい。 The file replacement input screen and the confirmation screen shown in FIGS. 14 to 15 are not shown here, but are registered with the file name to be deleted in a manner similar to the example shown in FIGS. 16 (a) to 16 (d). The user interface screen may be configured to select the file name.
もちろん以上で入力される内容は一例に過ぎない。たとえばパスワードなども同時に入力するようにして、それによってユーザ認証を行うようにしてもよい。その場合は管理情報格納部12に、該パスワードを保存するようにするとよい。また、コメント824として入力された、保存される各ファイルについての説明文などの内容を、課金情報300内部に保存するようにしてもよい。
Of course, the content entered above is only an example. For example, a password may be input at the same time, thereby performing user authentication. In that case, the password may be stored in the management
図17は、図1および図8に示したファイル保管装置10で、課金情報300に登録された内容を編集する際に、プログラム231がクライアント装置21に表示するユーザインターフェイス画面の例を示す概念図である。図17(a)は課金情報設定/更新画面900である。ユーザはユーザID901と、契約容量902、拡張容量903、メールアドレス904、コメント905などの情報を入力する。これ以外の課金情報300に登録された情報を表示して編集可能なようにすることもできる。
FIG. 17 is a conceptual diagram showing an example of a user interface screen displayed on the
登録ボタン906を押せば、入力された内容で新規ユーザアカウントが作成される。更新ボタン907を押せば、既存のユーザID901に対応するユーザの登録内容が更新される。取消ボタン908を押せば、処理を中断することができる。
If a
図17(b)はファイル課金情報設定/更新確認画面910である。課金情報設定/更新画面900で登録ボタン906または更新ボタン907を押すとファイル課金情報設定/更新確認画面910に進み、ユーザID901と、契約容量902、拡張容量903、メールアドレス904、およびコメント905で入力した内容がメッセージ911で表示される。ここで設定/更新実行ボタン912を押せば、課金情報300に対して、課金情報設定/更新画面900で入力された内容が反映される。取消ボタン913を押せば、処理を中断することができる。
FIG. 17B shows a file billing information setting /
ここで入力された情報は、課金情報300に反映される。より具体的には、ユーザID901は顧客ID301に、契約容量902は契約容量304に、拡張容量903は拡張領域最大容量305に、メールアドレス904は連絡先メールアドレス307に、各々対応する。課金情報300に含まれる、それら以外の情報を課金情報設定/更新画面900で入力および編集可能なようにしてもよい。
The information input here is reflected in the
以上で説明したように、本実施の形態によって、明示的に契約の変更をすることなく、通常のファイル蓄積もしくは更新の操作をするだけで、一時的に契約容量を超過してデータを蓄積することができるストレージサービスを提供することができる。その際、契約容量超過時猶予時間306を設定しておけば、ユーザはこの猶予時間内であれば無償で追加記憶領域23を利用することができ、この時間を超えた場合は累積超過時間315に基づいて該ユーザに拡張課金を課すようにすることができる。ユーザは、短時間であれば契約容量の超過について特に意識する必要はなく、もちろん過大な課金が発生することも抑制される。
As explained above, according to the present embodiment, data is temporarily stored exceeding the contract capacity by simply performing a normal file storage or update operation without explicitly changing the contract. Storage services that can be provided can be provided. At this time, if a
契約容量超過時猶予時間306にまつわる処理は、たとえば図12のステップS533、図13のステップS632などのように累積超過時間315が更新される時に、契約容量超過時猶予時間306と累積超過時間315とを比較し、累積超過時間315が契約容量超過時猶予時間306を超過した場合に拡張課金フラグ314をYesとするようにするとよい。月次などの課金請求処理の時に、拡張課金フラグ314でYesであれば該ユーザに対して拡張課金を行い、該課金請求処理が終了したら拡張課金フラグ314をリセットする。
For example, when the accumulated
また、追加記憶領域23は、短時間だけ利用されるものであり、長期にわたる信頼性を確保する必要がない。加えて、契約領域22と比べて使用される頻度が低いものである。従って、追加記憶領域23は低性能データ格納部15によって提供されるものとすることができる。そのため、サービス提供者が高価な高性能ディスク装置34を用意する数を減らし、より少ない設備投資でストレージサービスを提供することができる。
Further, the
さらに、ユーザがデータを蓄積できるユーザ領域100の容量が、契約領域22と追加記憶領域23を合計した容量を上回ることもないので、ディスク装置の全容量までデータを蓄積される危険性が少ない。このことも、設備投資の抑制につながる。
Furthermore, since the capacity of the
課金情報300に含まれる各種条件、たとえば契約容量304、拡張領域最大容量305、契約容量超過時猶予時間306などはユーザごとに個別に設定されるので、ユーザごとの契約条件(課金に関する取り決め)を柔軟に設定することが可能となる。たとえば契約容量超過時猶予時間306を超えて追加記憶領域23を利用すること(拡張課金の発生)が頻繁に起こるユーザに対しては、契約容量304を拡張するなどのように契約条件を見直すことができる。
Various conditions included in the
さらに、たとえば契約容量超過時猶予時間306から累積超過時間315を減算した時間が所定の閾値(数時間程度)を下回った場合に、連絡先メールアドレス307に登録されたアドレスに「あと数時間で拡張課金が発生します」などのような警告を電子メールによって送信するようにすることもできる。警告を送信する手段は、電子メールの他には、音声電話への発呼やショートメッセージの送信などを利用することもできる。
Further, for example, when the time obtained by subtracting the accumulated
[第2の実施の形態]
図18は、本発明の第2の実施の形態に係るファイル保管装置1000の構成を示す機能ブロック図である。ファイル保管装置1000は、本発明の第1の実施の形態に係るファイル保管装置10と同一の構成要素を持つ。相違点は、蓄積情報制御部11と制御プログラム格納部13とが1台のコンピュータである制御装置1010で構成され、管理情報格納部12、高性能データ格納部14、および低性能データ格納部15が各々別々のストレージデバイスで構成されるという点にある。
[Second Embodiment]
FIG. 18 is a functional block diagram showing the configuration of the file storage apparatus 1000 according to the second embodiment of the present invention. The file storage device 1000 has the same components as the file storage device 10 according to the first embodiment of the present invention. The difference is that the storage
つまり、ファイル保管装置1000は、本発明の第1の実施の形態に係るファイル保管装置10と比べて、装置の物理的な区分が異なるだけであり、構成および動作は全く同一である。従って、動作についての説明を省略する。 That is, the file storage device 1000 is different from the file storage device 10 according to the first embodiment of the present invention only in the physical division of the device, and the configuration and operation are completely the same. Therefore, description of the operation is omitted.
[第3の実施の形態]
本発明の第3の実施の形態は、装置の構成および機能は、第1および第2の実施の形態として説明したものと同一である。相違点は、図16で示したユーザインターフェイス画面では1つずつのファイルを削除もしくは登録するようになっているが、本実施の形態では複数の対象ファイルを一度に指定して、それらの各々に対して削除もしくは登録の処理を行うことができる点である。
[Third Embodiment]
In the third embodiment of the present invention, the configuration and function of the apparatus are the same as those described as the first and second embodiments. The difference is that the user interface screen shown in FIG. 16 deletes or registers one file at a time. In this embodiment, a plurality of target files are designated at a time, and each of them is designated. In contrast, deletion or registration processing can be performed.
図19は、本発明の第3の実施の形態に係るファイル保管装置でファイルの削除もしくは登録を行う際に、プログラム231がクライアント装置21に表示するユーザインターフェイス画面の例を示す概念図である。入力画面では削除もしくは登録する対象のファイルを複数入力できるようになっており、確認画面では複数入力されたファイル名がすべて表示されるようになっている以外、各構成要素の名称および機能は図16に示したものと同一であるので、同一の要素には同一の参照番号を付し、説明を省略する。
FIG. 19 is a conceptual diagram showing an example of a user interface screen displayed on the
複数のファイルが削除もしくは登録する対象として指定された場合も、対象であるファイルの各々に対して、図10〜13で示したファイル削除もしくはファイル登録の処理を行うようにするだけであり、特に新しい動作が付加されることはない。 Even when a plurality of files are designated as targets to be deleted or registered, the file deletion or file registration process shown in FIGS. 10 to 13 is only performed for each target file. No new action is added.
さらに、たとえば米国マイクロソフト・コーポレーションのWindows(登録商標)のエクスプローラなどのようなツリービュー形式のインターフェイスを適用するなどして、より直感的にファイルの削除もしくは登録の動作を行えるようにしてもよい。この場合もユーザインターフェイスが変わるだけであり、ファイル保管装置が行うファイル削除およびファイル登録の動作は同一である。 Furthermore, the file deletion or registration operation may be performed more intuitively by applying a tree view type interface such as Windows (registered trademark) Explorer of Microsoft Corporation. In this case as well, only the user interface changes, and the file deletion and file registration operations performed by the file storage device are the same.
以上で説明した実施の形態が適用されるサービスは、いわゆるレンタルストレージサービスに限定されない。たとえばウェブサーバや電子メールサーバなどを提供するホスティングサービスにおいても、それらのサーバを運用するに当たって、契約領域22に記憶されているデータの容量が増加する場合がある。その場合、契約容量を超過するデータを記憶できるようにしないと、該サーバにおいてサービスが停止する恐れがある。そのような場合に、追加記憶領域23を割り当てて、サービスの停止を回避することができる。
The service to which the embodiment described above is applied is not limited to a so-called rental storage service. For example, even in a hosting service that provides a web server, an e-mail server, etc., the capacity of data stored in the
これまで本発明について図面に示した特定の実施の形態をもって説明してきたが、本発明は図面に示した実施の形態に限定されるものではなく、本発明の効果を奏する限り、これまで知られたいかなる構成であっても採用することができることは言うまでもないことである。 Although the present invention has been described with the specific embodiments shown in the drawings, the present invention is not limited to the embodiments shown in the drawings, and is known so far as long as the effects of the present invention are achieved. It goes without saying that any configuration can be adopted.
ネットワークを通じてユーザにファイルを保存する領域を提供するASPにおいて利用可能である。 It can be used in an ASP that provides an area for storing a file to a user through a network.
10 ファイル保管装置
11 蓄積情報制御部
12 管理情報格納部
13 制御プログラム格納部
14 高性能データ格納部
15 低性能データ格納部
20 ネットワーク
21 クライアント装置
22 契約領域
23 追加記憶領域
34 高性能ディスク装置
35 低性能ディスク装置
41 第1のユーザデータ
42 第2のユーザデータ
43 第3のユーザデータ
44 第4のユーザデータ
100 ユーザ領域
101 ファイル管理情報
111 ディスクID
112 格納ファイル数
121 識別子
122 格納位置先頭アドレス
123 データサイズ
211 CPU
212 通信制御装置
213 第1の一時蓄積メモリ
214 第2の一時蓄積メモリ
215 内部時計
216 RAID制御装置
217 仮想記憶領域管理テーブル
300 課金情報
DESCRIPTION OF SYMBOLS 10
112 Number of stored
212
Claims (16)
あらかじめ定められた契約容量の範囲で単数もしくは複数のファイルを保存および削除することのできる契約領域が確保されている第1のデータ格納部と、
前記第1のデータ格納部とは別に設けられた第2のデータ格納部と、
前記契約容量を記憶している管理情報格納部と、
前記契約領域にファイルが追加されると前記契約領域に記憶される単数もしくは複数のファイルの総容量が前記契約容量を超える場合、前記第2のデータ格納部に追加記憶領域を作成する蓄積情報制御部と
を有することを特徴とするファイル保管装置。 A file storage device capable of saving and deleting files,
A first data storage unit in which a contract area in which one or a plurality of files can be saved and deleted within a predetermined contract capacity range is secured;
A second data storage unit provided separately from the first data storage unit;
A management information storage unit storing the contract capacity;
Accumulation information control for creating an additional storage area in the second data storage unit when the total capacity of one or more files stored in the contract area exceeds the contract capacity when a file is added to the contract area And a file storage device.
前記第1のデータ格納部にあらかじめ定められた契約容量の範囲で単数もしくは複数のファイルを保存および削除することのできる契約領域を確保する契約領域確保工程と、
前記契約領域の最大容量である契約容量を記憶する契約容量記憶工程と、
前記契約領域にファイルが追加されると前記契約領域に記憶される単数もしくは複数のファイルの総容量が前記契約容量を超えるか否かを判断する第1のファイル容量判断工程と、
前記第1のファイル容量判断工程で前記総容量が前記契約容量を超える場合、前記第2のデータ格納部に追加記憶領域を作成する追加記憶領域作成工程と
を有することを特徴とするファイル保管方法。 A method of storing a file in a file storage device having a first data storage unit and a second data storage unit,
A contract area securing step for securing a contract area in which one or a plurality of files can be saved and deleted within a predetermined contract capacity range in the first data storage unit;
A contract capacity storing step of storing a contract capacity that is the maximum capacity of the contract area;
A first file capacity determination step of determining whether or not the total capacity of one or more files stored in the contract area exceeds the contract capacity when a file is added to the contract area;
A file storage method comprising: an additional storage area creation step of creating an additional storage area in the second data storage unit when the total capacity exceeds the contracted capacity in the first file capacity determination step; .
前記第2のファイル容量判断工程で前記総容量が前記契約容量を下回る場合、前記追加記憶領域を開放する追加記憶領域開放工程を有することを特徴とする、請求項8に記載のファイル保管方法。 Determining whether or not the total capacity of the remaining files is less than the contracted capacity when one or more files stored in the contracted area and the additional storage area are deleted; File capacity judgment process,
9. The file storage method according to claim 8, further comprising an additional storage area releasing step of releasing the additional storage area when the total capacity is less than the contracted capacity in the second file capacity determination step.
前記第3のファイル容量判断工程で前記総容量が前記契約容量と前記拡張領域最大容量との合計を上回る場合、前記ファイルの追加に係る処理を中断するエラー処理工程とを有することを特徴とする、請求項13に記載のファイル保管方法。 When a file is added to the contract area, it is determined whether the total capacity of the file or files stored in the contract area and the additional storage area exceeds the sum of the contract capacity and the maximum capacity of the extension area A third file capacity determination step,
An error processing step of interrupting the processing related to the addition of the file when the total capacity exceeds the total of the contracted capacity and the expansion area maximum capacity in the third file capacity determination step. The file storage method according to claim 13.
前記第1のデータ格納部にあらかじめ定められた契約容量の範囲で単数もしくは複数のファイルを保存および削除することのできる契約領域を確保する契約領域確保処理と、
前記契約領域の最大容量である契約容量を記憶する契約容量記憶処理と、
前記契約領域にファイルが追加されると前記契約領域に記憶される単数もしくは複数のファイルの総容量が前記契約容量を超えるか否かを判断する第1のファイル容量判断処理と、
前記第1のファイル容量判断工程で前記総容量が前記契約容量を超える場合、前記第2のデータ格納部に追加記憶領域を作成する追加記憶領域作成処理と
を実行させることを特徴とするファイル保管プログラム。 A computer for controlling a file storage device having a first data storage unit and a second data storage unit;
A contract area securing process for securing a contract area capable of storing and deleting one or more files within a predetermined contract capacity range in the first data storage unit;
A contract capacity storage process for storing a contract capacity that is the maximum capacity of the contract area;
A first file capacity determination process for determining whether a total capacity of one or more files stored in the contract area exceeds the contract capacity when a file is added to the contract area;
File storage, wherein when the total capacity exceeds the contracted capacity in the first file capacity determination step, the second data storage unit executes an additional storage area creation process for creating an additional storage area program.
前記第2のファイル容量判断工程で前記総容量が前記契約容量を下回る場合、前記追加記憶領域を開放する追加記憶領域開放処理を実行させることを特徴とする、請求項15に記載のファイル保管プログラム。 Determining whether or not the total capacity of the remaining files is less than the contracted capacity when one or more files stored in the contracted area and the additional storage area are deleted; File capacity determination process,
16. The file storage program according to claim 15, wherein when the total capacity is less than the contracted capacity in the second file capacity determination step, an additional storage area release process for releasing the additional storage area is executed. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008027013A JP2009187324A (en) | 2008-02-06 | 2008-02-06 | File keeping device, file keeping method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008027013A JP2009187324A (en) | 2008-02-06 | 2008-02-06 | File keeping device, file keeping method and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009187324A true JP2009187324A (en) | 2009-08-20 |
Family
ID=41070491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008027013A Pending JP2009187324A (en) | 2008-02-06 | 2008-02-06 | File keeping device, file keeping method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009187324A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014059688A (en) * | 2012-09-18 | 2014-04-03 | Ricoh Co Ltd | Information processor, information processing system, and program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002207629A (en) * | 2001-01-12 | 2002-07-26 | Hitachi Ltd | Storage service providing method and storage system |
JP2002329014A (en) * | 2001-05-02 | 2002-11-15 | Fuji Photo Film Co Ltd | Storage site, free-charge storage site and image storage system and its method |
JP2004171224A (en) * | 2002-11-19 | 2004-06-17 | Nec Corp | Contract storage proxy serving system and method |
WO2005017736A1 (en) * | 2003-08-19 | 2005-02-24 | Fujitsu Limited | System and program for detecting bottle neck in disc array device |
-
2008
- 2008-02-06 JP JP2008027013A patent/JP2009187324A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002207629A (en) * | 2001-01-12 | 2002-07-26 | Hitachi Ltd | Storage service providing method and storage system |
JP2002329014A (en) * | 2001-05-02 | 2002-11-15 | Fuji Photo Film Co Ltd | Storage site, free-charge storage site and image storage system and its method |
JP2004171224A (en) * | 2002-11-19 | 2004-06-17 | Nec Corp | Contract storage proxy serving system and method |
WO2005017736A1 (en) * | 2003-08-19 | 2005-02-24 | Fujitsu Limited | System and program for detecting bottle neck in disc array device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014059688A (en) * | 2012-09-18 | 2014-04-03 | Ricoh Co Ltd | Information processor, information processing system, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9477411B2 (en) | Apparatus, method and program product for determining the data recall order | |
JP4885575B2 (en) | Storage area allocation optimization method and management computer for realizing the method | |
CN100550168C (en) | Signal conditioning package, information processing method | |
JP5081498B2 (en) | Computer system and control method thereof | |
JP2008146574A (en) | Storage controller and storage control method | |
TW201437806A (en) | System, method, and computer program product for increasing spare space in memory to extend a lifetime of the memory | |
WO2011048640A1 (en) | Information system adapted to calculate its required data storage capacity | |
US9286000B2 (en) | Saving log data using a disk system as primary cache and a tape library as secondary cache | |
US10528256B2 (en) | Processing a space release command to free release space in a consistency group | |
JP4755487B2 (en) | DATA READING SYSTEM, DATA READING DEVICE, AND DATA READING METHOD | |
JP5250955B2 (en) | Data processing system backup control apparatus and system | |
JP2009230239A (en) | Data migration method for tape device and tape management system | |
JP2009187324A (en) | File keeping device, file keeping method and program | |
JP6229733B2 (en) | Information processing apparatus, method, program, and recording medium | |
CN118020055A (en) | Attaching data to a tape cartridge during a recall operation | |
JP6281333B2 (en) | Storage system | |
JP4778538B2 (en) | Storage data management system and storage data management program | |
JP6107341B2 (en) | Data management program, data management device, and data management method | |
JP6805501B2 (en) | Storage device | |
JP3559016B2 (en) | Disk array system, takeover method of logical unit in disk array system, and cooperative controller | |
CN111858144A (en) | Method, apparatus and computer program product for storage management | |
JPWO2016001959A1 (en) | Storage system | |
WO2016047096A1 (en) | Application server, cloud device, storage medium access monitoring method, and computer-readable storage medium having computer program stored thereon | |
JP2019053466A (en) | Management device, information processing system, and storage area management problem | |
JP5312251B2 (en) | File migration apparatus, method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110908 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111004 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20120410 |