Usages of

javax.management.j2ee.statistics.JMSSessionStats.getConsumers()
/** * @see com.ixora.rms.agents.impl.jmx.jsr77.JMXJSR77EntityStats#updateChildrenFromStats(javax.management.j2ee.statistics.Stats) */ protected void updateChildrenFromStats(Stats stats) throws Throwable { JMSSessionStats jmsStats = (JMSSessionStats)stats; JMSConsumerStats[] consStats = jmsStats.getConsumers(); if(!Utils.isEmptyArray(consStats)) { int i = 0; for(JMSConsumerStats consStat : consStats) { ++i; String consName = consStat.getOrigin(); EntityId connEntityId = new EntityId(getId(), consName); JMXJSR77EntityStats entity = (JMXJSR77EntityStats)getChildEntity(connEntityId); if(entity != null) { entity.setStats(consStat); } else { addChildEntity( new JMXJSR77EntityStats(getId(), getJMXContext(), consStat, consName, consName)); } } } JMSProducerStats [] prodStats = jmsStats.getProducers(); if(!Utils.isEmptyArray(prodStats)) { int i = 0; for(JMSProducerStats prodStat : prodStats) { ++i; String prodName = prodStat.getDestination(); EntityId connEntityId = new EntityId(getId(), prodName); JMXJSR77EntityStats entity = (JMXJSR77EntityStats)getChildEntity(connEntityId); if(entity != null) { entity.setStats(prodStat); } else { addChildEntity( new JMXJSR77EntityStats(getId(), getJMXContext(), prodStat, prodName, prodName)); } } } }
Usage snippet has been bookmarked! Review your bookmarks
Thank you! Review your likes