|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.broker.impl.BrokerContainerImpl
Represents the ActiveMQ JMS Broker which typically has one or many connectors
| Constructor Summary | |
BrokerContainerImpl(Broker broker)
|
|
BrokerContainerImpl(java.lang.String brokerName)
Default Constructor |
|
BrokerContainerImpl(java.lang.String brokerName,
PersistenceAdapter persistenceAdapter)
|
|
| Method Summary | |
void |
acknowledgeMessage(BrokerClient client,
MessageAck ack)
Acknowledge reciept of a message |
void |
acknowledgeTransactedMessage(BrokerClient client,
java.lang.String transactionId,
MessageAck ack)
Acknowledge receipt of a message within a transaction context |
void |
addConnector(BrokerConnector connector)
Called when a new connector is added to this container |
protected void |
addShutdownHook()
|
void |
capacityChanged(CapacityMonitorEvent event)
Update any message producers about our capacity to handle messages |
void |
commitTransaction(BrokerClient client,
ActiveMQXid xid,
boolean onePhase)
Commit an XA transaction. |
void |
commitTransaction(BrokerClient client,
java.lang.String transactionId)
Commit a transaction |
protected void |
containerShutdown()
Causes a clean shutdown of the container when the VM is being shut down |
void |
deregisterConnection(BrokerClient client,
ConnectionInfo info)
un-registers a Connection |
void |
deregisterMessageConsumer(BrokerClient client,
ConsumerInfo info)
De-register a MessageConsumer from the Broker |
void |
deregisterMessageProducer(BrokerClient client,
ProducerInfo info)
De-register a MessageProducer from the Broker |
void |
deregisterSession(BrokerClient client,
SessionInfo info)
De-register a client-side Session from the Broker (used for monitoring) |
void |
durableUnsubscribe(BrokerClient client,
DurableUnsubscribe ds)
Command to delete a durable topic subscription |
Broker |
getBroker()
|
java.util.List |
getConnectors()
|
PersistenceAdapter |
getPersistenceAdapter()
|
ActiveMQXid[] |
getPreparedTransactions(BrokerClient client)
Gets the prepared XA transactions. |
int |
prepareTransaction(BrokerClient client,
ActiveMQXid xid)
Prepare an XA transaction. |
void |
registerConnection(BrokerClient client,
ConnectionInfo info)
registers a new Connection |
void |
registerMessageConsumer(BrokerClient client,
ConsumerInfo info)
Registers a MessageConsumer |
void |
registerMessageProducer(BrokerClient client,
ProducerInfo info)
Registers a MessageProducer |
void |
registerSession(BrokerClient client,
SessionInfo info)
Register a client-side Session (used for Monitoring) |
void |
removeConnector(BrokerConnector connector)
Called when a connector is removed to this container |
void |
rollbackTransaction(BrokerClient client,
ActiveMQXid xid)
Rollback an XA transaction. |
void |
rollbackTransaction(BrokerClient client,
java.lang.String transactionId)
Rollback a transacton |
void |
sendMessage(BrokerClient client,
ActiveMQMessage message)
Send a non-transacted message to the Broker |
void |
sendTransactedMessage(BrokerClient client,
java.lang.String transactionId,
ActiveMQMessage message)
send message with a transaction context |
void |
setConnectors(java.util.List connectors)
|
void |
setPersistenceAdapter(PersistenceAdapter persistenceAdapter)
|
void |
start()
start the Container |
void |
startTransaction(BrokerClient client,
ActiveMQXid xid)
Start an XA transaction. |
void |
startTransaction(BrokerClient client,
java.lang.String transactionId)
Start a transaction from the Client session |
void |
stop()
Stop the Container |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BrokerContainerImpl(java.lang.String brokerName)
brokerName -
public BrokerContainerImpl(java.lang.String brokerName,
PersistenceAdapter persistenceAdapter)
public BrokerContainerImpl(Broker broker)
broker - | Method Detail |
public java.util.List getConnectors()
getConnectors in interface BrokerContainerpublic void setConnectors(java.util.List connectors)
public Broker getBroker()
getBroker in interface BrokerContainerpublic PersistenceAdapter getPersistenceAdapter()
public void setPersistenceAdapter(PersistenceAdapter persistenceAdapter)
public void start()
throws JMSException
start in interface ServiceJMSExceptionprotected void addShutdownHook()
public void stop()
throws JMSException
stop in interface ServiceJMSException
public void registerConnection(BrokerClient client,
ConnectionInfo info)
throws InvalidClientIDException
registerConnection in interface BrokerContainerclient - info - infomation about the client-side Connection
InvalidClientIDException - if the ClientID of the Connection is a duplicate
public void deregisterConnection(BrokerClient client,
ConnectionInfo info)
throws JMSException
deregisterConnection in interface BrokerContainerclient - info - infomation about the client-side Connection
JMSException
public void registerMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
registerMessageConsumer in interface BrokerContainerclient - info -
JMSException
JMSSecurityException - if client authentication fails for the Destination the Consumer applies for
public void deregisterMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
deregisterMessageConsumer in interface BrokerContainerclient - info -
JMSException
public void registerMessageProducer(BrokerClient client,
ProducerInfo info)
throws JMSException
registerMessageProducer in interface BrokerContainerclient - info -
JMSException
JMSSecurityException - if client authentication fails for the Destination the Consumer applies for
public void deregisterMessageProducer(BrokerClient client,
ProducerInfo info)
throws JMSException
deregisterMessageProducer in interface BrokerContainerclient - info -
JMSException
public void registerSession(BrokerClient client,
SessionInfo info)
throws JMSException
registerSession in interface BrokerContainerclient - info -
JMSException
public void deregisterSession(BrokerClient client,
SessionInfo info)
throws JMSException
deregisterSession in interface BrokerContainerclient - info -
JMSException
public void startTransaction(BrokerClient client,
java.lang.String transactionId)
throws JMSException
startTransaction in interface BrokerContainerclient - transactionId -
JMSException
public void rollbackTransaction(BrokerClient client,
java.lang.String transactionId)
throws JMSException
rollbackTransaction in interface BrokerContainerclient - transactionId -
JMSException
public void commitTransaction(BrokerClient client,
java.lang.String transactionId)
throws JMSException
commitTransaction in interface BrokerContainerclient - transactionId -
JMSException
public void sendTransactedMessage(BrokerClient client,
java.lang.String transactionId,
ActiveMQMessage message)
throws JMSException
sendTransactedMessage in interface BrokerContainerclient - transactionId - message -
JMSException
public void acknowledgeTransactedMessage(BrokerClient client,
java.lang.String transactionId,
MessageAck ack)
throws JMSException
acknowledgeTransactedMessage in interface BrokerContainerclient - transactionId - ack -
JMSException
public void sendMessage(BrokerClient client,
ActiveMQMessage message)
throws JMSException
sendMessage in interface BrokerContainerclient - message -
JMSException
public void acknowledgeMessage(BrokerClient client,
MessageAck ack)
throws JMSException
acknowledgeMessage in interface BrokerContainerclient - ack -
JMSException
public void durableUnsubscribe(BrokerClient client,
DurableUnsubscribe ds)
throws JMSException
durableUnsubscribe in interface BrokerContainerclient - ds -
JMSException
public void startTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
startTransaction in interface BrokerContainerclient - xid -
XAException
public ActiveMQXid[] getPreparedTransactions(BrokerClient client)
throws XAException
getPreparedTransactions in interface BrokerContainerclient -
XAException
public int prepareTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
prepareTransaction in interface BrokerContainerclient - xid -
XAException
public void rollbackTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
rollbackTransaction in interface BrokerContainerclient - xid -
XAException
public void commitTransaction(BrokerClient client,
ActiveMQXid xid,
boolean onePhase)
throws XAException
commitTransaction in interface BrokerContainerclient - xid - onePhase -
XAExceptionpublic void addConnector(BrokerConnector connector)
BrokerContainer
addConnector in interface BrokerContainerconnector - public void removeConnector(BrokerConnector connector)
BrokerContainer
removeConnector in interface BrokerContainerconnector - public void capacityChanged(CapacityMonitorEvent event)
capacityChanged in interface CapacityMonitorEventListenerevent - protected void containerShutdown()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||