Package org.wso2.carbon.andes.service
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 Summary
Modifier and TypeMethodDescriptionGet the access key that should be used for internal authentication.Get client id (machine name) that is used to connect to the brokerGet hostname of the machine that broker (i.e.Carbon) runs onbooleanReturn ifoption is enabled for embedded-qpid getInternalTCPConnectionURL(String username, String password) Get AMQP connection URL for internal applicationsgetInternalTCPConnectionURL(String username, String password, String clientID) Get AMQP connection URL for internal applicationsgetInVMConnectionURL(String username) Get In-VM AMQP connection URL for internal componentsGet Qpid home directoryorg.wso2.carbon.andes.commons.QueueDetails[]getQueues(boolean isDurable) Get details about all queues (durable/non-durable) created in the brokerorg.wso2.carbon.andes.commons.SubscriptionDetails[]getSubscriptions(String topic, boolean isDurable) Get details about all subscriptions (durable/non-durable) created in the brokergetTCPConnectionURL(String username, String password) Get AMQP connection URL for external applicationsgetTCPConnectionURL(String username, String password, String clientID) Get AMQP connection URL for external applicationsGet default virtual host name of the brokervoidregisterBrokerLifecycleListener(BrokerLifecycleListener brokerLifecycleListener) Register broker lifecycle listener.voidsetAMQPPort(Integer amqpPort) voidsetAMQPSSLPort(Integer amqpSSLPort) voidsetMqttPort(Integer mqttPort) voidsetMqttSSLPort(Integer mqttSSLPort)
-
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
-
getAMQPSSLPort
Integer getAMQPSSLPort() -
setAMQPSSLPort
-
getMqttPort
Integer getMqttPort() -
setMqttPort
-
getMqttSSLPort
Integer getMqttSSLPort() -
setMqttSSLPort
-
getInVMConnectionURL
Get In-VM AMQP connection URL for internal components- Parameters:
username- Authentication user- Returns:
- Internal AMQP connection URL
-
getTCPConnectionURL
Get AMQP connection URL for external applications- Parameters:
username- Authentication usernamepassword- Authentication password- Returns:
- External AMQP connection URL
-
getTCPConnectionURL
Get AMQP connection URL for external applications- Parameters:
username- Authentication usernamepassword- Authentication passwordclientID- Owner name- Returns:
- External AMQP connection URL
-
getInternalTCPConnectionURL
Get AMQP connection URL for internal applications- Parameters:
username- Authentication usernamepassword- Authentication password- Returns:
- External AMQP connection URL
-
getInternalTCPConnectionURL
Get AMQP connection URL for internal applications- Parameters:
username- Authentication usernamepassword- Authentication passwordclientID- 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 toisDurable- Durable subscriptions?- Returns:
-
getIfSSLOnly
Return ifoption is enabled for embedded-qpid - Returns:
- Throws:
Exception
-
registerBrokerLifecycleListener
Register broker lifecycle listener.- Parameters:
brokerLifecycleListener-
-