84件ヒット
[1-84件を表示]
(0.014秒)
別のキーワード
種類
- 特異メソッド (24)
- インスタンスメソッド (24)
- クラス (12)
- 文書 (12)
- ライブラリ (12)
ライブラリ
-
rinda
/ rinda (12) -
rinda
/ tuplespace (48)
クラス
-
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (24) -
Rinda
:: TupleSpaceProxy (12)
キーワード
- TupleSpace (12)
- notify (12)
- renew (12)
-
rinda
/ rinda (12) -
ruby 1
. 8 . 4 feature (12)
検索結果
先頭5件
-
Rinda
:: TupleSpace . new(period = 60) -> Rinda :: TupleSpace (21201.0) -
Rinda::TupleSpace オブジェクトを生成します。
...Rinda::TupleSpace オブジェクトを生成します。
period で掃除用スレッドが動く周期を指定します。
このスレッドでは cancel されたタプルや expire(期限切れ、タイムアウト) された
タプルをタプルスペース内から取り除きます。
@... -
Rinda
:: TupleSpaceProxy . new(ts) -> Rinda :: TupleSpaceProxy (21201.0) -
ts を wrap した新たな TupleSpaceProxy オブジェクトを生成します。
...ts を wrap した新たな TupleSpaceProxy オブジェクトを生成します。
@param ts ラップするリモート Rinda::TupleSpace オブジェクト... -
Rinda
:: TupleEntry # renew(sec _ or _ renewer) -> () (9200.0) -
タプルの有効期限を更新します。
...or_renewer によって以下のように更新されます。
* nil : 遠い未来(実質的に無限)を指定します。詳しくは Rinda::TupleEntry#expires 参照
* true : 直ちに有効期限切れになるよう指定します
* 数値 : 有効期限を現在から sec_or_renewer......秒後に指定します
* それ以外 : renew メソッドを持っていると仮定され、そのメソッドの呼び出し結果を用います。
renew メソッドは nil, true, 数値のいずれかを上のルールに従って返さなければなりません。... -
Rinda
:: TupleSpace (6028.0) -
Tuple Space を表すクラスです。
...Tuple Space を表すクラスです。
このクラスのインスタンスを
drb を経由して公開することで
タプルスペースを他のプロセスからアクセスさせることができるようになります。
タプルスペースを drb 経由で利用する側は
DRb::DR......bObject.new_with_uri などでこのオブジェクトのリモートオブジェクトを
取得し、Rinda::TupleSpaceProxy をかぶせることで利用します。
===[a:renewer] タプルの寿命と renewer
タプルを Rinda::TupleSpace#write などで追加するときにその寿命を......a::TupleSpace.new の
引数で指定した秒数ごとに「掃除用スレッド」が動き、それによって
cancel されたタプルや期限切れになったタプルが削除されます。
sec には秒数の代わりに renewer を指定することもできます。
これは renew... -
ruby 1
. 8 . 4 feature (3180.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...ruby]: ruby インタプリタの変更
# * [api]: 拡張ライブラリ API
# * [lib]: ライブラリ
* レベル
* [bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* on......* ((<ruby 1.8.4 feature/Hash [bug]>))
* ((<ruby 1.8.4 feature/test [bug]>))
* ((<ruby 1.8.4 feature/File.identical? [new]>))
* ((<ruby 1.8.4 feature/FileTest.identical? [new]>))
* ((<ruby 1.8.4 feature/File.split [change]>))
* ((<ruby 1.8.4 feature/File.basename [change]>))
* ((<ruby 1.8......: Rinda [bug]
#Sun Oct 16 14:30:05 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
#
# * lib/rinda/rinda.rb (Rinda::Tuple#initialize): check remote hash
# tuple. fixed: [ruby-list:41227]
#
# * test/rinda/test_rinda.rb: test it.
Hash全体がdumpできないオブジェク... -
Rinda
:: TupleSpace # notify(event , pattern , sec = nil) -> Rinda :: NotifyTemplateEntry (3024.0) -
event で指定した種類のイベントの監視を開始します。
...a#tuplepattern を
参照してください。
@param event 監視対象のイベント(文字列)
@param pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数)
=== 例
require 'rinda/tuplespace'
tuplespace = Rinda::TupleSpace.new
observer = tuplesp......ace.notify("write", ["xyz", nil, nil])
Therad.new do
observer.each{|event, tuple| p event, tuple }
end
tuplespace.write(["xyz", 0, 1])
tuplespace.write(["pqr", 0, 1])
tuplespace.write(["xyz", 4, 2])... -
rinda
/ rinda (46.0) -
Rubyで実装されたタプルスペース(Tuple Space)を扱うためのライブラリです。
...Rubyで実装されたタプルスペース(Tuple Space)を扱うためのライブラリです。
タプルスペースとは並列プログラムにおける一つのパターンです。
並列プログラミングにおいては、ロックのような同期処理が必須ですが、
適切な......のの実装は rinda/tuplespace でなされています。
このライブラリはタプルスペースへのアクセス機能等を提供します。
=== 参考
* http://www.druby.org/ilikeruby/rinda.html
* http://www2a.biglobe.ne.jp/~seki/ruby/d208.html
===[a:tuplepattern] タプルの......ロセスを
一意に同定しているからです。
# rinda_ts.rb
require 'drb/drb'
require 'rinda/tuplespace'
uri = ARGV.shift
DRb.start_service(uri, Rinda::TupleSpace.new)
puts DRb.uri
DRb.thread.join
# rindas.rb
require 'drb/drb'
require 'rinda/rinda'
def do_it(...