以下は JE2BWM ほかが作成した翻訳 です。 原文は University of California より GFDL で配付されており、 この翻訳も GFDL に従います。
原文: Preferences override file   (翻訳対象の更新日付は 7:32 AM UTC, March 05 2006 です)。

プレファレンスより優先される設定ファイル

boinc.gif
(英語のみ)

 

とくに指定がなければ、グローバル・プレファレンス はプロジェクトのサーバ上に保持されていて、ウェブインタフェースで変更できます。 そしてそれがサーバからクライアントへダウンロードされてきます。

プレファレンスをローカルに編集したい人もいらっしゃいますし、特定の1台の計算機のためにだけ プレファレンスを変更したい方もいます。 これらの要件を満たすために、 BOINC は、参加者が作ることができる「プレファレンスより優先される設定ファイル」という仕組みを設けました。 コア・クライアントはサーバからプレファレンスを読み出した後に、 このファイルを読み込みます。 そして、プレファレンスを上書きしてしまいます。

プレファレンスより優先される設定ファイルの名前は、global_prefs_override.xml です。 その構造は下記の例のとおりです。

<global_preferences>
    <run_if_user_active>0</run_if_user_active>
    <idle_time_to_run>3</idle_time_to_run>
    <cpu_scheduling_period_minutes>60</cpu_scheduling_period_minutes>
    <work_buf_min_days>0.1</work_buf_min_days>
    <max_cpus>2</max_cpus>
    <disk_interval>60</disk_interval>
    <disk_max_used_gb>100</disk_max_used_gb>
    <disk_max_used_pct>50</disk_max_used_pct>
    <disk_min_free_gb>0.1</disk_min_free_gb>
    <vm_max_used_pct>75</vm_max_used_pct>
    <max_bytes_sec_down>0</max_bytes_sec_down>
    <max_bytes_sec_up>0</max_bytes_sec_up>
</global_preferences>

プレファレンスをローカルに編集するプログラムを書くとすると、 優先する設定ファイルを読み直すようにコア・クライアントへ命じたくなるでしょう。 そうするには、 read_global_prefs_override() という GUI RPC を使えば可能です。 コア・クライアントを一旦停めて、再開しても結構です。


BOINCの訳のメインページに戻る | (原文のメインページに戻る)
 

最終更新時刻 00:53:50, 2006年08月12日(JST)
Copyright © 2010 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2010 Komori Hitoshi(je2bwm at jarl.com). Japanese translation from English web pages on BOINC. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.