rboss 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +26 -26
- data/lib/rboss/twiddle/monitor.rb +4 -0
- data/lib/rboss/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -156,41 +156,41 @@ The components included are defined in the following files:
|
|
156
156
|
* /lib/rboss/view/formatters.rb
|
157
157
|
* /lib/rboss/view/health_checkers.rb
|
158
158
|
|
159
|
-
Using twiddle
|
159
|
+
Using rboss-twiddle
|
160
160
|
-----------
|
161
161
|
|
162
162
|
### Basics
|
163
163
|
|
164
164
|
Simply do a "cd" to your JBoss Home and use it
|
165
165
|
|
166
|
-
twiddle --help
|
166
|
+
rboss-twiddle --help
|
167
167
|
|
168
168
|
You can scan resources like: datasources, queues, connectors, webapps, ...
|
169
169
|
|
170
|
-
twiddle --datasource --webapp
|
171
|
-
twiddle --all
|
170
|
+
rboss-twiddle --datasource --webapp
|
171
|
+
rboss-twiddle --all
|
172
172
|
|
173
173
|
If you don't need to scan for resources, you can specify them for monitoring:
|
174
174
|
|
175
|
-
twiddle --webapp jmx-console,admin-console
|
175
|
+
rboss-twiddle --webapp jmx-console,admin-console
|
176
176
|
|
177
177
|
Combine with "watch" to get a simple and instantly monitoring:
|
178
178
|
|
179
|
-
watch --interval=1 twiddle --webapp jmx-console,admin-console
|
179
|
+
watch --interval=1 rboss-twiddle --webapp jmx-console,admin-console
|
180
180
|
|
181
181
|
Retrieve property values with --get:
|
182
182
|
|
183
|
-
twiddle --get webapp:jmx-console,maxSessions
|
184
|
-
twiddle --get server-info,FreeMemory
|
183
|
+
rboss-twiddle --get webapp:jmx-console,maxSessions
|
184
|
+
rboss-twiddle --get server-info,FreeMemory
|
185
185
|
|
186
186
|
Set values with --set:
|
187
187
|
|
188
|
-
twiddle --set connector:http-127.0.0.1-8080,maxThreads,350
|
188
|
+
rboss-twiddle --set connector:http-127.0.0.1-8080,maxThreads,350
|
189
189
|
|
190
190
|
Execute commands with --invoke:
|
191
191
|
|
192
|
-
twiddle --invoke server,shutdown
|
193
|
-
twiddle --invoke web-deployment:jmx-console,stop
|
192
|
+
rboss-twiddle --invoke server,shutdown
|
193
|
+
rboss-twiddle --invoke web-deployment:jmx-console,stop
|
194
194
|
|
195
195
|
Extending mbeans
|
196
196
|
|
@@ -204,23 +204,23 @@ You can use a file in ~/.rboss/twiddle.rb for mapping new mbeans or overriding t
|
|
204
204
|
|
205
205
|
And use it normally
|
206
206
|
|
207
|
-
twiddle --http-request
|
207
|
+
rboss- twiddle --http-request
|
208
208
|
|
209
209
|
You can do every action using custom mbeans
|
210
210
|
|
211
|
-
twiddle --invoke http-request,resetCounters
|
211
|
+
rboss-twiddle --invoke http-request,resetCounters
|
212
212
|
|
213
213
|
Configurations can be saved using --save
|
214
214
|
|
215
|
-
twiddle --save jon --port 2099
|
215
|
+
rboss-twiddle --save jon --port 2099
|
216
216
|
|
217
217
|
And used with -c or --config
|
218
218
|
|
219
|
-
twiddle -c jon --server-config
|
219
|
+
rboss-twiddle -c jon --server-config
|
220
220
|
|
221
221
|
### Customizing MBeans
|
222
222
|
|
223
|
-
Every time you run the twiddle command, this gem will load the ~/.rboss/rboss.rb file,
|
223
|
+
Every time you run the rboss-twiddle command, this gem will load the ~/.rboss/rboss.rb file,
|
224
224
|
which can be used to customize the mbeans.
|
225
225
|
|
226
226
|
defaults = RBoss::Twiddle::Monitor.defaults
|
@@ -229,10 +229,10 @@ which can be used to customize the mbeans.
|
|
229
229
|
:pattern => 'jboss.system:service=Logging,type=Logger'
|
230
230
|
}
|
231
231
|
|
232
|
-
This will add a custom mbean whose identifier is 'logger'. From that, you can use
|
232
|
+
This will add a custom mbean whose identifier is 'logger'. From that, you can use therboss-
|
233
233
|
twiddle command on it.
|
234
234
|
|
235
|
-
twiddle --invoke logger debug,message
|
235
|
+
rboss-twiddle --invoke logger debug,message
|
236
236
|
|
237
237
|
If your mbean name depends on a resource name (like the connector mbean), you can use
|
238
238
|
a '#{resource}' string to pass the resource in the command line.
|
@@ -242,9 +242,9 @@ a '#{resource}' string to pass the resource in the command line.
|
|
242
242
|
:pattern => 'jboss.custom:type=CustomMBean,name=#{resource}'
|
243
243
|
}
|
244
244
|
|
245
|
-
Don't forget to use single quotes on that. The twiddle command will be:
|
245
|
+
Don't forget to use single quotes on that. The rboss-twiddle command will be:
|
246
246
|
|
247
|
-
twiddle --get mymbean:Name,MBeanProperty
|
247
|
+
rboss-twiddle --get mymbean:Name,MBeanProperty
|
248
248
|
|
249
249
|
If this mbean is scannable, you can use a :scan key:
|
250
250
|
|
@@ -261,7 +261,7 @@ If this mbean is scannable, you can use a :scan key:
|
|
261
261
|
|
262
262
|
Now you can scan for resources of your custom MBean by using:
|
263
263
|
|
264
|
-
twiddle --mymbean
|
264
|
+
rboss-twiddle --mymbean
|
265
265
|
|
266
266
|
If your MBean has some properties that should appear in a table for instant monitoring,
|
267
267
|
just add a :properties key:
|
@@ -307,14 +307,14 @@ Customizing health, formatters and colors are the same as customizing in rboss-c
|
|
307
307
|
use the indexes of the values (in that case, 2 for :max and 0 for :using) or the header values
|
308
308
|
in downcase and underscores.
|
309
309
|
|
310
|
-
Using
|
310
|
+
Using rboss-profile
|
311
311
|
-----------
|
312
312
|
|
313
313
|
### Basics
|
314
314
|
|
315
315
|
Simply do a "cd" to your JBoss Home and use it
|
316
316
|
|
317
|
-
|
317
|
+
rboss-profile --help
|
318
318
|
|
319
319
|
All configuration can be stored in a single yaml file containing an array of components
|
320
320
|
and its configuration:
|
@@ -491,18 +491,18 @@ Tools
|
|
491
491
|
You can do a slimming using only the command line, just put your terminal in the profile dir
|
492
492
|
and do the following:
|
493
493
|
|
494
|
-
|
494
|
+
rboss-profile --this --slimming services-here
|
495
495
|
|
496
496
|
This will slim the defined services. Use --verbose to see the changed files.
|
497
497
|
|
498
498
|
To restore slimmed services, use --restore.
|
499
499
|
|
500
|
-
|
500
|
+
rboss-profile --this --restore services-here
|
501
501
|
|
502
502
|
### Password Encryption
|
503
503
|
|
504
504
|
You can use the SecureIdentityLoginModule to encrypt a password for use with a login module
|
505
505
|
to secure a datasource password.
|
506
506
|
|
507
|
-
|
507
|
+
rboss-profile --encrypt your-password-here
|
508
508
|
|
@@ -92,6 +92,10 @@ module RBoss
|
|
92
92
|
:properties => %W(DefaultJBossServerLogThreshold),
|
93
93
|
:header => ['Default Server Log Threshold'],
|
94
94
|
},
|
95
|
+
:logger => {
|
96
|
+
:description => 'Logger Service',
|
97
|
+
:pattern => 'jboss.system:service=Logging,type=Logger'
|
98
|
+
},
|
95
99
|
:server => {
|
96
100
|
:title => 'JBoss Server specifications',
|
97
101
|
:pattern => 'jboss.system:type=Server',
|
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.8.
|
4
|
+
version: 0.8.2
|
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:
|
12
|
+
date: 2013-01-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! "Rboss gives you a set of command line tools to configure a JBoss instance\n
|
15
15
|
\ and use jboss-cli and twiddle wrapped by an elegant interface"
|