* @param port the port to listen on
*
* @return a {@link RabbitBrokerAdmin} instance
*/
public static RabbitBrokerAdmin getRabbitBrokerAdmin(String nodeName, int port) {
RabbitBrokerAdmin brokerAdmin = new RabbitBrokerAdmin(nodeName, port);
brokerAdmin.setRabbitLogBaseDirectory("target/rabbitmq/log");
brokerAdmin.setRabbitMnesiaBaseDirectory("target/rabbitmq/mnesia");
brokerAdmin.setStartupTimeout(10000L);
return brokerAdmin;
}