|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.management.impl.MessagingServerManagementImpl
public class MessagingServerManagementImpl
This interface describes the properties and operations that comprise the management interface of the Messaging Server.
It includes operations to create and destroy queues and provides various statistics measures such as message count for queues and topics.
Constructor Summary | |
---|---|
MessagingServerManagementImpl()
|
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 |
void |
setMessagingServer(MessagingServer messagingServer)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessagingServerManagementImpl()
Method Detail |
---|
public void setMessagingServer(MessagingServer messagingServer)
public boolean isStarted()
MessagingServerManagement
isStarted
in interface MessagingServerManagement
public void createQueue(SimpleString address, SimpleString name) throws java.lang.Exception
MessagingServerManagement
createQueue
in interface MessagingServerManagement
address
- the addressname
- the name of the queue
java.lang.Exception
- if a problem occurredpublic void destroyQueue(SimpleString name) throws java.lang.Exception
MessagingServerManagement
destroyQueue
in interface MessagingServerManagement
name
- the name of the queue
java.lang.Exception
- if a problem occurredpublic boolean addDestination(SimpleString address) throws java.lang.Exception
MessagingServerManagement
addDestination
in interface MessagingServerManagement
address
- the address to add
java.lang.Exception
- if a problem occurredpublic boolean removeDestination(SimpleString address) throws java.lang.Exception
MessagingServerManagement
removeDestination
in interface MessagingServerManagement
address
- the address to remove
java.lang.Exception
- if a problem occurredpublic void removeAllMessagesForAddress(SimpleString address) throws java.lang.Exception
MessagingServerManagement
removeAllMessagesForAddress
in interface MessagingServerManagement
address
- the address
java.lang.Exception
- if a problem occurredpublic java.util.List<Queue> getQueuesForAddress(SimpleString address) throws java.lang.Exception
MessagingServerManagement
getQueuesForAddress
in interface MessagingServerManagement
address
- the address
java.lang.Exception
- if a problem occurredpublic int getMessageCountForQueue(SimpleString queue) throws java.lang.Exception
MessagingServerManagement
getMessageCountForQueue
in interface MessagingServerManagement
queue
- the name of the queue
java.lang.Exception
- if a problem occurredpublic Configuration getConfiguration()
MessagingServerManagement
getConfiguration
in interface MessagingServerManagement
public void start() throws java.lang.Exception
start
in interface MessagingComponent
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface MessagingComponent
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |