pmux 0.1.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.
- data/.gitignore +8 -0
- data/README.md +36 -0
- data/Rakefile +4 -0
- data/bin/pmux +5 -0
- data/lib/pmux/application.rb +166 -0
- data/lib/pmux/cleaner.rb +28 -0
- data/lib/pmux/fiber18.rb +64 -0
- data/lib/pmux/fixcmd.rb +25 -0
- data/lib/pmux/gatherer.rb +23 -0
- data/lib/pmux/handler.rb +262 -0
- data/lib/pmux/job.rb +101 -0
- data/lib/pmux/joblogger.rb +46 -0
- data/lib/pmux/mapper.rb +151 -0
- data/lib/pmux/mros.rb +207 -0
- data/lib/pmux/multi_session.rb +309 -0
- data/lib/pmux/pipeio.rb +19 -0
- data/lib/pmux/plugin.rb +23 -0
- data/lib/pmux/q.rb +3 -0
- data/lib/pmux/reducer.rb +90 -0
- data/lib/pmux/storage_adapter.rb +105 -0
- data/lib/pmux/task_dispatcher.rb +167 -0
- data/lib/pmux/task_queue.rb +11 -0
- data/lib/pmux/task_scheduler.rb +166 -0
- data/lib/pmux/util_daemon.rb +18 -0
- data/lib/pmux/util_logger.rb +137 -0
- data/lib/pmux/version.rb +3 -0
- data/lib/pmux/worker.rb +91 -0
- data/lib/pmux/writer.rb +19 -0
- data/lib/pmux.rb +27 -0
- data/pmux.gemspec +24 -0
- data/test/mock_mros.rb +284 -0
- data/test/mock_pipeio.rb +26 -0
- data/test/mock_world.rb +193 -0
- data/test/mock_xattr.rb +10 -0
- data/test/runner.rb +10 -0
- data/test/test_application.rb +13 -0
- data/test/test_fixcmd.rb +17 -0
- data/test/test_handler.rb +15 -0
- data/test/test_i_mapreduce.rb +169 -0
- data/test/test_i_mros.rb +28 -0
- data/test/test_i_msession.rb +27 -0
- data/test/test_job.rb +35 -0
- data/test/test_joblogger.rb +16 -0
- data/test/test_mapper.rb +60 -0
- data/test/test_pipeio.rb +24 -0
- data/test/test_storage_adapter.rb +63 -0
- data/test/test_task_queue.rb +87 -0
- data/test/test_task_scheduler.rb +39 -0
- data/test/txt/0.log +105 -0
- data/test/txt/1.log +105 -0
- data/test/txt/2.log +105 -0
- data/test/txt/3.log +105 -0
- data/test/txt/4.log +105 -0
- data/test/txt/5.log +105 -0
- data/test/txt/6.log +105 -0
- data/test/txt/7.log +105 -0
- data/test/txt/8.log +105 -0
- data/test/unittest_helper.rb +57 -0
- metadata +153 -0
data/test/txt/7.log
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
2000-12-31 21:36:01 START: foobarorController (pid 8233)
|
2
|
+
2000-12-31 21:36:01 lock_path: "/tmp/zzzfoobaror-lock" (pid 8233)
|
3
|
+
2000-12-31 21:36:01 sock_path: "/tmp/.foobarorsock.8233"
|
4
|
+
2000-12-31 21:36:02 #1: (8235) start
|
5
|
+
2000-12-31 21:36:02 foobar unknown dddddddddd.example.com
|
6
|
+
2000-12-31 21:36:02 #2: (8236) start
|
7
|
+
2000-12-31 21:36:02 foobar unknown iiiiiiiiii.example.com
|
8
|
+
2000-12-31 21:36:02 #3: (8237) start
|
9
|
+
2000-12-31 21:36:02 foobar unknown cccccccccc.example.com
|
10
|
+
2000-12-31 21:36:02 #4: (8238) start
|
11
|
+
2000-12-31 21:36:02 foobar unknown gggggggggg.example.com
|
12
|
+
2000-12-31 21:36:02 #5: (8239) start
|
13
|
+
2000-12-31 21:36:02 foobar unknown dddddddddd.example.com
|
14
|
+
2000-12-31 21:36:02 #6: (8240) start
|
15
|
+
2000-12-31 21:36:02 foobar unknown hhhhhhhhhh.example.com
|
16
|
+
2000-12-31 21:36:02 #7: (8241) start
|
17
|
+
2000-12-31 21:36:02 foobar unknown llllllllll.example.com
|
18
|
+
2000-12-31 21:36:02 #8: (8242) start
|
19
|
+
2000-12-31 21:36:02 foobar unknown jjjjjjjjjj.example.com
|
20
|
+
2000-12-31 21:36:03 #9: (8243) start
|
21
|
+
2000-12-31 21:36:03 foobar unknown aaaaaaaaaa.example.com
|
22
|
+
2000-12-31 21:36:03 foobar unknown gggggggggg.example.com
|
23
|
+
2000-12-31 21:36:03 #10: (8244) start
|
24
|
+
2000-12-31 21:36:03 foobar unknown mmmmmmmmmm.example.com
|
25
|
+
2000-12-31 21:36:03 foobar unknown jjjjjjjjjj.example.com
|
26
|
+
2000-12-31 21:36:03 foobar unknown router1.example.jp
|
27
|
+
2000-12-31 21:36:03 foobar unknown router0.example.jp
|
28
|
+
2000-12-31 21:36:04 #4: (8238) end
|
29
|
+
2000-12-31 21:36:04 #9: (8243) end
|
30
|
+
2000-12-31 21:36:04 #1: (8235) end
|
31
|
+
2000-12-31 21:36:04 #10: (8244) end
|
32
|
+
2000-12-31 21:36:05 #2: (8236) end
|
33
|
+
2000-12-31 21:36:05 #6: (8240) end
|
34
|
+
2000-12-31 21:36:05 #7: (8241) end
|
35
|
+
2000-12-31 21:36:05 #8: (8242) end
|
36
|
+
2000-12-31 21:36:05 #3: (8237) end
|
37
|
+
2000-12-31 21:36:07 #5: (8239) end
|
38
|
+
2000-12-31 21:36:07 waiting children, done (pid 8233)
|
39
|
+
2000-12-31 21:36:07 foobar unknown: elapsed 1.222222 sec
|
40
|
+
2000-12-31 21:36:07 sock_path: "/tmp/.foobarorsock.8233"
|
41
|
+
2000-12-31 21:36:08 #1: (8245) start
|
42
|
+
2000-12-31 21:36:08 foobar unknown llllllllll.example.com
|
43
|
+
2000-12-31 21:36:08 #2: (8246) start
|
44
|
+
2000-12-31 21:36:08 foobar unknown tttttttttt.example.com
|
45
|
+
2000-12-31 21:36:12 ffffffffff.example.com: insert xxxxxxx: (99999 records in 1.222222 sec)
|
46
|
+
2000-12-31 21:36:12 cccccccccc.example.com: insert xxxxxxxxxx: 99 records
|
47
|
+
2000-12-31 21:36:12 ffffffffff.example.com: insert xxxxxxxxx: 9 records
|
48
|
+
2000-12-31 21:36:12 bbbbbbbbbb.example.com: insert xxxxxxxxxxxxx: 99 records
|
49
|
+
2000-12-31 21:36:12 bbbbbbbbbb.example.com: insert xxxxxxxxx: 9 records
|
50
|
+
2000-12-31 21:36:12 eeeeeeeeee.example.com: insert xxxxxxxx: 9999 records
|
51
|
+
2000-12-31 21:36:12 rrrrrrrrrr.example.com: insert xxxxxxxxxxxx: 9 records
|
52
|
+
2000-12-31 21:36:13 foobar unknown 192.168.195.12
|
53
|
+
2000-12-31 21:36:14 192.168.195.12: insert xxxxxxx: (9999 records in 1.222222 sec)
|
54
|
+
2000-12-31 21:36:14 192.168.195.12: insert xxxxxxxxxx: 99 records
|
55
|
+
2000-12-31 21:36:14 192.168.195.12: insert xxxxxxxxx: 9 records
|
56
|
+
2000-12-31 21:36:14 192.168.195.12: insert xxxxxxxxxxxxx: 99 records
|
57
|
+
2000-12-31 21:36:14 192.168.195.12: insert xxxxxxxxx: 9 records
|
58
|
+
2000-12-31 21:36:14 192.168.195.12: insert xxxxxxxx: 9 records
|
59
|
+
2000-12-31 21:36:14 192.168.195.12: insert xxxxxxxxxxxx: 9 records
|
60
|
+
2000-12-31 21:36:15 foobar unknown bbbbbbbbbb.example.com
|
61
|
+
2000-12-31 21:36:17 mmmmmmmmmm.example.com: insert xxxxxxx: (99999 records in 1.222222 sec)
|
62
|
+
2000-12-31 21:36:17 kkkkkkkkkk.example.com: insert xxxxxxxxxx: 99 records
|
63
|
+
2000-12-31 21:36:17 bbbbbbbbbb.example.com: insert xxxxxxxxx: 9 records
|
64
|
+
2000-12-31 21:36:17 aaaaaaaaaa.example.com: insert xxxxxxxxxxxxx: 99 records
|
65
|
+
2000-12-31 21:36:17 mmmmmmmmmm.example.com: insert xxxxxxxxx: 9 records
|
66
|
+
2000-12-31 21:36:17 llllllllll.example.com: insert xxxxxxxx: 9999 records
|
67
|
+
2000-12-31 21:36:17 tttttttttt.example.com: insert xxxxxxxxxxxx: 9 records
|
68
|
+
2000-12-31 21:36:23 foobar unknown hhhhhhhhhh.example.com
|
69
|
+
2000-12-31 21:36:25 llllllllll.example.com: insert xxxxxxx: (99999 records in 11.222222 sec)
|
70
|
+
2000-12-31 21:36:25 iiiiiiiiii.example.com: insert xxxxxxxxxx: 99 records
|
71
|
+
2000-12-31 21:36:25 oooooooooo.example.com: insert xxxxxxxxx: 9 records
|
72
|
+
2000-12-31 21:36:25 cccccccccc.example.com: insert xxxxxxxxxxxxx: 99 records
|
73
|
+
2000-12-31 21:36:25 mmmmmmmmmm.example.com: insert xxxxxxxxx: 9 records
|
74
|
+
2000-12-31 21:36:25 qqqqqqqqqq.example.com: insert xxxxxxxx: 9999 records
|
75
|
+
2000-12-31 21:36:25 bbbbbbbbbb.example.com: insert xxxxxxxxxxxx: 9 records
|
76
|
+
2000-12-31 21:36:26 foobar unknown pppppppppp.example.com
|
77
|
+
2000-12-31 21:36:26 foobar unknown router1.example.jp
|
78
|
+
2000-12-31 21:36:27 router1.example.jp: insert xxxxxxx: (9999 records in 1.222222 sec)
|
79
|
+
2000-12-31 21:36:27 router1.example.jp: insert xxxxxxxxxx: 99 records
|
80
|
+
2000-12-31 21:36:27 router1.example.jp: insert xxxxxxxxx: 9 records
|
81
|
+
2000-12-31 21:36:27 router1.example.jp: insert xxxxxxxxxxxxx: 9 records
|
82
|
+
2000-12-31 21:36:27 router1.example.jp: insert xxxxxxxxx: 9 records
|
83
|
+
2000-12-31 21:36:27 router1.example.jp: insert xxxxxxxx: 9 records
|
84
|
+
2000-12-31 21:36:27 router1.example.jp: insert xxxxxxxxxxxx: 9 records
|
85
|
+
2000-12-31 21:36:27 foobar unknown router0.example.jp
|
86
|
+
2000-12-31 21:36:31 router0.example.jp: insert xxxxxxx: (9999 records in 1.222222 sec)
|
87
|
+
2000-12-31 21:36:31 router0.example.jp: insert xxxxxxxxxx: 99 records
|
88
|
+
2000-12-31 21:36:31 router0.example.jp: insert xxxxxxxxx: 9 records
|
89
|
+
2000-12-31 21:36:31 router0.example.jp: insert xxxxxxxxxxxxx: 99 records
|
90
|
+
2000-12-31 21:36:31 router0.example.jp: insert xxxxxxxxx: 9 records
|
91
|
+
2000-12-31 21:36:31 router0.example.jp: insert xxxxxxxx: 9 records
|
92
|
+
2000-12-31 21:36:31 router0.example.jp: insert xxxxxxxxxxxx: 9 records
|
93
|
+
2000-12-31 21:36:31 #1: (8245) end
|
94
|
+
2000-12-31 21:36:35 dddddddddd.example.com: insert xxxxxxx: (99999 records in 11.222222 sec)
|
95
|
+
2000-12-31 21:36:35 ssssssssss.example.com: insert xxxxxxxxxx: 99 records
|
96
|
+
2000-12-31 21:36:35 kkkkkkkkkk.example.com: insert xxxxxxxxx: 9 records
|
97
|
+
2000-12-31 21:36:35 dddddddddd.example.com: insert xxxxxxxxxxxxx: 99 records
|
98
|
+
2000-12-31 21:36:35 mmmmmmmmmm.example.com: insert xxxxxxxxx: 9 records
|
99
|
+
2000-12-31 21:36:35 llllllllll.example.com: insert xxxxxxxx: 9999 records
|
100
|
+
2000-12-31 21:36:35 pppppppppp.example.com: insert xxxxxxxxxxxx: 9 records
|
101
|
+
2000-12-31 21:36:35 #2: (8246) end
|
102
|
+
2000-12-31 21:36:35 waiting children, done (pid 8233)
|
103
|
+
2000-12-31 21:36:35 foobar unknown: elapsed 11.222222 sec
|
104
|
+
2000-12-31 21:36:35 unlocked: "/tmp/zzzfoobaror-lock" (pid 8233)
|
105
|
+
2000-12-31 21:36:35 END: foobarorController (pid 8233)
|
data/test/txt/8.log
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
2000-12-31 21:41:01 START: foobarorController (pid 8277)
|
2
|
+
2000-12-31 21:41:01 lock_path: "/tmp/zzzfoobaror-lock" (pid 8277)
|
3
|
+
2000-12-31 21:41:01 sock_path: "/tmp/.foobarorsock.8277"
|
4
|
+
2000-12-31 21:41:02 #1: (8279) start
|
5
|
+
2000-12-31 21:41:02 foobar unknown pppppppppp.example.com
|
6
|
+
2000-12-31 21:41:02 #2: (8280) start
|
7
|
+
2000-12-31 21:41:02 foobar unknown gggggggggg.example.com
|
8
|
+
2000-12-31 21:41:02 #3: (8281) start
|
9
|
+
2000-12-31 21:41:02 foobar unknown aaaaaaaaaa.example.com
|
10
|
+
2000-12-31 21:41:02 #4: (8282) start
|
11
|
+
2000-12-31 21:41:02 foobar unknown dddddddddd.example.com
|
12
|
+
2000-12-31 21:41:02 #5: (8283) start
|
13
|
+
2000-12-31 21:41:02 foobar unknown hhhhhhhhhh.example.com
|
14
|
+
2000-12-31 21:41:02 #6: (8284) start
|
15
|
+
2000-12-31 21:41:02 foobar unknown iiiiiiiiii.example.com
|
16
|
+
2000-12-31 21:41:02 #7: (8285) start
|
17
|
+
2000-12-31 21:41:02 foobar unknown hhhhhhhhhh.example.com
|
18
|
+
2000-12-31 21:41:02 #8: (8286) start
|
19
|
+
2000-12-31 21:41:02 foobar unknown kkkkkkkkkk.example.com
|
20
|
+
2000-12-31 21:41:03 foobar unknown mmmmmmmmmm.example.com
|
21
|
+
2000-12-31 21:41:03 #9: (8287) start
|
22
|
+
2000-12-31 21:41:03 foobar unknown tttttttttt.example.com
|
23
|
+
2000-12-31 21:41:03 #10: (8288) start
|
24
|
+
2000-12-31 21:41:03 foobar unknown oooooooooo.example.com
|
25
|
+
2000-12-31 21:41:03 foobar unknown llllllllll.example.com
|
26
|
+
2000-12-31 21:41:04 foobar unknown router1.example.jp
|
27
|
+
2000-12-31 21:41:04 foobar unknown router0.example.jp
|
28
|
+
2000-12-31 21:41:04 #3: (8281) end
|
29
|
+
2000-12-31 21:41:04 #4: (8282) end
|
30
|
+
2000-12-31 21:41:05 #9: (8287) end
|
31
|
+
2000-12-31 21:41:05 #7: (8285) end
|
32
|
+
2000-12-31 21:41:05 #10: (8288) end
|
33
|
+
2000-12-31 21:41:05 #1: (8279) end
|
34
|
+
2000-12-31 21:41:05 #6: (8284) end
|
35
|
+
2000-12-31 21:41:05 #8: (8286) end
|
36
|
+
2000-12-31 21:41:06 #5: (8283) end
|
37
|
+
2000-12-31 21:41:09 #2: (8280) end
|
38
|
+
2000-12-31 21:41:09 waiting children, done (pid 8277)
|
39
|
+
2000-12-31 21:41:09 foobar unknown: elapsed 1.222222 sec
|
40
|
+
2000-12-31 21:41:09 sock_path: "/tmp/.foobarorsock.8277"
|
41
|
+
2000-12-31 21:41:10 #1: (8289) start
|
42
|
+
2000-12-31 21:41:10 foobar unknown ssssssssss.example.com
|
43
|
+
2000-12-31 21:41:10 #2: (8290) start
|
44
|
+
2000-12-31 21:41:10 foobar unknown iiiiiiiiii.example.com
|
45
|
+
2000-12-31 21:41:14 oooooooooo.example.com: insert xxxxxxx: (99999 records in 1.222222 sec)
|
46
|
+
2000-12-31 21:41:14 ffffffffff.example.com: insert xxxxxxxxxx: 99 records
|
47
|
+
2000-12-31 21:41:14 tttttttttt.example.com: insert xxxxxxxxx: 9 records
|
48
|
+
2000-12-31 21:41:14 rrrrrrrrrr.example.com: insert xxxxxxxxxxxxx: 99 records
|
49
|
+
2000-12-31 21:41:14 pppppppppp.example.com: insert xxxxxxxxx: 9 records
|
50
|
+
2000-12-31 21:41:14 aaaaaaaaaa.example.com: insert xxxxxxxx: 9999 records
|
51
|
+
2000-12-31 21:41:14 ffffffffff.example.com: insert xxxxxxxxxxxx: 9 records
|
52
|
+
2000-12-31 21:41:15 foobar unknown 192.168.195.12
|
53
|
+
2000-12-31 21:41:16 192.168.195.12: insert xxxxxxx: (9999 records in 1.222222 sec)
|
54
|
+
2000-12-31 21:41:16 192.168.195.12: insert xxxxxxxxxx: 99 records
|
55
|
+
2000-12-31 21:41:16 192.168.195.12: insert xxxxxxxxx: 9 records
|
56
|
+
2000-12-31 21:41:16 192.168.195.12: insert xxxxxxxxxxxxx: 99 records
|
57
|
+
2000-12-31 21:41:16 192.168.195.12: insert xxxxxxxxx: 9 records
|
58
|
+
2000-12-31 21:41:16 192.168.195.12: insert xxxxxxxx: 9 records
|
59
|
+
2000-12-31 21:41:16 192.168.195.12: insert xxxxxxxxxxxx: 9 records
|
60
|
+
2000-12-31 21:41:17 foobar unknown aaaaaaaaaa.example.com
|
61
|
+
2000-12-31 21:41:19 ffffffffff.example.com: insert xxxxxxx: (99999 records in 1.222222 sec)
|
62
|
+
2000-12-31 21:41:19 cccccccccc.example.com: insert xxxxxxxxxx: 99 records
|
63
|
+
2000-12-31 21:41:19 hhhhhhhhhh.example.com: insert xxxxxxxxx: 9 records
|
64
|
+
2000-12-31 21:41:19 qqqqqqqqqq.example.com: insert xxxxxxxxxxxxx: 99 records
|
65
|
+
2000-12-31 21:41:19 dddddddddd.example.com: insert xxxxxxxxx: 9 records
|
66
|
+
2000-12-31 21:41:19 jjjjjjjjjj.example.com: insert xxxxxxxx: 9999 records
|
67
|
+
2000-12-31 21:41:19 rrrrrrrrrr.example.com: insert xxxxxxxxxxxx: 9 records
|
68
|
+
2000-12-31 21:41:20 foobar unknown rrrrrrrrrr.example.com
|
69
|
+
2000-12-31 21:41:27 kkkkkkkkkk.example.com: insert xxxxxxx: (99999 records in 11.222222 sec)
|
70
|
+
2000-12-31 21:41:27 rrrrrrrrrr.example.com: insert xxxxxxxxxx: 99 records
|
71
|
+
2000-12-31 21:41:27 pppppppppp.example.com: insert xxxxxxxxx: 9 records
|
72
|
+
2000-12-31 21:41:27 dddddddddd.example.com: insert xxxxxxxxxxxxx: 99 records
|
73
|
+
2000-12-31 21:41:27 cccccccccc.example.com: insert xxxxxxxxx: 9 records
|
74
|
+
2000-12-31 21:41:27 pppppppppp.example.com: insert xxxxxxxx: 9999 records
|
75
|
+
2000-12-31 21:41:27 llllllllll.example.com: insert xxxxxxxxxxxx: 9 records
|
76
|
+
2000-12-31 21:41:28 foobar unknown dddddddddd.example.com
|
77
|
+
2000-12-31 21:41:28 foobar unknown router1.example.jp
|
78
|
+
2000-12-31 21:41:29 router1.example.jp: insert xxxxxxx: (9999 records in 1.222222 sec)
|
79
|
+
2000-12-31 21:41:29 router1.example.jp: insert xxxxxxxxxx: 99 records
|
80
|
+
2000-12-31 21:41:29 router1.example.jp: insert xxxxxxxxx: 9 records
|
81
|
+
2000-12-31 21:41:29 router1.example.jp: insert xxxxxxxxxxxxx: 9 records
|
82
|
+
2000-12-31 21:41:29 router1.example.jp: insert xxxxxxxxx: 9 records
|
83
|
+
2000-12-31 21:41:29 router1.example.jp: insert xxxxxxxx: 9 records
|
84
|
+
2000-12-31 21:41:29 router1.example.jp: insert xxxxxxxxxxxx: 9 records
|
85
|
+
2000-12-31 21:41:30 foobar unknown router0.example.jp
|
86
|
+
2000-12-31 21:41:30 rrrrrrrrrr.example.com: insert xxxxxxx: (99999 records in 11.222222 sec)
|
87
|
+
2000-12-31 21:41:30 dddddddddd.example.com: insert xxxxxxxxxx: 99 records
|
88
|
+
2000-12-31 21:41:30 jjjjjjjjjj.example.com: insert xxxxxxxxx: 9 records
|
89
|
+
2000-12-31 21:41:30 qqqqqqqqqq.example.com: insert xxxxxxxxxxxxx: 99 records
|
90
|
+
2000-12-31 21:41:30 ffffffffff.example.com: insert xxxxxxxxx: 9 records
|
91
|
+
2000-12-31 21:41:31 ssssssssss.example.com: insert xxxxxxxx: 9999 records
|
92
|
+
2000-12-31 21:41:31 iiiiiiiiii.example.com: insert xxxxxxxxxxxx: 9 records
|
93
|
+
2000-12-31 21:41:31 #2: (8290) end
|
94
|
+
2000-12-31 21:41:32 router0.example.jp: insert xxxxxxx: (9999 records in 1.22222 sec)
|
95
|
+
2000-12-31 21:41:32 router0.example.jp: insert xxxxxxxxxx: 99 records
|
96
|
+
2000-12-31 21:41:32 router0.example.jp: insert xxxxxxxxx: 9 records
|
97
|
+
2000-12-31 21:41:32 router0.example.jp: insert xxxxxxxxxxxxx: 99 records
|
98
|
+
2000-12-31 21:41:32 router0.example.jp: insert xxxxxxxxx: 9 records
|
99
|
+
2000-12-31 21:41:32 router0.example.jp: insert xxxxxxxx: 9 records
|
100
|
+
2000-12-31 21:41:32 router0.example.jp: insert xxxxxxxxxxxx: 9 records
|
101
|
+
2000-12-31 21:41:33 #1: (8289) end
|
102
|
+
2000-12-31 21:41:33 waiting children, done (pid 8277)
|
103
|
+
2000-12-31 21:41:33 foobar unknown: elapsed 11.222222 sec
|
104
|
+
2000-12-31 21:41:33 unlocked: "/tmp/zzzfoobaror-lock" (pid 8277)
|
105
|
+
2000-12-31 21:41:33 END: foobarorController (pid 8277)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'test/unit'
|
3
|
+
require 'pp'
|
4
|
+
|
5
|
+
$test_dir = File.expand_path File.dirname(__FILE__)
|
6
|
+
$:.unshift $test_dir
|
7
|
+
$:.unshift($test_dir + '/../lib')
|
8
|
+
require 'pmux'
|
9
|
+
$test = true
|
10
|
+
$debug = true
|
11
|
+
|
12
|
+
begin
|
13
|
+
require 'rubygems'
|
14
|
+
require 'test/unit/ui/console/testrunner'
|
15
|
+
require 'term/ansicolor'
|
16
|
+
Term::ANSIColor::coloring = STDERR.tty?
|
17
|
+
module Test
|
18
|
+
module Unit
|
19
|
+
module UI
|
20
|
+
module Console
|
21
|
+
class TestRunner
|
22
|
+
include Term::ANSIColor
|
23
|
+
def output_single(something, level=NORMAL)
|
24
|
+
if output?(level)
|
25
|
+
@io.write(send(something == '.' ? 'on_green' : 'on_red', something))
|
26
|
+
end
|
27
|
+
@io.flush
|
28
|
+
end
|
29
|
+
def output(something, level=NORMAL)
|
30
|
+
if output?(level)
|
31
|
+
if something.respond_to?('passed?')
|
32
|
+
@io.puts(send(something.passed? ? 'on_green' : 'on_red', something.to_s))
|
33
|
+
else
|
34
|
+
@io.puts(something)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
@io.flush
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
rescue LoadError
|
45
|
+
end
|
46
|
+
|
47
|
+
module Test
|
48
|
+
module Unit
|
49
|
+
module Assertions
|
50
|
+
alias ae assert_equal
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
unless ARGV.grep(/--show-log/).empty?
|
56
|
+
$show_log = true
|
57
|
+
end
|
metadata
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pmux
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- maebashi
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: msgpack-rpc
|
16
|
+
requirement: &130782920 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *130782920
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: net-scp
|
27
|
+
requirement: &130782420 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *130782420
|
36
|
+
description: lightweight file-based MapReduce system
|
37
|
+
email:
|
38
|
+
executables:
|
39
|
+
- pmux
|
40
|
+
extensions: []
|
41
|
+
extra_rdoc_files: []
|
42
|
+
files:
|
43
|
+
- .gitignore
|
44
|
+
- README.md
|
45
|
+
- Rakefile
|
46
|
+
- bin/pmux
|
47
|
+
- lib/pmux.rb
|
48
|
+
- lib/pmux/application.rb
|
49
|
+
- lib/pmux/cleaner.rb
|
50
|
+
- lib/pmux/fiber18.rb
|
51
|
+
- lib/pmux/fixcmd.rb
|
52
|
+
- lib/pmux/gatherer.rb
|
53
|
+
- lib/pmux/handler.rb
|
54
|
+
- lib/pmux/job.rb
|
55
|
+
- lib/pmux/joblogger.rb
|
56
|
+
- lib/pmux/mapper.rb
|
57
|
+
- lib/pmux/mros.rb
|
58
|
+
- lib/pmux/multi_session.rb
|
59
|
+
- lib/pmux/pipeio.rb
|
60
|
+
- lib/pmux/plugin.rb
|
61
|
+
- lib/pmux/q.rb
|
62
|
+
- lib/pmux/reducer.rb
|
63
|
+
- lib/pmux/storage_adapter.rb
|
64
|
+
- lib/pmux/task_dispatcher.rb
|
65
|
+
- lib/pmux/task_queue.rb
|
66
|
+
- lib/pmux/task_scheduler.rb
|
67
|
+
- lib/pmux/util_daemon.rb
|
68
|
+
- lib/pmux/util_logger.rb
|
69
|
+
- lib/pmux/version.rb
|
70
|
+
- lib/pmux/worker.rb
|
71
|
+
- lib/pmux/writer.rb
|
72
|
+
- pmux.gemspec
|
73
|
+
- test/mock_mros.rb
|
74
|
+
- test/mock_pipeio.rb
|
75
|
+
- test/mock_world.rb
|
76
|
+
- test/mock_xattr.rb
|
77
|
+
- test/runner.rb
|
78
|
+
- test/test_application.rb
|
79
|
+
- test/test_fixcmd.rb
|
80
|
+
- test/test_handler.rb
|
81
|
+
- test/test_i_mapreduce.rb
|
82
|
+
- test/test_i_mros.rb
|
83
|
+
- test/test_i_msession.rb
|
84
|
+
- test/test_job.rb
|
85
|
+
- test/test_joblogger.rb
|
86
|
+
- test/test_mapper.rb
|
87
|
+
- test/test_pipeio.rb
|
88
|
+
- test/test_storage_adapter.rb
|
89
|
+
- test/test_task_queue.rb
|
90
|
+
- test/test_task_scheduler.rb
|
91
|
+
- test/txt/0.log
|
92
|
+
- test/txt/1.log
|
93
|
+
- test/txt/2.log
|
94
|
+
- test/txt/3.log
|
95
|
+
- test/txt/4.log
|
96
|
+
- test/txt/5.log
|
97
|
+
- test/txt/6.log
|
98
|
+
- test/txt/7.log
|
99
|
+
- test/txt/8.log
|
100
|
+
- test/unittest_helper.rb
|
101
|
+
homepage: ''
|
102
|
+
licenses: []
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
requirements: []
|
120
|
+
rubyforge_project: pmux
|
121
|
+
rubygems_version: 1.8.11
|
122
|
+
signing_key:
|
123
|
+
specification_version: 3
|
124
|
+
summary: lightweight file-based MapReduce system
|
125
|
+
test_files:
|
126
|
+
- test/mock_mros.rb
|
127
|
+
- test/mock_pipeio.rb
|
128
|
+
- test/mock_world.rb
|
129
|
+
- test/mock_xattr.rb
|
130
|
+
- test/runner.rb
|
131
|
+
- test/test_application.rb
|
132
|
+
- test/test_fixcmd.rb
|
133
|
+
- test/test_handler.rb
|
134
|
+
- test/test_i_mapreduce.rb
|
135
|
+
- test/test_i_mros.rb
|
136
|
+
- test/test_i_msession.rb
|
137
|
+
- test/test_job.rb
|
138
|
+
- test/test_joblogger.rb
|
139
|
+
- test/test_mapper.rb
|
140
|
+
- test/test_pipeio.rb
|
141
|
+
- test/test_storage_adapter.rb
|
142
|
+
- test/test_task_queue.rb
|
143
|
+
- test/test_task_scheduler.rb
|
144
|
+
- test/txt/0.log
|
145
|
+
- test/txt/1.log
|
146
|
+
- test/txt/2.log
|
147
|
+
- test/txt/3.log
|
148
|
+
- test/txt/4.log
|
149
|
+
- test/txt/5.log
|
150
|
+
- test/txt/6.log
|
151
|
+
- test/txt/7.log
|
152
|
+
- test/txt/8.log
|
153
|
+
- test/unittest_helper.rb
|