Add some duplex property for network connector view

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@608356 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-01-03 06:34:40 +00:00
parent e745e0d548
commit 082bbf0f06
4 changed files with 12 additions and 0 deletions

View File

@ -118,6 +118,10 @@ public class BrokerView implements BrokerViewMBean {
return broker.getDestinationStatistics().isEnabled();
}
public boolean isPersistent() {
return brokerService.isPersistent();
}
public void terminateJVM(int exitCode) {
System.exit(exitCode);
}

View File

@ -62,6 +62,8 @@ public interface BrokerViewMBean extends Service {
void setMemoryLimit(long limit);
boolean isPersistent();
/**
* Shuts down the JVM.
*

View File

@ -70,6 +70,10 @@ public class NetworkConnectorView implements NetworkConnectorViewMBean {
return connector.isDynamicOnly();
}
public boolean isDuplex() {
return connector.isDuplex();
}
public void setBridgeTempDestinations(boolean bridgeTempDestinations) {
connector.setBridgeTempDestinations(bridgeTempDestinations);
}

View File

@ -38,6 +38,8 @@ public interface NetworkConnectorViewMBean extends Service {
boolean isDynamicOnly();
boolean isDuplex();
void setBridgeTempDestinations(boolean bridgeTempDestinations);
void setConduitSubscriptions(boolean conduitSubscriptions);