|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.MutableBrokerFilter
org.apache.activemq.broker.InsertableMutableBrokerFilter
org.apache.activemq.broker.ft.MasterBroker
public class MasterBroker
The Message Broker which passes messages to a slave
| Constructor Summary | |
|---|---|
MasterBroker(MutableBrokerFilter parent,
Transport slave)
Constructor |
|
| Method Summary | |
|---|---|
void |
acknowledge(ConnectionContext context,
MessageAck ack)
Used to acknowledge the receipt of a message by a client. |
void |
addConnection(ConnectionContext context,
ConnectionInfo info)
A client is establishing a connection with the broker. |
Subscription |
addConsumer(ConnectionContext context,
ConsumerInfo info)
add a consumer |
void |
addProducer(ConnectionContext context,
ProducerInfo info)
Adds a producer. |
void |
addSession(ConnectionContext context,
SessionInfo info)
Adds a session. |
void |
beginTransaction(ConnectionContext context,
TransactionId xid)
begin a transaction |
void |
commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
Commits a transaction. |
void |
forgetTransaction(ConnectionContext context,
TransactionId xid)
Forgets a transaction. |
boolean |
isFaultTolerantConfiguration()
|
int |
prepareTransaction(ConnectionContext context,
TransactionId xid)
Prepares a transaction. |
void |
processDispatch(MessageDispatch messageDispatch)
Notifiy the Broker that a dispatch has happened |
void |
removeConnection(ConnectionContext context,
ConnectionInfo info,
java.lang.Throwable error)
A client is disconnecting from the broker. |
void |
removeProducer(ConnectionContext context,
ProducerInfo info)
Removes a producer. |
void |
removeSession(ConnectionContext context,
SessionInfo info)
Removes a session. |
void |
removeSubscription(ConnectionContext context,
RemoveSubscriptionInfo info)
remove a subscription |
void |
rollbackTransaction(ConnectionContext context,
TransactionId xid)
Rollsback a transaction. |
void |
send(ConnectionContext context,
Message message)
Send a message to the broker to using the specified destination. |
protected void |
sendAsyncToSlave(Command command)
|
protected void |
sendSyncToSlave(Command command)
|
protected void |
sendToSlave(Message message)
|
protected void |
sendToSlave(MessageAck ack)
|
void |
startProcessing()
start processing this broker |
void |
stop()
stop the broker |
void |
stopProcessing()
stop processing this broker |
| Methods inherited from class org.apache.activemq.broker.InsertableMutableBrokerFilter |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterBroker(MutableBrokerFilter parent,
Transport slave)
parent - slave - | Method Detail |
|---|
public void startProcessing()
public void stop()
throws java.lang.Exception
stop in interface Servicestop in class MutableBrokerFilterjava.lang.Exceptionpublic void stopProcessing()
public void addConnection(ConnectionContext context,
ConnectionInfo info)
throws java.lang.Exception
addConnection in interface BrokeraddConnection in class MutableBrokerFiltercontext - info -
java.lang.Exception
public void removeConnection(ConnectionContext context,
ConnectionInfo info,
java.lang.Throwable error)
throws java.lang.Exception
removeConnection in interface BrokerremoveConnection in class MutableBrokerFiltercontext - the environment the operation is being executed under.info - error - null if the client requested the disconnect or the error that caused the client to disconnect.
java.lang.Exception
public void addSession(ConnectionContext context,
SessionInfo info)
throws java.lang.Exception
addSession in interface BrokeraddSession in class MutableBrokerFiltercontext - info -
java.lang.Exception
public void removeSession(ConnectionContext context,
SessionInfo info)
throws java.lang.Exception
removeSession in interface BrokerremoveSession in class MutableBrokerFiltercontext - info -
java.lang.Exception
public void addProducer(ConnectionContext context,
ProducerInfo info)
throws java.lang.Exception
addProducer in interface BrokeraddProducer in class MutableBrokerFiltercontext - the enviorment the operation is being executed under.info -
java.lang.Exception
public void removeProducer(ConnectionContext context,
ProducerInfo info)
throws java.lang.Exception
removeProducer in interface BrokerremoveProducer in class MutableBrokerFiltercontext - the enviorment the operation is being executed under.info -
java.lang.Exception
public Subscription addConsumer(ConnectionContext context,
ConsumerInfo info)
throws java.lang.Exception
addConsumer in interface RegionaddConsumer in class MutableBrokerFiltercontext - info -
java.lang.Exception
public void removeSubscription(ConnectionContext context,
RemoveSubscriptionInfo info)
throws java.lang.Exception
removeSubscription in interface RegionremoveSubscription in class MutableBrokerFiltercontext - info -
java.lang.Exception
public void beginTransaction(ConnectionContext context,
TransactionId xid)
throws java.lang.Exception
beginTransaction in interface BrokerbeginTransaction in class MutableBrokerFiltercontext - xid -
java.lang.Exception
public int prepareTransaction(ConnectionContext context,
TransactionId xid)
throws java.lang.Exception
prepareTransaction in interface BrokerprepareTransaction in class MutableBrokerFiltercontext - xid -
java.lang.Exception
public void rollbackTransaction(ConnectionContext context,
TransactionId xid)
throws java.lang.Exception
rollbackTransaction in interface BrokerrollbackTransaction in class MutableBrokerFiltercontext - xid -
java.lang.Exception
public void commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
throws java.lang.Exception
commitTransaction in interface BrokercommitTransaction in class MutableBrokerFiltercontext - xid - onePhase -
java.lang.Exception
public void forgetTransaction(ConnectionContext context,
TransactionId xid)
throws java.lang.Exception
forgetTransaction in interface BrokerforgetTransaction in class MutableBrokerFiltercontext - xid -
java.lang.Exceptionpublic void processDispatch(MessageDispatch messageDispatch)
processDispatch in interface BrokerprocessDispatch in class MutableBrokerFiltermessageDispatch -
public void send(ConnectionContext context,
Message message)
throws java.lang.Exception
Region
send in interface Regionsend in class MutableBrokerFiltercontext - message -
java.lang.Exception
public void acknowledge(ConnectionContext context,
MessageAck ack)
throws java.lang.Exception
Region
acknowledge in interface Regionacknowledge in class MutableBrokerFiltercontext - ack -
java.lang.Exceptionpublic boolean isFaultTolerantConfiguration()
isFaultTolerantConfiguration in interface BrokerisFaultTolerantConfiguration in class MutableBrokerFilterprotected void sendToSlave(Message message)
protected void sendToSlave(MessageAck ack)
protected void sendAsyncToSlave(Command command)
protected void sendSyncToSlave(Command command)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||