Interface QpidService

All Known Implementing Classes:
QpidServiceImpl

public interface QpidService
This is an interface that declares access methods for properties exposed from the qpid component to other Carbon components.
  • Method Details

    • getAccessKey

      String getAccessKey()
      Get the access key that should be used for internal authentication. The access key is generated when the authentication bundle is activated and published with the AuthenticationService
      Returns:
      Access key
    • getClientID

      String getClientID()
      Get client id (machine name) that is used to connect to the broker
      Returns:
      Client ID
    • getVirtualHostName

      String getVirtualHostName()
      Get default virtual host name of the broker
      Returns:
      Default virtual host name
    • getHostname

      String getHostname()
      Get hostname of the machine that broker (i.e.Carbon) runs on
      Returns:
      Carbon hostname
    • getAMQPPort

      Integer getAMQPPort()
    • setAMQPPort

      void setAMQPPort(Integer amqpPort)
    • getAMQPSSLPort

      Integer getAMQPSSLPort()
    • setAMQPSSLPort

      void setAMQPSSLPort(Integer amqpSSLPort)
    • getMqttPort

      Integer getMqttPort()
    • setMqttPort

      void setMqttPort(Integer mqttPort)
    • getMqttSSLPort

      Integer getMqttSSLPort()
    • setMqttSSLPort

      void setMqttSSLPort(Integer mqttSSLPort)
    • getInVMConnectionURL

      String getInVMConnectionURL(String username)
      Get In-VM AMQP connection URL for internal components
      Parameters:
      username - Authentication user
      Returns:
      Internal AMQP connection URL
    • getTCPConnectionURL

      String getTCPConnectionURL(String username, String password)
      Get AMQP connection URL for external applications
      Parameters:
      username - Authentication username
      password - Authentication password
      Returns:
      External AMQP connection URL
    • getTCPConnectionURL

      String getTCPConnectionURL(String username, String password, String clientID)
      Get AMQP connection URL for external applications
      Parameters:
      username - Authentication username
      password - Authentication password
      clientID - Owner name
      Returns:
      External AMQP connection URL
    • getInternalTCPConnectionURL

      String getInternalTCPConnectionURL(String username, String password)
      Get AMQP connection URL for internal applications
      Parameters:
      username - Authentication username
      password - Authentication password
      Returns:
      External AMQP connection URL
    • getInternalTCPConnectionURL

      String getInternalTCPConnectionURL(String username, String password, String clientID)
      Get AMQP connection URL for internal applications
      Parameters:
      username - Authentication username
      password - Authentication password
      clientID - Owner name
      Returns:
      External AMQP connection URL
    • getQpidHome

      String getQpidHome()
      Get Qpid home directory
      Returns:
      Absolute path to the location where Qpid configuration files reside
    • getQueues

      org.wso2.carbon.andes.commons.QueueDetails[] getQueues(boolean isDurable)
      Get details about all queues (durable/non-durable) created in the broker
      Parameters:
      isDurable - Durable queues?
      Returns:
      An array of QueueDetails objects
    • getSubscriptions

      org.wso2.carbon.andes.commons.SubscriptionDetails[] getSubscriptions(String topic, boolean isDurable)
      Get details about all subscriptions (durable/non-durable) created in the broker
      Parameters:
      topic - Name of the topic that subscriptions bound to
      isDurable - Durable subscriptions?
      Returns:
    • getIfSSLOnly

      boolean getIfSSLOnly() throws Exception
      Return if option is enabled for embedded-qpid
      Returns:
      Throws:
      Exception
    • registerBrokerLifecycleListener

      void registerBrokerLifecycleListener(BrokerLifecycleListener brokerLifecycleListener)
      Register broker lifecycle listener.
      Parameters:
      brokerLifecycleListener -