rboss 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/lib/rboss/jboss_profile.rb +2 -2
- data/lib/rboss/table_builder.rb +4 -6
- data/lib/rboss/twiddle/monitor.rb +1 -1
- data/lib/rboss/version.rb +1 -1
- metadata +2 -2
data/Gemfile
CHANGED
data/lib/rboss/jboss_profile.rb
CHANGED
@@ -125,8 +125,8 @@ module JBoss
|
|
125
125
|
unless @logger
|
126
126
|
@logger = Logger::new STDOUT
|
127
127
|
@logger.level = opts[:log_level] || Logger::INFO
|
128
|
-
formatter = Yummi::Formatter::LogFormatter.new do |severity,
|
129
|
-
"#{severity} : #{message}
|
128
|
+
formatter = Yummi::Formatter::LogFormatter.new do |severity, message|
|
129
|
+
"#{severity} : #{message}"
|
130
130
|
end
|
131
131
|
|
132
132
|
@logger.formatter = formatter
|
data/lib/rboss/table_builder.rb
CHANGED
@@ -36,11 +36,9 @@ class TableBuilder
|
|
36
36
|
if params[:health]
|
37
37
|
@table.row_colorizer HealthColorizer::new params[:health]
|
38
38
|
end
|
39
|
-
if params[:
|
40
|
-
params[:
|
41
|
-
@table.format column
|
42
|
-
Yummi::Formatter::Unit.format :byte, value.to_i
|
43
|
-
end
|
39
|
+
if params[:byte_formatter]
|
40
|
+
params[:byte_formatter].each do |column|
|
41
|
+
@table.format column, :using => Yummi::Formatters::byte
|
44
42
|
end
|
45
43
|
end
|
46
44
|
end
|
@@ -67,7 +65,7 @@ class HealthColorizer
|
|
67
65
|
@using = params[:using]
|
68
66
|
end
|
69
67
|
|
70
|
-
def call
|
68
|
+
def call data, index
|
71
69
|
max = data[@max].to_f
|
72
70
|
free = @using ? max - data[@using].to_f : data[@free].to_f
|
73
71
|
|
@@ -100,7 +100,7 @@ module JBoss
|
|
100
100
|
:header => ["Active Threads", "Max Memory", "Free Memory",
|
101
101
|
"Processors", "Java Vendor", "Java Version", "OS Name", "OS Arch"],
|
102
102
|
:layout => :vertical,
|
103
|
-
:
|
103
|
+
:byte_formatter => [:max_memory, :free_memory],
|
104
104
|
:health => {
|
105
105
|
:max => :max_memory,
|
106
106
|
:free => :free_memory
|
data/lib/rboss/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-17 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! "A tool to create profiles for JBoss Application Server and use\n twiddle
|
15
15
|
to manage a running JBoss AS."
|