|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemq.service.impl.MessageContainerManagerSupport
public abstract class MessageContainerManagerSupport
| Field Summary | |
|---|---|
protected Dispatcher |
dispatcher
|
protected Map |
messageContainers
|
| Constructor Summary | |
|---|---|
MessageContainerManagerSupport(Dispatcher dispatcher)
|
|
| Method Summary | |
|---|---|
protected abstract MessageContainer |
createContainer(String destinationName)
Factory method to create a new MessageContainer |
protected abstract Destination |
createDestination(String destinationName)
Factory method to create a new Destination |
void |
createMessageContainer(ActiveMQDestination dest)
Creates a destination. |
void |
destroyMessageContainer(ActiveMQDestination dest)
Destroys a destination. |
MessageContainer |
getContainer(String destinationName)
Allows the lookup of a specific named message container |
DeadLetterPolicy |
getDeadLetterPolicy()
|
Map |
getDestinations()
Returns an unmodifiable map, indexed by String name, of all the Destination
objects available in this container |
Map |
getMessageContainerAdmins()
Returns an unmodifiable map, indexed by ActiveMQDestination, of all the MessageContainerAdmin
objects available in this container |
boolean |
isMaintainDestinationStats()
|
protected void |
loadContainer(String destinationName,
Destination destination)
Loads the container for the given name and destination on startup |
void |
setDeadLetterPolicy(DeadLetterPolicy policy)
Set the DeadLetterPolicy for this Container Manager |
void |
setMaintainDestinationStats(boolean maintainDestinationStats)
|
void |
start()
Called to start the service |
void |
stop()
Called to shutdown the service |
protected void |
updateAcknowledgeStats(BrokerClient client,
Subscription subscription)
Updates the message acknowledgement stats |
protected void |
updateSendStats(BrokerClient client,
ActiveMQMessage message)
Updates the message sending stats |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.activemq.service.MessageContainerManager |
|---|
acknowledgeMessage, addMessageConsumer, deleteSubscription, getLocalDestinations, poll, removeMessageConsumer, sendMessage |
| Field Detail |
|---|
protected Dispatcher dispatcher
protected Map messageContainers
| Constructor Detail |
|---|
public MessageContainerManagerSupport(Dispatcher dispatcher)
| Method Detail |
|---|
public Map getDestinations()
MessageContainerManagerDestination
objects available in this container
getDestinations in interface MessageContainerManager
public void start()
throws JMSException
Service
start in interface ServiceJMSException
public void stop()
throws JMSException
Service
stop in interface ServiceJMSException
public MessageContainer getContainer(String destinationName)
throws JMSException
MessageContainerManager
getContainer in interface MessageContainerManagerJMSException
public void createMessageContainer(ActiveMQDestination dest)
throws JMSException
MessageContainerManager
createMessageContainer in interface MessageContainerManagerJMSExceptionpublic Map getMessageContainerAdmins()
MessageContainerManagerMessageContainerAdmin
objects available in this container
getMessageContainerAdmins in interface MessageContainerManager
public void destroyMessageContainer(ActiveMQDestination dest)
throws JMSException
MessageContainerManager
destroyMessageContainer in interface MessageContainerManagerJMSExceptionpublic boolean isMaintainDestinationStats()
public void setMaintainDestinationStats(boolean maintainDestinationStats)
public DeadLetterPolicy getDeadLetterPolicy()
getDeadLetterPolicy in interface MessageContainerManagerpublic void setDeadLetterPolicy(DeadLetterPolicy policy)
setDeadLetterPolicy in interface MessageContainerManagerpolicy - protected abstract Destination createDestination(String destinationName)
Destination
protected abstract MessageContainer createContainer(String destinationName)
throws JMSException
MessageContainer
JMSException
protected void loadContainer(String destinationName,
Destination destination)
throws JMSException
JMSException
protected void updateAcknowledgeStats(BrokerClient client,
Subscription subscription)
client - subscription -
protected void updateSendStats(BrokerClient client,
ActiveMQMessage message)
throws JMSException
client - message -
JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||