jmx4r 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ jmx4r helps to manage Java applications using JMX in a simple and powerful way:
37
37
  == Help
38
38
 
39
39
  * Wiki[http://jmesnil.net/wiki/Jmx4r]
40
- * RDoc[http://jmx4r.rubyforge.org/doc/]
40
+ * RDoc[http://rubydoc.info/gems/jmx4r/frames]
41
41
 
42
42
  == Source Code
43
43
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require "rubygems"
6
6
 
7
7
  dir = File.dirname(__FILE__)
8
8
  lib = File.join(dir, "lib", "jmx4r.rb")
9
- version = "0.1.3"
9
+ version = "0.1.4"
10
10
 
11
11
  task :default => [:test]
12
12
 
@@ -2,11 +2,11 @@
2
2
  module JMX
3
3
  module JDKHelper
4
4
  module JDK5
5
- include_class 'sun.jvmstat.monitor.HostIdentifier'
6
- include_class 'sun.jvmstat.monitor.MonitoredHost'
7
- include_class 'sun.jvmstat.monitor.MonitoredVmUtil'
8
- include_class 'sun.jvmstat.monitor.VmIdentifier'
9
- include_class 'sun.management.ConnectorAddressLink'
5
+ java_import sun.jvmstat.monitor.HostIdentifier
6
+ java_import sun.jvmstat.monitor.MonitoredHost
7
+ java_import sun.jvmstat.monitor.MonitoredVmUtil
8
+ java_import sun.jvmstat.monitor.VmIdentifier
9
+ java_import sun.management.ConnectorAddressLink
10
10
 
11
11
  class << self
12
12
 
@@ -2,7 +2,7 @@
2
2
  module JMX
3
3
  module JDKHelper
4
4
  module JDK6
5
- include_class 'com.sun.tools.attach.VirtualMachine'
5
+ java_import com.sun.tools.attach.VirtualMachine
6
6
 
7
7
  class << self
8
8
  def find_local_url(command_pattern)
@@ -1,7 +1,7 @@
1
1
 
2
2
  module JMX
3
3
  module JDKHelper
4
- include_class 'java.lang.System'
4
+ java_import java.lang.System
5
5
 
6
6
  class << self
7
7
 
@@ -29,7 +29,7 @@ module JMX
29
29
 
30
30
  def has_java_class?(name)
31
31
  begin
32
- include_class name
32
+ java_import name
33
33
  true
34
34
  rescue
35
35
  retry if load_tools_jar
@@ -55,13 +55,13 @@ module JMX
55
55
  end
56
56
 
57
57
  class MBean
58
- include_class 'java.util.HashMap'
59
- include_class 'javax.naming.Context'
60
- include_class 'javax.management.Attribute'
61
- include_class 'javax.management.ObjectName'
62
- include_class 'javax.management.remote.JMXConnector'
63
- include_class 'javax.management.remote.JMXConnectorFactory'
64
- include_class 'javax.management.remote.JMXServiceURL'
58
+ java_import java.util.HashMap
59
+ java_import javax.naming.Context
60
+ java_import javax.management.Attribute
61
+ java_import javax.management.ObjectName
62
+ java_import javax.management.remote.JMXConnector
63
+ java_import javax.management.remote.JMXConnectorFactory
64
+ java_import javax.management.remote.JMXServiceURL
65
65
  JThread = java.lang.Thread
66
66
 
67
67
  attr_reader :object_name, :operations, :attributes, :connection
metadata CHANGED
@@ -1,96 +1,81 @@
1
- --- !ruby/object:Gem::Specification
2
- required_ruby_version: !ruby/object:Gem::Requirement
3
- none: false
4
- requirements:
5
- - - '>='
6
- - !ruby/object:Gem::Version
7
- segments:
8
- - 0
9
- version: "0"
10
- email: jmesnil@gmail.com
11
- cert_chain: []
12
-
13
- summary: jmx4r is a JMX library for JRuby
14
- post_install_message:
15
- extra_rdoc_files:
16
- - README.rdoc
17
- - LICENSE.txt
18
- homepage: http://jmesnil.net/wiki/Jmx4r
19
- signing_key:
1
+ --- !ruby/object:Gem::Specification
20
2
  name: jmx4r
21
- rdoc_options:
22
- - --title
23
- - jmx4r Documentation
24
- - --main
25
- - README.rdoc
26
- rubyforge_project: jmx4r
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jeff Mesnil
27
9
  autorequire:
28
- licenses: []
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-23 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: ! 'jmx4r is a JMX library for JRuby
29
15
 
16
+ '
17
+ email: jmesnil@gmail.com
30
18
  executables: []
31
-
32
- description: |
33
- jmx4r is a JMX library for JRuby
34
- specification_version: 3
35
- default_executable:
36
- files:
37
- - examples/class_loading.rb
38
- - examples/jvm_mngmt.rb
19
+ extensions: []
20
+ extra_rdoc_files:
21
+ - README.rdoc
22
+ - LICENSE.txt
23
+ files:
24
+ - examples/memory_types.rb
25
+ - examples/runtime_sysprops.rb
26
+ - examples/memory_on_many_nodes.rb
39
27
  - examples/logging.rb
28
+ - examples/jvm_mngmt.rb
29
+ - examples/class_loading.rb
40
30
  - examples/memory.rb
41
- - examples/memory_on_many_nodes.rb
42
- - examples/memory_types.rb
43
31
  - examples/ruby_mbean.rb
44
- - examples/runtime_sysprops.rb
45
- - lib/dynamic_mbean.rb
32
+ - lib/objectname_helper.rb
46
33
  - lib/jconsole.rb
47
34
  - lib/jdk_helper.rb
48
- - lib/jmx4r.rb
49
- - lib/objectname_helper.rb
50
- - lib/open_data_helper.rb
51
- - lib/jdk/jdk4.rb
52
35
  - lib/jdk/jdk5.rb
36
+ - lib/jdk/jdk4.rb
53
37
  - lib/jdk/jdk6.rb
38
+ - lib/jmx4r.rb
39
+ - lib/dynamic_mbean.rb
40
+ - lib/open_data_helper.rb
41
+ - test/tc_multiple_connections.rb
42
+ - test/ts_all.rb
43
+ - test/tc_methods.rb
54
44
  - test/tc_attributes.rb
55
- - test/tc_auth.rb
45
+ - test/tc_dynamic_mbean.rb
56
46
  - test/tc_composite_data.rb
57
47
  - test/tc_connection.rb
58
- - test/tc_dynamic_mbean.rb
59
- - test/tc_methods.rb
60
- - test/tc_multiple_connections.rb
61
- - test/ts_all.rb
48
+ - test/tc_auth.rb
62
49
  - Rakefile
63
50
  - README.rdoc
64
51
  - LICENSE.txt
65
- required_rubygems_version: !ruby/object:Gem::Requirement
52
+ homepage: http://jmesnil.net/wiki/Jmx4r
53
+ licenses: []
54
+ post_install_message:
55
+ rdoc_options:
56
+ - --title
57
+ - jmx4r Documentation
58
+ - --main
59
+ - README.rdoc
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
66
63
  none: false
67
- requirements:
68
- - - '>='
69
- - !ruby/object:Gem::Version
70
- segments:
71
- - 0
72
- version: "0"
73
- extensions: []
74
-
75
- rubygems_version: 1.3.7
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
76
74
  requirements: []
77
-
78
- authors:
79
- - Jeff Mesnil
80
- date: 2010-11-18 23:00:00 +00:00
81
- platform: ruby
82
- test_files:
75
+ rubyforge_project: jmx4r
76
+ rubygems_version: 1.8.24
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: jmx4r is a JMX library for JRuby
80
+ test_files:
83
81
  - test/ts_all.rb
84
- version: !ruby/object:Gem::Version
85
- segments:
86
- - 0
87
- - 1
88
- - 3
89
- prerelease: false
90
- version: 0.1.3
91
- require_paths:
92
- - lib
93
- dependencies: []
94
-
95
- bindir: bin
96
- has_rdoc: true