|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.EmptyBroker
public class EmptyBroker
Dumb implementation - used to be overriden by listeners
Constructor Summary | |
---|---|
EmptyBroker()
|
Method Summary | |
---|---|
void |
acknowledge(ConnectionContext context,
MessageAck ack)
Used to acknowledge the receipt of a message by a client. |
void |
addBroker(Connection connection,
BrokerInfo info)
A remote Broker connects |
void |
addConnection(ConnectionContext context,
ConnectionInfo info)
A client is establishing a connection with the broker. |
Subscription |
addConsumer(ConnectionContext context,
ConsumerInfo info)
Adds a consumer. |
Destination |
addDestination(ConnectionContext context,
ActiveMQDestination destination)
Used to create a destination. |
void |
addDestinationInfo(ConnectionContext context,
DestinationInfo info)
Add and process a DestinationInfo object |
void |
addProducer(ConnectionContext context,
ProducerInfo info)
Adds a producer. |
void |
addSession(ConnectionContext context,
SessionInfo info)
Adds a session. |
void |
beginTransaction(ConnectionContext context,
TransactionId xid)
Starts a transaction. |
void |
commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
Commits a transaction. |
void |
forgetTransaction(ConnectionContext context,
TransactionId transactionId)
Forgets a transaction. |
void |
gc()
|
Broker |
getAdaptor(Class type)
Get a Broker from the Broker Stack that is a particular class |
ConnectionContext |
getAdminConnectionContext()
|
BrokerId |
getBrokerId()
Get the id of the broker |
String |
getBrokerName()
Get the name of the broker |
Connection[] |
getClients()
|
Map |
getDestinationMap()
Returns a copy of the current destinations available in the region |
ActiveMQDestination[] |
getDestinations()
|
Set |
getDestinations(ActiveMQDestination destination)
Provide an exact or wildcard lookup of destinations in the region |
Set |
getDurableDestinations()
|
BrokerInfo[] |
getPeerBrokerInfos()
Get the BrokerInfo's of any connected Brokers |
PendingDurableSubscriberMessageStoragePolicy |
getPendingDurableSubscriberPolicy()
|
TransactionId[] |
getPreparedTransactions(ConnectionContext context)
Gets a list of all the prepared xa transactions. |
Store |
getTempDataStore()
|
boolean |
isFaultTolerantConfiguration()
|
boolean |
isSlaveBroker()
|
boolean |
isStopped()
|
Response |
messagePull(ConnectionContext context,
MessagePull pull)
Allows a consumer to pull a message from a queue |
int |
prepareTransaction(ConnectionContext context,
TransactionId xid)
Prepares a transaction. |
void |
processDispatch(MessageDispatch messageDispatch)
Notifiy the Broker that a dispatch has happened |
void |
processDispatchNotification(MessageDispatchNotification messageDispatchNotification)
Process a notification of a dispatch - used by a Slave Broker |
void |
removeBroker(Connection connection,
BrokerInfo info)
Remove a BrokerInfo |
void |
removeConnection(ConnectionContext context,
ConnectionInfo info,
Throwable error)
A client is disconnecting from the broker. |
void |
removeConsumer(ConnectionContext context,
ConsumerInfo info)
Removes a consumer. |
void |
removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
Used to destroy a destination. |
void |
removeDestinationInfo(ConnectionContext context,
DestinationInfo info)
Remove and process a DestinationInfo object |
void |
removeProducer(ConnectionContext context,
ProducerInfo info)
Removes a producer. |
void |
removeSession(ConnectionContext context,
SessionInfo info)
Removes a session. |
void |
removeSubscription(ConnectionContext context,
RemoveSubscriptionInfo info)
Deletes a durable 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. |
void |
setAdminConnectionContext(ConnectionContext adminConnectionContext)
Sets the default administration connection context used when configuring the broker on startup or via JMX |
void |
setPendingDurableSubscriberPolicy(PendingDurableSubscriberMessageStoragePolicy pendingDurableSubscriberPolicy)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyBroker()
Method Detail |
---|
public BrokerId getBrokerId()
Broker
getBrokerId
in interface Broker
public String getBrokerName()
Broker
getBrokerName
in interface Broker
public Broker getAdaptor(Class type)
Broker
getAdaptor
in interface Broker
public Map getDestinationMap()
Region
getDestinationMap
in interface Region
public Set getDestinations(ActiveMQDestination destination)
Region
getDestinations
in interface Region
public void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception
Broker
addConnection
in interface Broker
Exception
- TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception
Broker
removeConnection
in interface Broker
context
- the environment the operation is being executed under.error
- null if the client requested the disconnect or the error that caused the client to disconnect.
Exception
- TODOpublic void addSession(ConnectionContext context, SessionInfo info) throws Exception
Broker
addSession
in interface Broker
Exception
- TODOpublic void removeSession(ConnectionContext context, SessionInfo info) throws Exception
Broker
removeSession
in interface Broker
Exception
- TODOpublic void addProducer(ConnectionContext context, ProducerInfo info) throws Exception
Broker
addProducer
in interface Broker
context
- the enviorment the operation is being executed under.
Exception
- TODOpublic void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception
Broker
removeProducer
in interface Broker
context
- the enviorment the operation is being executed under.
Exception
- TODOpublic Connection[] getClients() throws Exception
getClients
in interface Broker
Exception
- TODOpublic ActiveMQDestination[] getDestinations() throws Exception
getDestinations
in interface Broker
Exception
- TODOpublic TransactionId[] getPreparedTransactions(ConnectionContext context) throws Exception
Broker
getPreparedTransactions
in interface Broker
Exception
- TODOpublic void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception
Broker
beginTransaction
in interface Broker
Exception
- TODOpublic int prepareTransaction(ConnectionContext context, TransactionId xid) throws Exception
Broker
prepareTransaction
in interface Broker
Exception
- TODOpublic void rollbackTransaction(ConnectionContext context, TransactionId xid) throws Exception
Broker
rollbackTransaction
in interface Broker
Exception
- TODOpublic void commitTransaction(ConnectionContext context, TransactionId xid, boolean onePhase) throws Exception
Broker
commitTransaction
in interface Broker
Exception
- TODOpublic void forgetTransaction(ConnectionContext context, TransactionId transactionId) throws Exception
Broker
forgetTransaction
in interface Broker
Exception
- TODOpublic Destination addDestination(ConnectionContext context, ActiveMQDestination destination) throws Exception
Region
addDestination
in interface Region
destination
- the destination to create.
Exception
- TODOpublic void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception
Region
removeDestination
in interface Region
context
- the environment the operation is being executed under.destination
- what is being removed from the broker.timeout
- the max amount of time to wait for the destination to quiesce
Exception
- TODOpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
Region
addConsumer
in interface Region
context
- the environment the operation is being executed under.
Exception
- TODOpublic void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
Region
removeConsumer
in interface Region
context
- the environment the operation is being executed under.
Exception
- TODOpublic void removeSubscription(ConnectionContext context, RemoveSubscriptionInfo info) throws Exception
Region
removeSubscription
in interface Region
context
- the environment the operation is being executed under.info
- TODO
Exception
- TODOpublic void send(ConnectionContext context, Message message) throws Exception
Region
send
in interface Region
context
- the environment the operation is being executed under.
Exception
- TODOpublic void acknowledge(ConnectionContext context, MessageAck ack) throws Exception
Region
acknowledge
in interface Region
context
- the environment the operation is being executed under.
Exception
- TODOpublic void gc()
gc
in interface Region
public void start() throws Exception
start
in interface Service
Exception
public void stop() throws Exception
stop
in interface Service
Exception
public void addBroker(Connection connection, BrokerInfo info)
Broker
addBroker
in interface Broker
public void removeBroker(Connection connection, BrokerInfo info)
Broker
removeBroker
in interface Broker
public BrokerInfo[] getPeerBrokerInfos()
Broker
getPeerBrokerInfos
in interface Broker
public void processDispatch(MessageDispatch messageDispatch)
processDispatch
in interface Broker
messageDispatch
- public void processDispatchNotification(MessageDispatchNotification messageDispatchNotification) throws Exception
Region
processDispatchNotification
in interface Region
Exception
- TODOpublic boolean isSlaveBroker()
isSlaveBroker
in interface Broker
public boolean isStopped()
isStopped
in interface Broker
public Set getDurableDestinations()
getDurableDestinations
in interface Broker
public void addDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception
Broker
addDestinationInfo
in interface Broker
Exception
public void removeDestinationInfo(ConnectionContext context, DestinationInfo info) throws Exception
Broker
removeDestinationInfo
in interface Broker
Exception
public boolean isFaultTolerantConfiguration()
isFaultTolerantConfiguration
in interface Broker
public ConnectionContext getAdminConnectionContext()
getAdminConnectionContext
in interface Broker
public void setAdminConnectionContext(ConnectionContext adminConnectionContext)
Broker
setAdminConnectionContext
in interface Broker
public Response messagePull(ConnectionContext context, MessagePull pull)
Region
messagePull
in interface Region
public PendingDurableSubscriberMessageStoragePolicy getPendingDurableSubscriberPolicy()
getPendingDurableSubscriberPolicy
in interface Broker
public void setPendingDurableSubscriberPolicy(PendingDurableSubscriberMessageStoragePolicy pendingDurableSubscriberPolicy)
setPendingDurableSubscriberPolicy
in interface Broker
pendingDurableSubscriberPolicy
- the pendingDurableSubscriberPolicy to setpublic Store getTempDataStore()
getTempDataStore
in interface Broker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |