Class: ModernTimes::JMS::SupervisorMBean

Inherits:
Base::SupervisorMBean show all
Defined in:
lib/modern_times/jms/supervisor_mbean.rb

Instance Attribute Summary

Attributes inherited from Base::SupervisorMBean

#supervisor

Instance Method Summary collapse

Methods inherited from Base::SupervisorMBean

#initialize, #worker_count, #worker_count=, #worker_statuses

Constructor Details

This class inherits a constructor from ModernTimes::Base::SupervisorMBean

Instance Method Details

#average_response_timeObject



13
14
15
# File 'lib/modern_times/jms/supervisor_mbean.rb', line 13

def average_response_time
  supervisor.average_response_time
end

#max_response_timeObject



21
22
23
# File 'lib/modern_times/jms/supervisor_mbean.rb', line 21

def max_response_time
  supervisor.max_response_time
end

#message_countsObject



9
10
11
# File 'lib/modern_times/jms/supervisor_mbean.rb', line 9

def message_counts
  java.util.ArrayList.new(supervisor.message_counts)
end

#min_response_timeObject



17
18
19
# File 'lib/modern_times/jms/supervisor_mbean.rb', line 17

def min_response_time
  supervisor.min_response_time
end