git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@585413 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonas B. Lim 2007-10-17 08:47:38 +00:00
parent 898adccae3
commit 89f793efb0
2 changed files with 9 additions and 0 deletions

View File

@ -53,6 +53,10 @@ public class BrokerView implements BrokerViewMBean {
public String getBrokerId() {
return broker.getBrokerId().toString();
}
public String getBrokerName() {
return broker.getBrokerName();
}
public void gc() throws Exception {
brokerService.getBroker().gc();

View File

@ -26,6 +26,11 @@ public interface BrokerViewMBean extends Service {
* @return The unique id of the broker.
*/
String getBrokerId();
/**
* @return The name of the broker.
*/
String getBrokerName();
/**
* The Broker will fush it's caches so that the garbage collector can