/**
* @param command
* @throws JMSException
*/
private void consumeBrokerAdminCommand(BrokerAdminCommand command) throws JMSException {
BrokerAdmin brokerAdmin = brokerConnector.getBrokerContainer().getBroker().getBrokerAdmin();
if (BrokerAdminCommand.CREATE_DESTINATION.equals(command.getCommand())) {
brokerAdmin.createMessageContainer(command.getDestination());
}
else if (BrokerAdminCommand.DESTROY_DESTINATION.equals(command.getCommand())) {
brokerAdmin.destoryMessageContainer(command.getDestination());
}
else if (BrokerAdminCommand.EMPTY_DESTINATION.equals(command.getCommand())) {
brokerAdmin.getMessageContainerAdmin(command.getDestination()).empty();
}
else if (BrokerAdminCommand.SHUTDOWN_SERVER_VM.equals(command.getCommand())) {
if (Boolean.getBoolean("enable.vm.shutdown")) {
log.info("processing command=" + BrokerAdminCommand.SHUTDOWN_SERVER_VM);
System.exit(1);