| Constructor and Description |
|---|
ErrorBroker(java.lang.String message) |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(ConsumerBrokerExchange consumerExchange,
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,
boolean flag)
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 |
brokerServiceStarted()
called when the brokerService starts
|
void |
commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
Commits a transaction.
|
void |
fastProducer(ConnectionContext context,
ProducerInfo producerInfo,
ActiveMQDestination destination)
Called to notify a producer is too fast
|
void |
forgetTransaction(ConnectionContext context,
TransactionId transactionId)
Forgets a transaction.
|
void |
gc() |
Broker |
getAdaptor(java.lang.Class type)
Get a Broker from the Broker Stack that is a particular class
|
ConnectionContext |
getAdminConnectionContext() |
BrokerId |
getBrokerId()
Get the id of the broker
|
java.lang.String |
getBrokerName()
Get the name of the broker
|
long |
getBrokerSequenceId() |
BrokerService |
getBrokerService() |
Connection[] |
getClients() |
java.util.Map<ActiveMQDestination,Destination> |
getDestinationMap()
Returns a reference to the concurrent hash map that holds known destinations, do not modify
|
ActiveMQDestination[] |
getDestinations() |
java.util.Set |
getDestinations(ActiveMQDestination destination)
Provide an exact or wildcard lookup of destinations in the region
|
java.util.Set<ActiveMQDestination> |
getDurableDestinations() |
java.util.concurrent.ThreadPoolExecutor |
getExecutor() |
BrokerInfo[] |
getPeerBrokerInfos()
Get the BrokerInfo's of any connected Brokers
|
TransactionId[] |
getPreparedTransactions(ConnectionContext context)
Gets a list of all the prepared xa transactions.
|
Broker |
getRoot()
Ensure we get the Broker at the top of the Stack
|
Scheduler |
getScheduler() |
PListStore |
getTempDataStore() |
java.net.URI |
getVmConnectorURI() |
boolean |
isExpired(MessageReference messageReference)
Determine if a message has expired -allows default behaviour to be
overriden - as the timestamp set by the producer can be out of sync with
the broker
|
boolean |
isFaultTolerantConfiguration() |
void |
isFull(ConnectionContext context,
Destination destination,
Usage usage)
Called when a Usage reaches a limit
|
boolean |
isStopped() |
void |
messageConsumed(ConnectionContext context,
MessageReference messageReference)
called when message is consumed
|
void |
messageDelivered(ConnectionContext context,
MessageReference messageReference)
Called when message is delivered to the broker
|
void |
messageDiscarded(ConnectionContext context,
Subscription sub,
MessageReference messageReference)
Called when a message is discarded - e.g.
|
void |
messageExpired(ConnectionContext context,
MessageReference message,
Subscription subscription)
A Message has Expired
|
Response |
messagePull(ConnectionContext context,
MessagePull pull)
Allows a consumer to pull a message from a queue
|
void |
networkBridgeStarted(BrokerInfo brokerInfo,
boolean createdByDuplex,
java.lang.String remoteIp) |
void |
networkBridgeStopped(BrokerInfo brokerInfo) |
void |
nowMasterBroker()
called when the broker becomes the master in a master/slave
configuration
|
void |
postProcessDispatch(MessageDispatch messageDispatch)
Notify the Broker that a dispatch has happened
|
int |
prepareTransaction(ConnectionContext context,
TransactionId xid)
Prepares a transaction.
|
void |
preProcessDispatch(MessageDispatch messageDispatch)
Notify the Broker that a dispatch is going to happen
|
void |
processConsumerControl(ConsumerBrokerExchange consumerExchange,
ConsumerControl control) |
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,
java.lang.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(ProducerBrokerExchange producerExchange,
Message message)
Send a message to the broker to using the specified destination.
|
void |
sendToDeadLetterQueue(ConnectionContext context,
MessageReference messageReference,
Subscription subscription)
A message needs to go the a DLQ
|
void |
setAdminConnectionContext(ConnectionContext adminConnectionContext)
Sets the default administration connection context used when configuring
the broker on startup or via JMX
|
void |
slowConsumer(ConnectionContext context,
Destination destination,
Subscription subs)
Called when there is a slow consumer
|
void |
start() |
void |
stop() |
public java.util.Map<ActiveMQDestination,Destination> getDestinationMap()
RegiongetDestinationMap in interface Regionpublic java.util.Set getDestinations(ActiveMQDestination destination)
RegiongetDestinations in interface Regionpublic Broker getAdaptor(java.lang.Class type)
BrokergetAdaptor in interface Brokerpublic BrokerId getBrokerId()
BrokergetBrokerId in interface Brokerpublic java.lang.String getBrokerName()
BrokergetBrokerName in interface Brokerpublic void addConnection(ConnectionContext context, ConnectionInfo info) throws java.lang.Exception
BrokeraddConnection in interface Brokerjava.lang.Exception - TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, java.lang.Throwable error) throws java.lang.Exception
BrokerremoveConnection in interface Brokercontext - 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.java.lang.Exception - TODOpublic void addSession(ConnectionContext context, SessionInfo info) throws java.lang.Exception
BrokeraddSession in interface Brokerjava.lang.Exception - TODOpublic void removeSession(ConnectionContext context, SessionInfo info) throws java.lang.Exception
BrokerremoveSession in interface Brokerjava.lang.Exception - TODOpublic void addProducer(ConnectionContext context, ProducerInfo info) throws java.lang.Exception
BrokeraddProducer in interface BrokeraddProducer in interface Regioncontext - the enviorment the operation is being executed under.java.lang.Exception - TODOpublic void removeProducer(ConnectionContext context, ProducerInfo info) throws java.lang.Exception
BrokerremoveProducer in interface BrokerremoveProducer in interface Regioncontext - the enviorment the operation is being executed under.java.lang.Exception - TODOpublic Connection[] getClients() throws java.lang.Exception
getClients in interface Brokerjava.lang.Exception - TODOpublic ActiveMQDestination[] getDestinations() throws java.lang.Exception
getDestinations in interface Brokerjava.lang.Exception - TODOpublic TransactionId[] getPreparedTransactions(ConnectionContext context) throws java.lang.Exception
BrokergetPreparedTransactions in interface Brokercontext - transaction idsjava.lang.Exception - TODOpublic void beginTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerbeginTransaction in interface Brokerjava.lang.Exception - TODOpublic int prepareTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerprepareTransaction in interface Brokerjava.lang.Exception - TODOpublic void rollbackTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerrollbackTransaction in interface Brokerjava.lang.Exception - TODOpublic void commitTransaction(ConnectionContext context, TransactionId xid, boolean onePhase) throws java.lang.Exception
BrokercommitTransaction in interface Brokerjava.lang.Exception - TODOpublic void forgetTransaction(ConnectionContext context, TransactionId transactionId) throws java.lang.Exception
BrokerforgetTransaction in interface Brokerjava.lang.Exceptionpublic Destination addDestination(ConnectionContext context, ActiveMQDestination destination, boolean flag) throws java.lang.Exception
RegionaddDestination in interface Regiondestination - the destination to create.java.lang.Exception - TODOpublic void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws java.lang.Exception
RegionremoveDestination in interface Regioncontext - 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 quiescejava.lang.Exception - TODOpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws java.lang.Exception
RegionaddConsumer in interface Regioncontext - the environment the operation is being executed under.java.lang.Exception - TODOpublic void removeConsumer(ConnectionContext context, ConsumerInfo info) throws java.lang.Exception
RegionremoveConsumer in interface Regioncontext - the environment the operation is being executed under.java.lang.Exception - TODOpublic void removeSubscription(ConnectionContext context, RemoveSubscriptionInfo info) throws java.lang.Exception
RegionremoveSubscription in interface Regioncontext - the environment the operation is being executed under.info - TODOjava.lang.Exception - TODOpublic void send(ProducerBrokerExchange producerExchange, Message message) throws java.lang.Exception
Regionpublic void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws java.lang.Exception
Regionacknowledge in interface RegionconsumerExchange - the environment the operation is being executed under.java.lang.Exception - TODOpublic void start()
throws java.lang.Exception
public void stop()
throws java.lang.Exception
public void addBroker(Connection connection, BrokerInfo info)
Brokerpublic void removeBroker(Connection connection, BrokerInfo info)
BrokerremoveBroker in interface Brokerpublic BrokerInfo[] getPeerBrokerInfos()
BrokergetPeerBrokerInfos in interface Brokerpublic void preProcessDispatch(MessageDispatch messageDispatch)
BrokerpreProcessDispatch in interface Brokerpublic void postProcessDispatch(MessageDispatch messageDispatch)
BrokerpostProcessDispatch in interface Brokerpublic void processDispatchNotification(MessageDispatchNotification messageDispatchNotification) throws java.lang.Exception
RegionprocessDispatchNotification in interface Regionjava.lang.Exception - TODOpublic boolean isStopped()
public java.util.Set<ActiveMQDestination> getDurableDestinations()
getDurableDestinations in interface Brokerpublic void addDestinationInfo(ConnectionContext context, DestinationInfo info) throws java.lang.Exception
BrokeraddDestinationInfo in interface Brokerjava.lang.Exceptionpublic void removeDestinationInfo(ConnectionContext context, DestinationInfo info) throws java.lang.Exception
BrokerremoveDestinationInfo in interface Brokerjava.lang.Exceptionpublic boolean isFaultTolerantConfiguration()
isFaultTolerantConfiguration in interface Brokerpublic ConnectionContext getAdminConnectionContext()
getAdminConnectionContext in interface Brokerpublic void setAdminConnectionContext(ConnectionContext adminConnectionContext)
BrokersetAdminConnectionContext in interface Brokerpublic Response messagePull(ConnectionContext context, MessagePull pull)
RegionmessagePull in interface Regionpublic PListStore getTempDataStore()
getTempDataStore in interface Brokerpublic java.net.URI getVmConnectorURI()
getVmConnectorURI in interface Brokerpublic void brokerServiceStarted()
BrokerbrokerServiceStarted in interface Brokerpublic BrokerService getBrokerService()
getBrokerService in interface Brokerpublic boolean isExpired(MessageReference messageReference)
Brokerpublic void messageExpired(ConnectionContext context, MessageReference message, Subscription subscription)
BrokermessageExpired in interface Brokerpublic void sendToDeadLetterQueue(ConnectionContext context, MessageReference messageReference, Subscription subscription)
BrokersendToDeadLetterQueue in interface Brokerpublic Broker getRoot()
Brokerpublic long getBrokerSequenceId()
getBrokerSequenceId in interface Brokerpublic void fastProducer(ConnectionContext context, ProducerInfo producerInfo, ActiveMQDestination destination)
BrokerfastProducer in interface Brokerpublic void isFull(ConnectionContext context, Destination destination, Usage usage)
Brokerpublic void messageConsumed(ConnectionContext context, MessageReference messageReference)
BrokermessageConsumed in interface Brokerpublic void messageDelivered(ConnectionContext context, MessageReference messageReference)
BrokermessageDelivered in interface Brokerpublic void messageDiscarded(ConnectionContext context, Subscription sub, MessageReference messageReference)
BrokermessageDiscarded in interface Brokerpublic void slowConsumer(ConnectionContext context, Destination destination, Subscription subs)
BrokerslowConsumer in interface Brokerpublic void nowMasterBroker()
BrokernowMasterBroker in interface Brokerpublic void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control)
processConsumerControl in interface Regionpublic Scheduler getScheduler()
getScheduler in interface Brokerpublic java.util.concurrent.ThreadPoolExecutor getExecutor()
getExecutor in interface Brokerpublic void networkBridgeStarted(BrokerInfo brokerInfo, boolean createdByDuplex, java.lang.String remoteIp)
networkBridgeStarted in interface Brokerpublic void networkBridgeStopped(BrokerInfo brokerInfo)
networkBridgeStopped in interface BrokerCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.