Sha256: 42e0327aea956b8a0e7ed9ef809a5e93441b4d87be44a8b22aced631b99703a8

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

# Add methods to Server Interface
module Java::org.hornetq.core.server::HornetQServer

  # Shutdown the server when a typical interrupt signal (1,2,15) is caught
  def enable_shutdown_on_signal
    ['HUP', 'INT', 'TERM'].each do |signal_name|
      Signal.trap(signal_name) do
        puts "caught #{signal_name}"
        stop
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jruby-hornetq-0.2.5.alpha lib/hornetq/org_hornetq_core_server_hornet_q_server.rb
jruby-hornetq-0.2.3.alpha lib/hornetq/org_hornetq_core_server_hornet_q_server.rb
jruby-hornetq-0.2.1.alpha lib/hornetq/org_hornetq_core_server_hornet_q_server.rb