|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessagingServerManagement
This interface describes the core management interface exposed by the server
| Method Summary | |
|---|---|
boolean |
addDestination(SimpleString address)
add an address to the post office |
void |
createQueue(SimpleString address,
SimpleString name)
creates a queue with the specified address |
void |
destroyQueue(SimpleString name)
destroy a particular queue |
Configuration |
getConfiguration()
list all available addresses |
int |
getMessageCountForQueue(SimpleString queue)
count the number of messages in a queue |
java.util.List<Queue> |
getQueuesForAddress(SimpleString address)
returns all the queues for a specific address |
boolean |
isStarted()
is the server started |
void |
removeAllMessagesForAddress(SimpleString address)
remove all the messages for a specific address |
boolean |
removeDestination(SimpleString address)
remove an address from the post office |
| Method Detail |
|---|
boolean isStarted()
void createQueue(SimpleString address,
SimpleString name)
throws java.lang.Exception
address - the addressname - the name of the queue
java.lang.Exception - if a problem occurred
void destroyQueue(SimpleString name)
throws java.lang.Exception
name - the name of the queue
java.lang.Exception - if a problem occurred
boolean addDestination(SimpleString address)
throws java.lang.Exception
address - the address to add
java.lang.Exception - if a problem occurred
boolean removeDestination(SimpleString address)
throws java.lang.Exception
address - the address to remove
java.lang.Exception - if a problem occurred
java.util.List<Queue> getQueuesForAddress(SimpleString address)
throws java.lang.Exception
address - the address
java.lang.Exception - if a problem occurred
void removeAllMessagesForAddress(SimpleString address)
throws java.lang.Exception
address - the address
java.lang.Exception - if a problem occurred
int getMessageCountForQueue(SimpleString queue)
throws java.lang.Exception
queue - the name of the queue
java.lang.Exception - if a problem occurredConfiguration getConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||