public class UDPTraceBrokerPlugin extends BrokerPluginSupport
| Modifier and Type | Field and Description |
|---|---|
protected java.net.SocketAddress |
address |
protected boolean |
broadcast |
protected BrokerId |
brokerId |
protected java.net.URI |
destination |
protected int |
maxTraceDatagramSize |
protected java.net.DatagramSocket |
socket |
protected WireFormat |
wireFormat |
protected WireFormatFactory |
wireFormatFactory |
next| Constructor and Description |
|---|
UDPTraceBrokerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledge(ConsumerBrokerExchange consumerExchange,
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)
Adds a consumer.
|
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.
|
protected java.net.DatagramSocket |
createSocket() |
protected java.net.SocketAddress |
createSocketAddress(java.net.URI location) |
protected WireFormat |
createWireFormat() |
protected OpenWireFormatFactory |
createWireFormatFactory() |
void |
forgetTransaction(ConnectionContext context,
TransactionId xid)
Forgets a transaction.
|
java.net.SocketAddress |
getAddress() |
java.net.URI |
getDestination() |
int |
getMaxTraceDatagramSize() |
WireFormat |
getWireFormat() |
WireFormatFactory |
getWireFormatFactory() |
boolean |
isBroadcast() |
Response |
messagePull(ConnectionContext context,
MessagePull pull)
Allows a consumer to pull a message from a queue
|
void |
postProcessDispatch(MessageDispatch messageDispatch)
Notify the Broker that a dispatch has happened
|
int |
prepareTransaction(ConnectionContext context,
TransactionId xid)
Prepares a transaction.
|
void |
processDispatchNotification(MessageDispatchNotification messageDispatchNotification)
Process a notification of a dispatch - used by a Slave Broker
|
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 messageSend)
Send a message to the broker to using the specified destination.
|
void |
setAddress(java.net.SocketAddress address) |
void |
setBroadcast(boolean broadcast) |
void |
setDestination(java.net.URI destination) |
void |
setMaxTraceDatagramSize(int maxTraceDatagramSize) |
void |
setWireFormat(WireFormat wireFormat) |
void |
setWireFormatFactory(WireFormatFactory wireFormatFactory) |
void |
start() |
void |
stop() |
installPluginaddBroker, addDestination, brokerServiceStarted, fastProducer, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, preProcessDispatch, processConsumerControl, reapplyInterceptor, removeBroker, sendToDeadLetterQueue, setAdminConnectionContext, setNext, slowConsumerprotected WireFormat wireFormat
protected WireFormatFactory wireFormatFactory
protected int maxTraceDatagramSize
protected java.net.URI destination
protected java.net.DatagramSocket socket
protected BrokerId brokerId
protected java.net.SocketAddress address
protected boolean broadcast
public void start()
throws java.lang.Exception
start in interface Servicestart in class BrokerPluginSupportjava.lang.Exceptionprotected java.net.DatagramSocket createSocket()
throws java.io.IOException
java.io.IOExceptionpublic void stop()
throws java.lang.Exception
stop in interface Servicestop in class BrokerPluginSupportjava.lang.Exceptionpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws java.lang.Exception
Regionsend in interface Regionsend in class MutableBrokerFilterproducerExchange - the environment the operation is being executed under.java.lang.Exception - TODOpublic void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws java.lang.Exception
Regionacknowledge in interface Regionacknowledge in class MutableBrokerFilterconsumerExchange - the environment the operation is being executed under.java.lang.Exception - TODOpublic void addConnection(ConnectionContext context, ConnectionInfo info) throws java.lang.Exception
BrokeraddConnection in interface BrokeraddConnection in class MutableBrokerFilterjava.lang.Exception - TODOpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws java.lang.Exception
RegionaddConsumer in interface RegionaddConsumer in class MutableBrokerFiltercontext - the environment the operation is being executed under.java.lang.Exception - TODOpublic void addDestinationInfo(ConnectionContext context, DestinationInfo info) throws java.lang.Exception
BrokeraddDestinationInfo in interface BrokeraddDestinationInfo in class MutableBrokerFilterjava.lang.Exceptionpublic void addProducer(ConnectionContext context, ProducerInfo info) throws java.lang.Exception
BrokeraddProducer in interface BrokeraddProducer in interface RegionaddProducer in class MutableBrokerFiltercontext - the enviorment the operation is being executed under.java.lang.Exception - TODOpublic void addSession(ConnectionContext context, SessionInfo info) throws java.lang.Exception
BrokeraddSession in interface BrokeraddSession in class MutableBrokerFilterjava.lang.Exception - TODOpublic void beginTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerbeginTransaction in interface BrokerbeginTransaction in class MutableBrokerFilterjava.lang.Exception - TODOpublic void commitTransaction(ConnectionContext context, TransactionId xid, boolean onePhase) throws java.lang.Exception
BrokercommitTransaction in interface BrokercommitTransaction in class MutableBrokerFilterjava.lang.Exception - TODOpublic void forgetTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerforgetTransaction in interface BrokerforgetTransaction in class MutableBrokerFilterjava.lang.Exceptionpublic Response messagePull(ConnectionContext context, MessagePull pull) throws java.lang.Exception
RegionmessagePull in interface RegionmessagePull in class MutableBrokerFilterjava.lang.Exceptionpublic int prepareTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerprepareTransaction in interface BrokerprepareTransaction in class MutableBrokerFilterjava.lang.Exception - TODOpublic void postProcessDispatch(MessageDispatch messageDispatch)
BrokerpostProcessDispatch in interface BrokerpostProcessDispatch in class MutableBrokerFilterpublic void processDispatchNotification(MessageDispatchNotification messageDispatchNotification) throws java.lang.Exception
RegionprocessDispatchNotification in interface RegionprocessDispatchNotification in class MutableBrokerFilterjava.lang.Exception - TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, java.lang.Throwable error) throws java.lang.Exception
BrokerremoveConnection in interface BrokerremoveConnection in class MutableBrokerFiltercontext - 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 removeConsumer(ConnectionContext context, ConsumerInfo info) throws java.lang.Exception
RegionremoveConsumer in interface RegionremoveConsumer in class MutableBrokerFiltercontext - the environment the operation is being executed under.java.lang.Exception - TODOpublic void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws java.lang.Exception
RegionremoveDestination in interface RegionremoveDestination in class MutableBrokerFiltercontext - 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 void removeDestinationInfo(ConnectionContext context, DestinationInfo info) throws java.lang.Exception
BrokerremoveDestinationInfo in interface BrokerremoveDestinationInfo in class MutableBrokerFilterjava.lang.Exceptionpublic void removeProducer(ConnectionContext context, ProducerInfo info) throws java.lang.Exception
BrokerremoveProducer in interface BrokerremoveProducer in interface RegionremoveProducer in class MutableBrokerFiltercontext - the enviorment the operation is being executed under.java.lang.Exception - TODOpublic void removeSession(ConnectionContext context, SessionInfo info) throws java.lang.Exception
BrokerremoveSession in interface BrokerremoveSession in class MutableBrokerFilterjava.lang.Exception - TODOpublic void removeSubscription(ConnectionContext context, RemoveSubscriptionInfo info) throws java.lang.Exception
RegionremoveSubscription in interface RegionremoveSubscription in class MutableBrokerFiltercontext - the environment the operation is being executed under.info - TODOjava.lang.Exception - TODOpublic void rollbackTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerrollbackTransaction in interface BrokerrollbackTransaction in class MutableBrokerFilterjava.lang.Exception - TODOpublic WireFormat getWireFormat()
protected WireFormat createWireFormat()
public void setWireFormat(WireFormat wireFormat)
public WireFormatFactory getWireFormatFactory()
protected OpenWireFormatFactory createWireFormatFactory()
public void setWireFormatFactory(WireFormatFactory wireFormatFactory)
protected java.net.SocketAddress createSocketAddress(java.net.URI location)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic java.net.URI getDestination()
public void setDestination(java.net.URI destination)
public int getMaxTraceDatagramSize()
public void setMaxTraceDatagramSize(int maxTraceDatagramSize)
public boolean isBroadcast()
public void setBroadcast(boolean broadcast)
public java.net.SocketAddress getAddress()
public void setAddress(java.net.SocketAddress address)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.