org.apache.qpid.server.exchange
Interface ManagedExchange

All Known Implementing Classes:
AbstractExchange.ExchangeMBean

public interface ManagedExchange

The management interface exposed to allow management of an Exchange.

Version:
0.1
Author:
Robert J. Greig, Bhupendra Bhardwaj

Field Summary
static java.lang.String TYPE
           
 
Method Summary
 void createBinding(java.lang.String queueName, java.lang.String binding)
          Creates new binding with the given queue and binding.
 java.lang.String getName()
          Returns the name of the managed exchange.
 java.lang.Integer getTicketNo()
           
 boolean isAutoDelete()
          Tells if the exchange is set for autodelete or not.
 boolean isDurable()
          Tells if the exchange is durable or not.
 javax.management.openmbean.TabularData viewBindings()
          Returns all the bindings this exchange has with the queues.
 

Field Detail

TYPE

static final java.lang.String TYPE
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
                         throws java.io.IOException
Returns the name of the managed exchange.

Returns:
the name of the exchange.
Throws:
java.io.IOException

getTicketNo

java.lang.Integer getTicketNo()
                              throws java.io.IOException
Throws:
java.io.IOException

isDurable

boolean isDurable()
                  throws java.io.IOException
Tells if the exchange is durable or not.

Returns:
true if the exchange is durable.
Throws:
java.io.IOException

isAutoDelete

boolean isAutoDelete()
                     throws java.io.IOException
Tells if the exchange is set for autodelete or not.

Returns:
true if the exchange is set as autodelete.
Throws:
java.io.IOException

viewBindings

javax.management.openmbean.TabularData viewBindings()
                                                    throws java.io.IOException,
                                                           javax.management.JMException
Returns all the bindings this exchange has with the queues.

Returns:
the bindings with the exchange.
Throws:
java.io.IOException
javax.management.JMException

createBinding

void createBinding(java.lang.String queueName,
                   java.lang.String binding)
                   throws javax.management.JMException
Creates new binding with the given queue and binding.

Parameters:
queueName -
binding -
Throws:
javax.management.JMException