Module: JMX::JDKHelper::JDK6

Defined in:
lib/jdk/jdk6.rb

Class Method Summary collapse

Class Method Details

.find_local_url(command_pattern) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/jdk/jdk6.rb', line 8

def find_local_url(command_pattern)
  target_vmd = VirtualMachine.list.find do |vmd|
    command_pattern === vmd.display_name
  end

  if target_vmd
    local_connector_address(target_vmd)
  end
end