lib/torquebox_inspector.rb
# Introspects and reports all accessible attributes and operations of Torquebox Message Processors,
# Topics, Queues, Services, and Runtime Pools.
Introspects and reports all accessible attributes and operations of Torquebox Message Processors,
Topics, Queues, Services, and Runtime Pools.
Introspects and reports all accessible attributes and operations of Torquebox Message Processors Topics Queues Services and Runtime Pools .
def torquebox_status
    results = {}
    message_processor_names = jmx_server.query_names('torquebox.messaging.processors:*')
    results[:message_processors] = mbeans_hashes(message_processor_names)
    topics_names = jmx_server.query_names('org.hornetq:address="jms.topic.*",*,name="jms.topic.*",type=Queue')
    results[:topics] = mbeans_hashes(topics_names)
    queue_names = jmx_server.query_names('org.hornetq:address="jms.queue.*",*,type=Queue')
    results[:queues] = mbeans_hashes(queue_names)
    services_names = jmx_server.query_names('torquebox.services:*')
    results[:services] = mbeans_hashes(services_names)
    pools_names = jmx_server.query_names('torquebox.pools:*')
    results[:pools] = mbeans_hashes(pools_names)
    logger.warn("Torquebox status = #{results}")
    results
  end
def torquebox_status results = { } message_processor_names = jmx_server . query_names ( 'torquebox.messaging.processors:*' ) results [ :message_processors ] = mbeans_hashes ( message_processor_names ) topics_names = jmx_server . query_names ( 'org.hornetq:address="jms.topic.*",*,name="jms.topic.*",type=Queue' ) results [ :topics ] = mbeans_hashes ( topics_names ) queue_names = jmx_server . query_names ( 'org.hornetq:address="jms.queue.*",*,type=Queue' ) results [ :queues ] = mbeans_hashes ( queue_names ) services_names = jmx_server . query_names ( 'torquebox.services:*' ) results [ :services ] = mbeans_hashes ( services_names ) pools_names = jmx_server . query_names ( 'torquebox.pools:*' ) results [ :pools ] = mbeans_hashes ( pools_names ) logger . warn ( "Torquebox status = #{results}" ) results end
Introspects and reports all accessible attributes and operations of Torquebox Message Processors,
Topics, Queues, Services, and Runtime Pools.
Introspects and reports all accessible attributes and operations of Torquebox Message Processors Topics Queues Services and Runtime Pools .
# Message Processors # Topics # Queues # Services # Runtime Pools