99件ヒット
[1-99件を表示]
(0.045秒)
種類
- 特異メソッド (33)
- クラス (22)
- インスタンスメソッド (22)
- 文書 (11)
- ライブラリ (11)
ライブラリ
-
rinda
/ rinda (66) -
rinda
/ tuplespace (11)
クラス
-
Rinda
:: DRbObjectTemplate (11) -
Rinda
:: SimpleRenewer (22) -
Rinda
:: TupleSpace (11) -
Rinda
:: TupleSpaceProxy (11)
キーワード
- SimpleRenewer (11)
- Template (11)
- notify (11)
- renew (11)
-
ruby 1
. 8 . 4 feature (11)
検索結果
先頭5件
-
rinda
/ rinda (38042.0) -
Rubyで実装されたタプルスペース(Tuple Space)を扱うためのライブラリです。
...leSpace.new)
puts DRb.uri
DRb.thread.join
# rindas.rb
require 'drb/drb'
require 'rinda/rinda'
def do_it(v)
puts "do_it(#{v})"
v + v
end
uri = ARGV.shift || raise("usage: #{$0} <server_uri>")
DRb.start_service
ts = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, u......e(['ans', r[1], r[2], v])
end
# rindac.rb
require 'drb/drb'
require 'rinda/rinda'
uri = ARGV.shift || raise("usage: #{$0} <server_uri>")
DRb.start_service
ts = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, uri))
(1..10).each do |n|
ts.write(['sum', DRb.uri, n])
end... -
Rinda
:: SimpleRenewer . new(sec = 180) -> Rinda :: SimpleRenewer (29201.0) -
新たな SimpleRenewer オブジェクトを生成します。
...新たな SimpleRenewer オブジェクトを生成します。
sec で Rinda::SimpleRenewer#renew が返す秒数を指定します。
@param sec renew が返す秒数... -
Rinda
:: DRbObjectTemplate . new(uri = nil , ref = nil) (26107.0) -
@todo
...@todo
Creates a new DRbObjectTemplate that will match against +uri+ and
+ref+.... -
Rinda
:: TupleSpaceProxy . new(ts) -> Rinda :: TupleSpaceProxy (26101.0) -
ts を wrap した新たな TupleSpaceProxy オブジェクトを生成します。
ts を wrap した新たな TupleSpaceProxy オブジェクトを生成します。
@param ts ラップするリモート Rinda::TupleSpace オブジェクト -
ruby 1
. 8 . 4 feature (23174.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......(<ruby-list:40058>)), ((<ruby-dev:27496>))
: 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.
H... -
Rinda
:: SimpleRenewer # renew -> Integer (17106.0) -
TupleSpace からオブジェクトの寿命を問合せるために呼び出されます。
...TupleSpace からオブジェクトの寿命を問合せるために呼び出されます。
このメソッド自体は Rinda::SimpleRenewer.new で指定した秒数を
返します。... -
Rinda
:: SimpleRenewer (14000.0) -
シンプルな renewer で renewer のサンプル実装です。
...ルな renewer で renewer のサンプル実装です。
Rinda::TupleSpace が保持するタプルの有効期限を更新するクラスです。
このクラスはタプルの寿命をプロセスの寿命と一致させることができます。
詳しくは Rinda::TupleSpace#renewer を見... -
Rinda
:: Template (8030.0) -
タプルのマッチングのためのクラスです。 ユーザがこのクラスを直接使うことはありません。
...接使うことはありません。
=== 例
require 'rinda/rinda'
template = Rinda::Template.new(['abc', nil, nil])
template.match(['abc', 2, 5]) # => true
template.match(['hoge', 2, 5]) # => false
template = Rinda::Template.new([String, Integer, nil])
template.match(['abc', 2, 5])......) # => true
template = Rinda::Template.new([/^abc/, Integer, nil])
template.match([/^abc/, Integer, nil]) # => true
template.match(['abc', 2, 5]) # => true
template.match(['def', 2, 5]) # => false
template = Rinda::Template.new({'name' => String, 'age' => Integer})
te... -
Rinda
:: TupleSpace # notify(event , pattern , sec = nil) -> Rinda :: NotifyTemplateEntry (18.0) -
event で指定した種類のイベントの監視を開始します。
...lib:rinda/rinda#tuplepattern を
参照してください。
@param event 監視対象のイベント(文字列)
@param pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数)
=== 例
require 'rinda/tuplespace'
tuplespace = Rinda::TupleSpace.new
obs......erver = tuplespace.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])...