flare-tools 0.4.5.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +24 -0
- data/.travis.yml +15 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +28 -0
- data/History.txt +5 -0
- data/Makefile +25 -0
- data/README.txt +2 -2
- data/Rakefile +36 -34
- data/flare-tools.gemspec +26 -0
- data/lib/flare/entity/server.rb +4 -0
- data/lib/flare/tools.rb +3 -3
- data/lib/flare/tools/cli.rb +1 -0
- data/lib/flare/tools/cli/activate.rb +19 -13
- data/lib/flare/tools/cli/balance.rb +15 -8
- data/lib/flare/tools/cli/deploy.rb +53 -49
- data/lib/flare/tools/cli/dispatch.rb +101 -0
- data/lib/flare/tools/cli/down.rb +19 -14
- data/lib/flare/tools/cli/dump.rb +19 -14
- data/lib/flare/tools/cli/dumpkey.rb +21 -16
- data/lib/flare/tools/cli/flare_admin.rb +16 -72
- data/lib/flare/tools/cli/flare_argv0.rb +7 -51
- data/lib/flare/tools/cli/index.rb +10 -7
- data/lib/flare/tools/cli/index_server_config.rb +94 -0
- data/lib/flare/tools/cli/list.rb +14 -12
- data/lib/flare/tools/cli/master.rb +18 -12
- data/lib/flare/tools/cli/option.rb +55 -0
- data/lib/flare/tools/cli/part.rb +13 -12
- data/lib/flare/tools/cli/ping.rb +11 -13
- data/lib/flare/tools/cli/reconstruct.rb +22 -15
- data/lib/flare/tools/cli/remove.rb +20 -17
- data/lib/flare/tools/cli/restore.rb +20 -20
- data/lib/flare/tools/cli/slave.rb +20 -14
- data/lib/flare/tools/cli/stats.rb +171 -118
- data/lib/flare/tools/cli/sub_command.rb +16 -5
- data/lib/flare/tools/cli/summary.rb +12 -10
- data/lib/flare/tools/cli/threads.rb +15 -9
- data/lib/flare/tools/cli/verify.rb +20 -18
- data/lib/flare/tools/cluster.rb +3 -2
- data/lib/flare/util/constant.rb +3 -0
- data/lib/flare/util/pretty_table.rb +8 -0
- data/lib/flare/util/pretty_table/column.rb +41 -0
- data/lib/flare/util/pretty_table/row.rb +29 -0
- data/lib/flare/util/pretty_table/table.rb +37 -0
- data/package/Rakefile +44 -0
- data/package/flare-tools/Makefile +23 -0
- data/package/flare-tools/debian/changelog +135 -0
- data/package/flare-tools/debian/compat +1 -0
- data/package/flare-tools/debian/control +20 -0
- data/package/flare-tools/debian/copyright +35 -0
- data/package/flare-tools/debian/dirs +2 -0
- data/{.gemtest → package/flare-tools/debian/docs} +0 -0
- data/package/flare-tools/debian/rules +125 -0
- data/test/{test/experimental → experimental}/cache_test.rb +0 -0
- data/test/{test/experimental → experimental}/key_distribution_test.rb +0 -0
- data/test/{test/experimental → experimental}/keychecker_test.rb +0 -0
- data/test/{test/experimental → experimental}/list_test.rb +0 -0
- data/test/{test/extra → extra}/replication_test.rb +0 -0
- data/test/{test/integration → integration}/cli_test.rb +9 -7
- data/test/{test/integration → integration}/dump_expired_test.rb +4 -3
- data/test/{test/integration → integration}/dump_test.rb +5 -5
- data/test/{test/integration → integration}/index_server_test.rb +1 -1
- data/test/{test/integration → integration}/node_test.rb +1 -1
- data/test/{test/integration → integration}/partition_test.rb +6 -5
- data/test/{test/integration → integration}/proxy_test.rb +4 -3
- data/test/{test/integration → integration}/stats_test.rb +1 -1
- data/test/integration/subcommands.rb +128 -0
- data/test/{test/system → system}/flare_admin_test.rb +7 -5
- data/test/{test/unit → unit}/bwlimit_test.rb +0 -0
- data/test/{test/unit → unit}/cluster_test.rb +1 -1
- data/test/{test/unit → unit}/daemon_test.rb +0 -0
- data/test/{test/unit → unit}/logger_test.rb +0 -0
- data/test/{test/unit → unit}/tools_test.rb +0 -0
- data/test/unit/util/pretty_table_test.rb +46 -0
- data/test/{test/unit → unit}/util_test.rb +7 -2
- metadata +88 -100
- data/PostInstall.txt +0 -7
- data/lib/flare/tools/cli/cli_util.rb +0 -77
- data/lib/flare/util/command_line.rb +0 -79
@@ -2,7 +2,7 @@
|
|
2
2
|
# -*- coding: utf-8; -*-
|
3
3
|
|
4
4
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
5
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__)+"
|
5
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../lib")
|
6
6
|
|
7
7
|
require 'test/unit'
|
8
8
|
require 'flare/tools'
|
@@ -92,15 +92,16 @@ class PartitionTest < Test::Unit::TestCase
|
|
92
92
|
}
|
93
93
|
sleep 1 # XXX
|
94
94
|
@flare_cluster.wait_for_ready
|
95
|
+
|
96
|
+
@nodes = @node_servers.map {|node| node.open}
|
97
|
+
@wait = 0.005
|
95
98
|
@config = {
|
96
99
|
:command => 'dummy',
|
97
|
-
:index_server_hostname => @flare_cluster.indexname,
|
98
|
-
:index_server_port => @flare_cluster.indexport,
|
99
100
|
:dry_run => false,
|
100
101
|
:timeout => 10
|
101
102
|
}
|
102
|
-
@
|
103
|
-
@
|
103
|
+
@index_server_hostname = @flare_cluster.indexname
|
104
|
+
@index_server_port = @flare_cluster.indexport
|
104
105
|
end
|
105
106
|
|
106
107
|
def teardown
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# -*- coding: utf-8; -*-
|
3
3
|
|
4
4
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
5
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__)+"
|
5
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__)+"/../../lib")
|
6
6
|
|
7
7
|
require 'test/unit'
|
8
8
|
require 'flare/tools'
|
@@ -17,13 +17,14 @@ class ProxyTest < Test::Unit::TestCase
|
|
17
17
|
@node_servers = ['node1', 'node2', 'node3'].map {|name| @flare_cluster.create_node(name)}
|
18
18
|
sleep 1 # XXX
|
19
19
|
@flare_cluster.wait_for_ready
|
20
|
+
|
20
21
|
@config = {
|
21
22
|
:command => 'dummy',
|
22
|
-
:index_server_hostname => @flare_cluster.indexname,
|
23
|
-
:index_server_port => @flare_cluster.indexport,
|
24
23
|
:dry_run => false,
|
25
24
|
:timeout => 10
|
26
25
|
}
|
26
|
+
@index_server_hostname = @flare_cluster.indexname
|
27
|
+
@index_server_port = @flare_cluster.indexport
|
27
28
|
end
|
28
29
|
|
29
30
|
def teardown
|
@@ -0,0 +1,128 @@
|
|
1
|
+
|
2
|
+
require 'test/unit'
|
3
|
+
require 'flare/tools'
|
4
|
+
require 'flare/tools/cli'
|
5
|
+
require 'flare/test/cluster'
|
6
|
+
|
7
|
+
module Subcommands
|
8
|
+
|
9
|
+
S_OK = 0
|
10
|
+
S_NG = 1
|
11
|
+
|
12
|
+
def instantiate(cls, args)
|
13
|
+
subc = cls.new
|
14
|
+
subc.setup
|
15
|
+
subc.optp.parse!(args)
|
16
|
+
subc
|
17
|
+
end
|
18
|
+
|
19
|
+
def ping(*args)
|
20
|
+
subc = instantiate(Flare::Tools::Cli::Ping, args)
|
21
|
+
subc.execute(@config.merge({:command => 'ping'}), args)
|
22
|
+
end
|
23
|
+
|
24
|
+
def list(*args)
|
25
|
+
args << "--index-server" << @index_server_hostname
|
26
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
27
|
+
subc = instantiate(Flare::Tools::Cli::List, args)
|
28
|
+
subc.execute(@config.merge({:command => 'list'}), args)
|
29
|
+
end
|
30
|
+
|
31
|
+
def stats(*args)
|
32
|
+
args << "--index-server" << @index_server_hostname
|
33
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
34
|
+
subc = instantiate(Flare::Tools::Cli::Stats, args)
|
35
|
+
subc.execute(@config.merge({:command => 'stats'}), args)
|
36
|
+
end
|
37
|
+
|
38
|
+
def down(*args)
|
39
|
+
args << "--index-server" << @index_server_hostname
|
40
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
41
|
+
args << "--force"
|
42
|
+
subc = instantiate(Flare::Tools::Cli::Down, args)
|
43
|
+
subc.execute(@config.merge({:command => 'down'}), args)
|
44
|
+
end
|
45
|
+
|
46
|
+
def activate(*args)
|
47
|
+
args << "--index-server" << @index_server_hostname
|
48
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
49
|
+
args << "--force"
|
50
|
+
subc = instantiate(Flare::Tools::Cli::Activate, args)
|
51
|
+
subc.execute(@config.merge({:command => 'activate'}), args)
|
52
|
+
end
|
53
|
+
|
54
|
+
def slave(*args)
|
55
|
+
args << "--index-server" << @index_server_hostname
|
56
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
57
|
+
args << "--force"
|
58
|
+
subc = instantiate(Flare::Tools::Cli::Slave, args)
|
59
|
+
subc.execute(@config.merge({:command => 'slave'}), args)
|
60
|
+
end
|
61
|
+
|
62
|
+
def balance(*args)
|
63
|
+
args << "--index-server" << @index_server_hostname
|
64
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
65
|
+
args << "--force"
|
66
|
+
subc = instantiate(Flare::Tools::Cli::Balance, args)
|
67
|
+
subc.execute(@config.merge({:command => 'balance'}), args)
|
68
|
+
end
|
69
|
+
|
70
|
+
def reconstruct(*args)
|
71
|
+
args << "--index-server" << @index_server_hostname
|
72
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
73
|
+
args << "--force"
|
74
|
+
subc = instantiate(Flare::Tools::Cli::Reconstruct, args)
|
75
|
+
subc.execute(@config.merge({:command => 'reconstruct'}), args)
|
76
|
+
end
|
77
|
+
|
78
|
+
def index(*args)
|
79
|
+
args << "--index-server" << @index_server_hostname
|
80
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
81
|
+
subc = instantiate(Flare::Tools::Cli::Index, args)
|
82
|
+
subc.execute(@config.merge({:command => 'index'}), args)
|
83
|
+
end
|
84
|
+
|
85
|
+
def remove(*args)
|
86
|
+
args << "--index-server" << @index_server_hostname
|
87
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
88
|
+
args << "--force"
|
89
|
+
subc = instantiate(Flare::Tools::Cli::Remove, args)
|
90
|
+
subc.execute(@config.merge({:command => 'remove'}), args)
|
91
|
+
end
|
92
|
+
|
93
|
+
def master(*args)
|
94
|
+
args << "--index-server" << @index_server_hostname
|
95
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
96
|
+
args << "--force"
|
97
|
+
subc = instantiate(Flare::Tools::Cli::Master, args)
|
98
|
+
subc.execute(@config.merge({:command => 'master'}), args)
|
99
|
+
end
|
100
|
+
|
101
|
+
def dump(*args)
|
102
|
+
args << "--index-server" << @index_server_hostname
|
103
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
104
|
+
subc = instantiate(Flare::Tools::Cli::Dump, args)
|
105
|
+
subc.execute(@config.merge({:command => 'dump'}), args)
|
106
|
+
end
|
107
|
+
|
108
|
+
def dumpkey(*args)
|
109
|
+
args << "--index-server" << @index_server_hostname
|
110
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
111
|
+
subc = instantiate(Flare::Tools::Cli::Dumpkey, args)
|
112
|
+
subc.execute(@config.merge({:command => 'dumpkey'}), args)
|
113
|
+
end
|
114
|
+
|
115
|
+
def verify(*args)
|
116
|
+
args << "--index-server" << @index_server_hostname
|
117
|
+
args << "--index-server-port" << @index_server_port.to_s unless @index_server_port.nil?
|
118
|
+
puts "args: "+args.join(' ')
|
119
|
+
subc = instantiate(Flare::Tools::Cli::Verify, args)
|
120
|
+
subc.execute(@config.merge({:command => 'verify'}), args)
|
121
|
+
end
|
122
|
+
|
123
|
+
def restore(*args)
|
124
|
+
subc = instantiate(Flare::Tools::Cli::Restore, args)
|
125
|
+
subc.execute(@config.merge({:command => 'restore'}), args)
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
# -*- coding: utf-8; -*-
|
3
3
|
|
4
|
-
$LOAD_PATH.unshift File.dirname(__FILE__)+"
|
4
|
+
$LOAD_PATH.unshift File.dirname(__FILE__)+"/../../lib"
|
5
5
|
|
6
6
|
require 'test/unit'
|
7
7
|
require 'flare/tools'
|
@@ -10,7 +10,7 @@ require 'flare/test/cluster'
|
|
10
10
|
ENV['FLARE_INDEX_SERVER'] = nil
|
11
11
|
|
12
12
|
class FlareAdminTest < Test::Unit::TestCase
|
13
|
-
Admin = "
|
13
|
+
Admin = "./bin/flare-admin"
|
14
14
|
S_OK = 0
|
15
15
|
S_NG = 1
|
16
16
|
|
@@ -30,14 +30,14 @@ class FlareAdminTest < Test::Unit::TestCase
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def flare_admin_with_yes arg
|
33
|
-
cmd = "yes | #{Admin} #{arg}"
|
33
|
+
cmd = "yes | ruby #{Admin} #{arg}"
|
34
34
|
puts "> #{cmd}"
|
35
35
|
puts `#{cmd}`
|
36
36
|
$?.exitstatus
|
37
37
|
end
|
38
38
|
|
39
39
|
def flare_admin arg
|
40
|
-
cmd = "#{Admin} #{arg}"
|
40
|
+
cmd = "ruby #{Admin} #{arg}"
|
41
41
|
puts "> #{cmd}"
|
42
42
|
puts `#{cmd}`
|
43
43
|
$?.exitstatus
|
@@ -71,7 +71,9 @@ class FlareAdminTest < Test::Unit::TestCase
|
|
71
71
|
assert_equal(S_NG, $?.exitstatus)
|
72
72
|
flare_admin "list --log-file=''"
|
73
73
|
assert_equal(S_NG, $?.exitstatus)
|
74
|
-
|
74
|
+
flare_admin_with_yes "down #{@opt_index} --dry-run #{@datanodes[0].hostname}:#{@datanodes[0].port}"
|
75
|
+
assert_equal(S_OK, $?.exitstatus)
|
76
|
+
flare_admin "list #{@opt_index} --timeout=20"
|
75
77
|
assert_equal(S_OK, $?.exitstatus)
|
76
78
|
end
|
77
79
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# -*- coding: utf-8; -*-
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.dirname(__FILE__)+"/../lib"
|
4
|
+
|
5
|
+
require 'test/unit'
|
6
|
+
require 'flare/util/pretty_table'
|
7
|
+
class PrettyTableTest < Test::Unit::TestCase
|
8
|
+
include Flare::Util::PrettyTable
|
9
|
+
|
10
|
+
def test_pretty_table
|
11
|
+
expect = <<EOF.strip
|
12
|
+
abc defghi jklm
|
13
|
+
1 foo_bar_baz 1.11
|
14
|
+
2 foo 0.00
|
15
|
+
EOF
|
16
|
+
table = Table.new
|
17
|
+
row = Row.new
|
18
|
+
row.add_column(Column.new('abc'))
|
19
|
+
row.add_column(Column.new('defghi'))
|
20
|
+
row.add_column(Column.new('jklm'))
|
21
|
+
table.add_row(row)
|
22
|
+
row = Row.new
|
23
|
+
row.add_column(Column.new(1, :align => :right))
|
24
|
+
row.add_column(Column.new('foo_bar_baz'))
|
25
|
+
row.add_column(Column.new('1.11'))
|
26
|
+
table.add_row(row)
|
27
|
+
row = Row.new
|
28
|
+
row.add_column(Column.new(2, :align => :right))
|
29
|
+
row.add_column(Column.new('foo'))
|
30
|
+
row.add_column(Column.new('0.00'))
|
31
|
+
table.add_row(row)
|
32
|
+
|
33
|
+
assert_equal(expect, table.prettify)
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_column_separator
|
37
|
+
expect = "abc\tdefghi\tjklm"
|
38
|
+
|
39
|
+
row = Row.new(:separator => "\t")
|
40
|
+
row.add_column(Column.new('abc'))
|
41
|
+
row.add_column(Column.new('defghi'))
|
42
|
+
row.add_column(Column.new('jklm'))
|
43
|
+
|
44
|
+
assert_equal(expect, row.prettify(0))
|
45
|
+
end
|
46
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
# -*- coding: utf-8; -*-
|
3
3
|
|
4
|
-
$LOAD_PATH.unshift File.dirname(__FILE__)+"
|
4
|
+
$LOAD_PATH.unshift File.dirname(__FILE__)+"/../../lib"
|
5
5
|
|
6
6
|
require 'test/unit'
|
7
7
|
require 'flare/util/result.rb'
|
@@ -44,9 +44,14 @@ class UtilTest < Test::Unit::TestCase
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def test_interruption1
|
47
|
-
|
47
|
+
_ = Interruption.new
|
48
|
+
|
48
49
|
assert_raise InterruptionTestException do
|
49
50
|
Process.kill :INT, Process.pid
|
51
|
+
|
52
|
+
# sleep needed.
|
53
|
+
# https://github.com/ruby/ruby/blob/2ebafed88a665dcaaf4fb58b8c3fd0809db8fa2c/test/ruby/test_signal.rb#L21
|
54
|
+
sleep 0.1
|
50
55
|
end
|
51
56
|
end
|
52
57
|
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flare-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- kikehara
|
9
|
+
- Yuya YAGUCHI
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2014-
|
13
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: log4r
|
@@ -18,7 +19,7 @@ dependencies:
|
|
18
19
|
requirements:
|
19
20
|
- - ! '>='
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.1.
|
22
|
+
version: 1.1.10
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,23 +27,7 @@ dependencies:
|
|
26
27
|
requirements:
|
27
28
|
- - ! '>='
|
28
29
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.1.
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: zookeeper
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 1.2.6
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.2.6
|
30
|
+
version: 1.1.10
|
46
31
|
- !ruby/object:Gem::Dependency
|
47
32
|
name: tokyocabinet
|
48
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,29 +45,13 @@ dependencies:
|
|
60
45
|
- !ruby/object:Gem::Version
|
61
46
|
version: '1.29'
|
62
47
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '4.0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '4.0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: newgem
|
48
|
+
name: bundler
|
80
49
|
requirement: !ruby/object:Gem::Requirement
|
81
50
|
none: false
|
82
51
|
requirements:
|
83
52
|
- - ! '>='
|
84
53
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.
|
54
|
+
version: '1.6'
|
86
55
|
type: :development
|
87
56
|
prerelease: false
|
88
57
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,27 +59,28 @@ dependencies:
|
|
90
59
|
requirements:
|
91
60
|
- - ! '>='
|
92
61
|
- !ruby/object:Gem::Version
|
93
|
-
version: 1.
|
62
|
+
version: '1.6'
|
94
63
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
64
|
+
name: rake
|
96
65
|
requirement: !ruby/object:Gem::Requirement
|
97
66
|
none: false
|
98
67
|
requirements:
|
99
|
-
- -
|
68
|
+
- - ! '>='
|
100
69
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
70
|
+
version: '0'
|
102
71
|
type: :development
|
103
72
|
prerelease: false
|
104
73
|
version_requirements: !ruby/object:Gem::Requirement
|
105
74
|
none: false
|
106
75
|
requirements:
|
107
|
-
- -
|
76
|
+
- - ! '>='
|
108
77
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
78
|
+
version: '0'
|
110
79
|
description: Flare-tools is a collection of tools for Flare distributed key-value
|
111
80
|
store.
|
112
81
|
email:
|
113
82
|
- kiyoshi.ikehara@gree.net
|
83
|
+
- yuya.yaguchi@gree.net
|
114
84
|
executables:
|
115
85
|
- flare-admin
|
116
86
|
- flare-argv0
|
@@ -121,19 +91,17 @@ executables:
|
|
121
91
|
- flare-stats
|
122
92
|
- flare-zkadmin
|
123
93
|
extensions: []
|
124
|
-
extra_rdoc_files:
|
125
|
-
- Flare-tools.txt
|
126
|
-
- History.txt
|
127
|
-
- Manifest.txt
|
128
|
-
- PostInstall.txt
|
129
|
-
- README.txt
|
130
|
-
- Tutorial.txt
|
94
|
+
extra_rdoc_files: []
|
131
95
|
files:
|
96
|
+
- .gitignore
|
97
|
+
- .travis.yml
|
132
98
|
- Flare-tools.txt
|
99
|
+
- Gemfile
|
100
|
+
- Gemfile.lock
|
133
101
|
- History.txt
|
134
102
|
- LICENSE
|
103
|
+
- Makefile
|
135
104
|
- Manifest.txt
|
136
|
-
- PostInstall.txt
|
137
105
|
- README.txt
|
138
106
|
- Rakefile
|
139
107
|
- Tutorial.txt
|
@@ -145,6 +113,8 @@ files:
|
|
145
113
|
- bin/flare-ping
|
146
114
|
- bin/flare-stats
|
147
115
|
- bin/flare-zkadmin
|
116
|
+
- flare-tools.gemspec
|
117
|
+
- lib/flare/entity/server.rb
|
148
118
|
- lib/flare/net/connection.rb
|
149
119
|
- lib/flare/test/cluster.rb
|
150
120
|
- lib/flare/test/daemon.rb
|
@@ -153,8 +123,8 @@ files:
|
|
153
123
|
- lib/flare/tools/cli.rb
|
154
124
|
- lib/flare/tools/cli/activate.rb
|
155
125
|
- lib/flare/tools/cli/balance.rb
|
156
|
-
- lib/flare/tools/cli/cli_util.rb
|
157
126
|
- lib/flare/tools/cli/deploy.rb
|
127
|
+
- lib/flare/tools/cli/dispatch.rb
|
158
128
|
- lib/flare/tools/cli/down.rb
|
159
129
|
- lib/flare/tools/cli/dump.rb
|
160
130
|
- lib/flare/tools/cli/dumpkey.rb
|
@@ -163,8 +133,10 @@ files:
|
|
163
133
|
- lib/flare/tools/cli/flare_keychecker.rb
|
164
134
|
- lib/flare/tools/cli/flare_zkadmin.rb
|
165
135
|
- lib/flare/tools/cli/index.rb
|
136
|
+
- lib/flare/tools/cli/index_server_config.rb
|
166
137
|
- lib/flare/tools/cli/list.rb
|
167
138
|
- lib/flare/tools/cli/master.rb
|
139
|
+
- lib/flare/tools/cli/option.rb
|
168
140
|
- lib/flare/tools/cli/part.rb
|
169
141
|
- lib/flare/tools/cli/ping.rb
|
170
142
|
- lib/flare/tools/cli/reconstruct.rb
|
@@ -185,7 +157,6 @@ files:
|
|
185
157
|
- lib/flare/tools/zk_util.rb
|
186
158
|
- lib/flare/util.rb
|
187
159
|
- lib/flare/util/bwlimit.rb
|
188
|
-
- lib/flare/util/command_line.rb
|
189
160
|
- lib/flare/util/conf.rb
|
190
161
|
- lib/flare/util/constant.rb
|
191
162
|
- lib/flare/util/conversion.rb
|
@@ -200,35 +171,47 @@ files:
|
|
200
171
|
- lib/flare/util/log4r_logger.rb
|
201
172
|
- lib/flare/util/logger.rb
|
202
173
|
- lib/flare/util/logging.rb
|
174
|
+
- lib/flare/util/pretty_table.rb
|
175
|
+
- lib/flare/util/pretty_table/column.rb
|
176
|
+
- lib/flare/util/pretty_table/row.rb
|
177
|
+
- lib/flare/util/pretty_table/table.rb
|
203
178
|
- lib/flare/util/result.rb
|
204
|
-
-
|
205
|
-
-
|
206
|
-
-
|
207
|
-
-
|
208
|
-
-
|
209
|
-
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
-
|
213
|
-
- test/
|
214
|
-
- test/
|
215
|
-
- test/
|
216
|
-
- test/
|
217
|
-
- test/
|
218
|
-
- test/
|
219
|
-
- test/
|
220
|
-
- test/
|
221
|
-
- test/
|
222
|
-
- test/
|
223
|
-
- test/
|
224
|
-
- .
|
179
|
+
- package/Rakefile
|
180
|
+
- package/flare-tools/Makefile
|
181
|
+
- package/flare-tools/debian/changelog
|
182
|
+
- package/flare-tools/debian/compat
|
183
|
+
- package/flare-tools/debian/control
|
184
|
+
- package/flare-tools/debian/copyright
|
185
|
+
- package/flare-tools/debian/dirs
|
186
|
+
- package/flare-tools/debian/docs
|
187
|
+
- package/flare-tools/debian/rules
|
188
|
+
- test/experimental/cache_test.rb
|
189
|
+
- test/experimental/key_distribution_test.rb
|
190
|
+
- test/experimental/keychecker_test.rb
|
191
|
+
- test/experimental/list_test.rb
|
192
|
+
- test/extra/replication_test.rb
|
193
|
+
- test/integration/cli_test.rb
|
194
|
+
- test/integration/dump_expired_test.rb
|
195
|
+
- test/integration/dump_test.rb
|
196
|
+
- test/integration/index_server_test.rb
|
197
|
+
- test/integration/node_test.rb
|
198
|
+
- test/integration/partition_test.rb
|
199
|
+
- test/integration/proxy_test.rb
|
200
|
+
- test/integration/stats_test.rb
|
201
|
+
- test/integration/subcommands.rb
|
202
|
+
- test/system/flare_admin_test.rb
|
203
|
+
- test/unit/bwlimit_test.rb
|
204
|
+
- test/unit/cluster_test.rb
|
205
|
+
- test/unit/daemon_test.rb
|
206
|
+
- test/unit/logger_test.rb
|
207
|
+
- test/unit/tools_test.rb
|
208
|
+
- test/unit/util/pretty_table_test.rb
|
209
|
+
- test/unit/util_test.rb
|
225
210
|
homepage: http://github.com/gree/flare-tools
|
226
211
|
licenses:
|
227
212
|
- MIT
|
228
|
-
post_install_message:
|
229
|
-
rdoc_options:
|
230
|
-
- --main
|
231
|
-
- README.txt
|
213
|
+
post_install_message:
|
214
|
+
rdoc_options: []
|
232
215
|
require_paths:
|
233
216
|
- lib
|
234
217
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -237,6 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
220
|
- - ! '>='
|
238
221
|
- !ruby/object:Gem::Version
|
239
222
|
version: '0'
|
223
|
+
segments:
|
224
|
+
- 0
|
225
|
+
hash: 54780071370042886
|
240
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
227
|
none: false
|
242
228
|
requirements:
|
@@ -244,29 +230,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
230
|
- !ruby/object:Gem::Version
|
245
231
|
version: '0'
|
246
232
|
requirements: []
|
247
|
-
rubyforge_project:
|
233
|
+
rubyforge_project:
|
248
234
|
rubygems_version: 1.8.23
|
249
235
|
signing_key:
|
250
236
|
specification_version: 3
|
251
237
|
summary: Management Tools for Flare
|
252
238
|
test_files:
|
253
|
-
- test/
|
254
|
-
- test/
|
255
|
-
- test/
|
256
|
-
- test/
|
257
|
-
- test/
|
258
|
-
- test/
|
259
|
-
- test/
|
260
|
-
- test/
|
261
|
-
- test/
|
262
|
-
- test/
|
263
|
-
- test/
|
264
|
-
- test/
|
265
|
-
- test/
|
266
|
-
- test/
|
267
|
-
- test/
|
268
|
-
- test/
|
269
|
-
- test/
|
270
|
-
- test/
|
271
|
-
- test/
|
272
|
-
- test/
|
239
|
+
- test/experimental/cache_test.rb
|
240
|
+
- test/experimental/key_distribution_test.rb
|
241
|
+
- test/experimental/keychecker_test.rb
|
242
|
+
- test/experimental/list_test.rb
|
243
|
+
- test/extra/replication_test.rb
|
244
|
+
- test/integration/cli_test.rb
|
245
|
+
- test/integration/dump_expired_test.rb
|
246
|
+
- test/integration/dump_test.rb
|
247
|
+
- test/integration/index_server_test.rb
|
248
|
+
- test/integration/node_test.rb
|
249
|
+
- test/integration/partition_test.rb
|
250
|
+
- test/integration/proxy_test.rb
|
251
|
+
- test/integration/stats_test.rb
|
252
|
+
- test/integration/subcommands.rb
|
253
|
+
- test/system/flare_admin_test.rb
|
254
|
+
- test/unit/bwlimit_test.rb
|
255
|
+
- test/unit/cluster_test.rb
|
256
|
+
- test/unit/daemon_test.rb
|
257
|
+
- test/unit/logger_test.rb
|
258
|
+
- test/unit/tools_test.rb
|
259
|
+
- test/unit/util/pretty_table_test.rb
|
260
|
+
- test/unit/util_test.rb
|