|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemq.broker.impl.BrokerConnectorImpl
public class BrokerConnectorImpl
An implementation of the broker (the JMS server)
| Constructor Summary | |
|---|---|
BrokerConnectorImpl(BrokerContainer container)
|
|
BrokerConnectorImpl(BrokerContainer container,
String bindAddress,
WireFormat wireFormat)
Helper constructor for TCP protocol with the given bind address |
|
BrokerConnectorImpl(BrokerContainer container,
TransportServerChannel serverChannel)
|
|
| Method Summary | |
|---|---|
void |
acknowledgeMessage(BrokerClient client,
MessageAck ack)
Acknowledge reciept of a message |
void |
addClient(TransportChannel channel)
Called when a new channel is added to a server |
void |
commitTransaction(BrokerClient client,
ActiveMQXid xid,
boolean onePhase)
Commit an XA transaction. |
void |
commitTransaction(BrokerClient client,
String transactionId)
Commit a transaction |
protected static TransportServerChannel |
createTransportServerChannel(WireFormat wireFormat,
String bindAddress)
Factory method ot create a transport channel |
void |
deregisterClient(BrokerClient client,
ConnectionInfo info)
Deregister a Broker Client |
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 |
int |
getBrokerCapacity()
Get a hint about the broker capacity for more messages |
BrokerContainer |
getBrokerContainer()
|
BrokerInfo |
getBrokerInfo()
|
ActiveMQXid[] |
getPreparedTransactions(BrokerClient client)
Gets the prepared XA transactions. |
String |
getResourceManagerId(BrokerClient client)
Gets the unique id of the resource manager used for managing xa transactions. |
TransportServerChannel |
getServerChannel()
|
int |
prepareTransaction(BrokerClient client,
ActiveMQXid xid)
Prepare an XA transaction. |
void |
registerClient(BrokerClient client,
ConnectionInfo info)
Register a Broker Client |
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 |
removeClient(TransportChannel channel)
Called when a channel has been closed and removed from a server |
void |
rollbackTransaction(BrokerClient client,
ActiveMQXid xid)
Rollback an XA transaction. |
void |
rollbackTransaction(BrokerClient client,
String transactionId)
Rollback a transacton |
void |
sendMessage(BrokerClient client,
ActiveMQMessage message)
Send a non-transacted message to the Broker |
void |
start()
start the Broker |
void |
startTransaction(BrokerClient client,
ActiveMQXid xid)
Start an XA transaction. |
void |
startTransaction(BrokerClient client,
String transactionId)
Start a transaction from the Client session |
void |
stop()
Stop the Broker |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrokerConnectorImpl(BrokerContainer container,
String bindAddress,
WireFormat wireFormat)
throws JMSException
container - bindAddress -
JMSException
public BrokerConnectorImpl(BrokerContainer container,
TransportServerChannel serverChannel)
container - serverChannel - public BrokerConnectorImpl(BrokerContainer container)
container - serverChannel - | Method Detail |
|---|
public BrokerInfo getBrokerInfo()
getBrokerInfo in interface BrokerConnectorpublic int getBrokerCapacity()
getBrokerCapacity in interface BrokerConnectorpublic TransportServerChannel getServerChannel()
getServerChannel in interface BrokerConnector
public void start()
throws JMSException
start in interface ServiceJMSException
public void stop()
throws JMSException
stop in interface ServiceJMSException
public void registerClient(BrokerClient client,
ConnectionInfo info)
throws JMSException
registerClient in interface BrokerConnectorclient - info - contains infomation about the Connection this Client represents
JMSException
InvalidClientIDException - if the JMS client specifies an invalid or duplicate client ID.
JMSSecurityException - if client authentication fails due to an invalid user name or password.
public void deregisterClient(BrokerClient client,
ConnectionInfo info)
throws JMSException
deregisterClient in interface BrokerConnectorclient - info -
JMSException - if some internal error occurs
public void registerMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
registerMessageConsumer in interface BrokerConnectorclient - 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 BrokerConnectorclient - info -
JMSException
public void registerMessageProducer(BrokerClient client,
ProducerInfo info)
throws JMSException
registerMessageProducer in interface BrokerConnectorclient - 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 BrokerConnectorclient - info -
JMSException
public void registerSession(BrokerClient client,
SessionInfo info)
throws JMSException
registerSession in interface BrokerConnectorclient - info -
JMSException
public void deregisterSession(BrokerClient client,
SessionInfo info)
throws JMSException
deregisterSession in interface BrokerConnectorclient - info -
JMSException
public void startTransaction(BrokerClient client,
String transactionId)
throws JMSException
startTransaction in interface BrokerConnectorclient - transactionId -
JMSException
public void rollbackTransaction(BrokerClient client,
String transactionId)
throws JMSException
rollbackTransaction in interface BrokerConnectorclient - transactionId -
JMSException
public void commitTransaction(BrokerClient client,
String transactionId)
throws JMSException
commitTransaction in interface BrokerConnectorclient - transactionId -
JMSException
public void sendMessage(BrokerClient client,
ActiveMQMessage message)
throws JMSException
sendMessage in interface BrokerConnectorclient - message -
JMSException
public void acknowledgeMessage(BrokerClient client,
MessageAck ack)
throws JMSException
acknowledgeMessage in interface BrokerConnectorclient - ack -
JMSException
public void durableUnsubscribe(BrokerClient client,
DurableUnsubscribe ds)
throws JMSException
durableUnsubscribe in interface BrokerConnectorclient - ds -
JMSExceptionpublic void addClient(TransportChannel channel)
TransportChannelListener
addClient in interface TransportChannelListenerchannel - - client to addpublic void removeClient(TransportChannel channel)
TransportChannelListener
removeClient in interface TransportChannelListenerchannel - - client to removepublic BrokerContainer getBrokerContainer()
getBrokerContainer in interface BrokerConnector
public void startTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
startTransaction in interface BrokerConnectorXAExceptionBrokerConnector.startTransaction(org.activemq.broker.BrokerClient, org.activemq.message.ActiveMQXid)
public ActiveMQXid[] getPreparedTransactions(BrokerClient client)
throws XAException
getPreparedTransactions in interface BrokerConnectorXAExceptionBrokerConnector.getPreparedTransactions(org.activemq.broker.BrokerClient)
public int prepareTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
prepareTransaction in interface BrokerConnectorXAExceptionBrokerConnector.prepareTransaction(org.activemq.broker.BrokerClient, org.activemq.message.ActiveMQXid)
public void rollbackTransaction(BrokerClient client,
ActiveMQXid xid)
throws XAException
rollbackTransaction in interface BrokerConnectorXAExceptionBrokerConnector.rollbackTransaction(org.activemq.broker.BrokerClient, org.activemq.message.ActiveMQXid)
public void commitTransaction(BrokerClient client,
ActiveMQXid xid,
boolean onePhase)
throws XAException
commitTransaction in interface BrokerConnectorXAExceptionBrokerConnector.commitTransaction(org.activemq.broker.BrokerClient, org.activemq.message.ActiveMQXid, boolean)public String getResourceManagerId(BrokerClient client)
BrokerConnector
getResourceManagerId in interface BrokerConnectorBrokerConnector.getResourceManagerId(org.activemq.broker.BrokerClient)
protected static TransportServerChannel createTransportServerChannel(WireFormat wireFormat,
String bindAddress)
throws JMSException
bindAddress -
JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||