203204205206207208209210211212213
catch(Exception e) { logger.error(e.getMessage(), e); return true; } finally { spy.jmxCloseServer(); } } /** * The Runner of ParallelExecutor to check if the exchange is in use
6566676869707172737475
else { brokerAdmin.setExchangeAttrib(ex, "LimitBehavior", "REMOVE_OLDEST"); } } finally { brokerAdmin.jmxCloseServer(); } } } @Path("/{name}/drop")
8586878889909192939495
brokerAdmin.jmxConnectServer(); try { brokerAdmin.setExchangeAttrib(ex, "LimitBehavior", "FLOW_CONTROL"); } finally { brokerAdmin.jmxCloseServer(); } } } @Path("/{name}/size_limit")
114115116117118119120121122123124
brokerAdmin.jmxConnectServer(); try { brokerAdmin.setExchangeAttrib(ex, "MaxTotalMsgBytes", Long.valueOf(sizeLimit)); } finally { brokerAdmin.jmxCloseServer(); } } } @Path("/{name}/count_limit")
143144145146147148149150151152
brokerAdmin.jmxConnectServer(); try { brokerAdmin.setExchangeAttrib(ex, "MaxNumMsgs", Long.valueOf(countLimit)); } finally { brokerAdmin.jmxCloseServer(); } } } }