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
 javax.management.openmbean.TabularData bindings()
          Returns all the bindings this exchange has with the queues.
 void createNewBinding(java.lang.String queueName, java.lang.String binding)
          Creates new binding with the given queue and binding.
 java.lang.String getExchangeType()
           
 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.
 

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

getExchangeType

java.lang.String getExchangeType()
                                 throws java.io.IOException
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

bindings

javax.management.openmbean.TabularData bindings()
                                                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

createNewBinding

void createNewBinding(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


Copyright © 2007. All Rights Reserved.