|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.service.impl.MessageContainerManagerSupport
| Field Summary | |
protected Dispatcher |
dispatcher
|
protected java.util.Map |
messageContainers
|
| Constructor Summary | |
MessageContainerManagerSupport(Dispatcher dispatcher)
|
|
| Method Summary | |
protected abstract MessageContainer |
createContainer(java.lang.String destinationName)
Factory method to create a new MessageContainer |
protected abstract javax.jms.Destination |
createDestination(java.lang.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(java.lang.String destinationName)
Allows the lookup of a specific named message container |
DeadLetterPolicy |
getDeadLetterPolicy()
|
java.util.Map |
getDestinations()
Returns an unmodifiable map, indexed by String name, of all the Destination
objects available in this container |
java.util.Map |
getMessageContainerAdmins()
Returns an unmodifiable map, indexed by ActiveMQDestination, of all the MessageContainerAdmin
objects available in this container |
boolean |
isMaintainDestinationStats()
|
protected void |
loadContainer(java.lang.String destinationName,
javax.jms.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 java.util.Map messageContainers
| Constructor Detail |
public MessageContainerManagerSupport(Dispatcher dispatcher)
| Method Detail |
public java.util.Map getDestinations()
MessageContainerManagerDestination
objects available in this container
getDestinations in interface MessageContainerManager
public void start()
throws javax.jms.JMSException
Service
start in interface Servicejavax.jms.JMSException
public void stop()
throws javax.jms.JMSException
Service
stop in interface Servicejavax.jms.JMSException
public MessageContainer getContainer(java.lang.String destinationName)
throws javax.jms.JMSException
MessageContainerManager
getContainer in interface MessageContainerManagerdestinationName -
javax.jms.JMSException
public void createMessageContainer(ActiveMQDestination dest)
throws javax.jms.JMSException
MessageContainerManager
createMessageContainer in interface MessageContainerManagerdest -
javax.jms.JMSExceptionpublic java.util.Map getMessageContainerAdmins()
MessageContainerManagerMessageContainerAdmin
objects available in this container
getMessageContainerAdmins in interface MessageContainerManager
public void destroyMessageContainer(ActiveMQDestination dest)
throws javax.jms.JMSException
MessageContainerManager
destroyMessageContainer in interface MessageContainerManagerdest -
javax.jms.JMSExceptionpublic boolean isMaintainDestinationStats()
public void setMaintainDestinationStats(boolean maintainDestinationStats)
public DeadLetterPolicy getDeadLetterPolicy()
getDeadLetterPolicy in interface MessageContainerManagerpublic void setDeadLetterPolicy(DeadLetterPolicy policy)
setDeadLetterPolicy in interface MessageContainerManagerpolicy - protected abstract javax.jms.Destination createDestination(java.lang.String destinationName)
Destination
protected abstract MessageContainer createContainer(java.lang.String destinationName)
throws javax.jms.JMSException
MessageContainer
javax.jms.JMSException
protected void loadContainer(java.lang.String destinationName,
javax.jms.Destination destination)
throws javax.jms.JMSException
javax.jms.JMSException
protected void updateAcknowledgeStats(BrokerClient client,
Subscription subscription)
client - subscription -
protected void updateSendStats(BrokerClient client,
ActiveMQMessage message)
throws javax.jms.JMSException
client - message -
javax.jms.JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||