|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RabbitBrokerOperations
Performs administration tasks for RabbitMQ broker administration.
Goal is to support full CRUD of Exchanges, Queues, Bindings, User, VHosts, etc.
Current implementations expose operations with basic type arguments via JMX.
Method Summary | |
---|---|
void |
addUser(String username,
String password)
|
int |
addVhost(String vhostPath)
|
void |
changeUserPassword(String username,
String newPassword)
|
void |
clearPermissions(String username)
|
void |
clearPermissions(String username,
String vhostPath)
|
com.rabbitmq.client.AMQP.Exchange.DeleteOk |
deleteExchange(String exchangeName,
boolean ifUnused)
|
void |
deleteUser(String username)
|
int |
deleteVhost(String vhostPath)
|
void |
forceResetNode()
The forceResetNode command differs from resetNode() in that it resets the node unconditionally, regardless
of the current management database state and cluster configuration. |
List<QueueInfo> |
getQueues()
|
RabbitStatus |
getStatus()
Returns the status of the node. |
List<String> |
listPermissions()
|
List<String> |
listPermissions(String vhostPath)
|
List<String> |
listUserPermissions(String username)
|
List<String> |
listUsers()
|
void |
recoverAsync(boolean requeue)
|
void |
removeBinding(Binding binding)
|
void |
resetNode()
Removes the node from any cluster it belongs to, removes all data from the management database, such as configured users and vhosts, and deletes all persistent messages. |
void |
setPermissions(String username,
Pattern configure,
Pattern read,
Pattern write)
|
void |
setPermissions(String username,
Pattern configure,
Pattern read,
Pattern write,
String vhostPath)
|
void |
startBrokerApplication()
Starts the RabbitMQ application on an already running node. |
void |
startNode()
Starts the Erlang node where RabbitMQ is running by shelling out to the directory specified by RABBITMQ_HOME and executing the standard named start script. |
void |
stopBrokerApplication()
Stops the RabbitMQ application, leaving the Erlang node running. |
void |
stopNode()
Stops the halts the Erlang node on which RabbitMQ is running. |
Methods inherited from interface org.springframework.amqp.core.AmqpAdmin |
---|
declareBinding, declareExchange, declareQueue, declareQueue, deleteExchange, deleteQueue, deleteQueue, purgeQueue |
Method Detail |
---|
com.rabbitmq.client.AMQP.Exchange.DeleteOk deleteExchange(String exchangeName, boolean ifUnused)
void removeBinding(Binding binding)
List<QueueInfo> getQueues()
void recoverAsync(boolean requeue)
void addUser(String username, String password)
void deleteUser(String username)
void changeUserPassword(String username, String newPassword)
List<String> listUsers()
int addVhost(String vhostPath)
int deleteVhost(String vhostPath)
void setPermissions(String username, Pattern configure, Pattern read, Pattern write)
void setPermissions(String username, Pattern configure, Pattern read, Pattern write, String vhostPath)
void clearPermissions(String username)
void clearPermissions(String username, String vhostPath)
List<String> listPermissions()
List<String> listPermissions(String vhostPath)
List<String> listUserPermissions(String username)
void startBrokerApplication()
void stopBrokerApplication()
void startNode()
void stopNode()
void resetNode()
For resetNode()
and
forceResetNode()
to succeed the RabbitMQ application must have been stopped, e.g.
stopBrokerApplication()
void forceResetNode()
resetNode()
in that it resets the node unconditionally, regardless
of the current management database state and cluster configuration. It should only be used as a last resort if
the database or cluster configuration has been corrupted. For resetNode()
and forceResetNode()
to succeed the RabbitMQ application must have been stopped, e.g. stopBrokerApplication()
RabbitStatus getStatus()
|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |