archipelago 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: archipelago
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2006-11-14 00:00:00 +01:00
6
+ version: 0.2.0
7
+ date: 2006-11-27 00:00:00 +01:00
8
8
  summary: A set of tools for distributed computing in ruby.
9
9
  require_paths:
10
10
  - lib
@@ -35,17 +35,25 @@ files:
35
35
  - lib/archipelago/pirate.rb
36
36
  - lib/archipelago/tranny.rb
37
37
  - lib/archipelago/treasure.rb
38
- - scripts/chest.rb
39
- - scripts/console
40
- - scripts/pirate.rb
41
- - scripts/tranny.rb
38
+ - tests/current_benchmark.rb
39
+ - tests/current_test.rb
40
+ - tests/disco_benchmark.rb
41
+ - tests/disco_test.rb
42
+ - tests/evaltest
43
+ - tests/evaltestmore
44
+ - tests/pirate_test.rb
45
+ - tests/test_helper.rb
46
+ - tests/tranny_test.rb
47
+ - tests/treasure_benchmark.rb
48
+ - tests/treasure_test.rb
49
+ - script/chest.rb
50
+ - script/console
51
+ - script/overloads.rb
52
+ - script/pirate.rb
53
+ - script/services.rb
54
+ - script/tranny.rb
42
55
  - GPL-2
43
56
  - TODO
44
- - profiles/1000xChest#join!-prepare!-commit!.rb
45
- - profiles/1000xDubloon#[]=(t).rb
46
- - profiles/1000xDubloon#method_missing(t).rb
47
- - profiles/profile_helper.rb
48
- - profiles/README
49
57
  - README
50
58
  test_files:
51
59
  - tests/current_test.rb
@@ -1,19 +0,0 @@
1
-
2
- require File.join(File.dirname(__FILE__), 'profile_helper')
3
- require 'treasure'
4
- require 'drb'
5
-
6
- DRb.start_service
7
- @c = TestChest.new
8
-
9
- k = "hej"
10
- v = "oj"
11
- t = TestTransaction.new
12
- 1000.times do |n|
13
- @c[k, t] = v
14
- @c.prepare!(t)
15
- @c.commit!(t)
16
- end
17
-
18
- @c.persistence_provider.unlink
19
- DRb.stop_service
@@ -1,19 +0,0 @@
1
-
2
- require File.join(File.dirname(__FILE__), 'profile_helper')
3
- require 'treasure'
4
- require 'drb'
5
-
6
- DRb.start_service
7
- @c = TestChest.new
8
- @tm = TestManager.new
9
-
10
- tr = @tm.begin
11
- k = "hej"
12
- v = "oj"
13
- 1000.times do |n|
14
- @c[k,tr] = v
15
- end
16
-
17
- @c.persistence_provider.unlink
18
- File.unlink(@tm.db.filename)
19
- DRb.stop_service
@@ -1,21 +0,0 @@
1
-
2
- require File.join(File.dirname(__FILE__), 'profile_helper')
3
- require 'treasure'
4
- require 'drb'
5
-
6
- DRb.start_service
7
- @c = TestChest.new
8
- @tm = TestManager.new
9
-
10
- tr = @tm.begin
11
- k = "hej"
12
- v = "oj"
13
- @c[k,tr] = v
14
- v = @c[k,tr]
15
- 1000.times do |n|
16
- t = v.upcase
17
- end
18
-
19
- @c.persistence_provider.unlink
20
- File.unlink(@tm.db.filename)
21
- DRb.stop_service
data/profiles/README DELETED
@@ -1,3 +0,0 @@
1
- These are just simple scripts to profile certain parts of the system.
2
-
3
- Use ruby-prof to run them and get good profiling.
@@ -1,25 +0,0 @@
1
-
2
- home = File.expand_path(File.dirname(__FILE__))
3
- $: << File.join(home, "..", "lib")
4
-
5
- require 'pp'
6
- require 'tranny'
7
- require 'treasure'
8
-
9
- class TestManager < Archipelago::Tranny::Manager
10
- attr_reader :db
11
- def log_error(e)
12
- puts e
13
- pp e.backtrace
14
- end
15
- end
16
-
17
- class TestChest < Archipelago::Treasure::Chest
18
- attr_reader :persistence_provider
19
- end
20
-
21
- class TestTransaction
22
- def join(o)
23
- end
24
- end
25
-
data/scripts/pirate.rb DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'archipelago/pirate'
4
-
5
- #
6
- # An overload of Archipelago::Hashish::BerkeleyHashish
7
- # just to get a nice debugging method.
8
- #
9
- class Archipelago::Hashish::BerkeleyHashish
10
- #
11
- # Get the serialized value for +key+.
12
- #
13
- def get_serialized_value(key)
14
- @content_db[Marshal.dump(key)]
15
- end
16
- end
17
-
18
- DRb.start_service("druby://localhost:#{rand(1000) + 5000}")
19
- @p = Archipelago::Pirate::Captain.new