Examples of QpidService


Examples of org.apache.qpid.management.domain.services.QpidService

    {
        this._name = className;
        this._parent = parentPackage;
        this._hash = hash;
        this._type = type;
        this._service = new QpidService(_parent.getOwnerId());
       
        _logger.debug(
                Messages.QMAN_200020_ENTITY_DEFINITION_HAS_BEEN_BUILT,
                _parent.getOwnerId(),
                _parent.getName(),
View Full Code Here

Examples of org.apache.qpid.management.domain.services.QpidService

    QpidEntity(String className, Binary hash, QpidPackage parentPackage)
    {
        this._name = className;
        this._parent = parentPackage;
        this._hash = hash;
        this._service = new QpidService(_parent.getOwnerId());
       
        _logger.debug(
                Messages.QMAN_200020_ENTITY_DEFINITION_HAS_BEEN_BUILT,
                _parent.getOwnerId(),
                _parent.getName(),
View Full Code Here

Examples of org.apache.qpid.management.domain.services.QpidService

    {
        this._name = className;
        this._parent = parentPackage;
        this._hash = hash;
        this._type = type;
        this._service = new QpidService(_parent.getOwnerId());
       
        _logger.debug(
                Messages.QMAN_200020_ENTITY_DEFINITION_HAS_BEEN_BUILT,
                _parent.getOwnerId(),
                _parent.getName(),
View Full Code Here

Examples of org.wso2.carbon.qpid.service.QpidService

    }

    protected Properties getInitialContextProperties(String userName, String password) {

        Properties initialContextProperties = new Properties();
        QpidService qpidService = EventBrokerHolder.getInstance().getQpidService();
        initialContextProperties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
        initialContextProperties.put(CarbonConstants.REQUEST_BASE_CONTEXT, "true");
        String connectionURL = null;
        if (MB_TYPE_LOCAL.equals(this.type)) {
            connectionURL = qpidService.getInternalTCPConnectionURL(userName, qpidService.getAccessKey());
        } else {
            connectionURL = "amqp://" + userName + ":" + this.accessKey
                    + "@" + clientID + "/" + this.virtualHostName
                    + "?brokerlist='tcp://" + this.hostName + ":" + this.qpidPort + "'";
        }
View Full Code Here

Examples of org.wso2.carbon.qpid.service.QpidService

     * @throws JMSException
     */
    private SharedConnection createNewConnection(String userName)
            throws NamingException, JMSException {
        // Create IC
        QpidService qpidService = MessageBoxServiceValueHolder.getInstance().getQpidService();

        Properties properties = new Properties();
        properties.put(Context.INITIAL_CONTEXT_FACTORY, QPID_ICF);
        properties.put(CarbonConstants.REQUEST_BASE_CONTEXT, "true");
        String connectionURL = null;

        if (MB_TYPE_LOCAL.equals(this.type)) {
            connectionURL = qpidService.getInternalTCPConnectionURL(userName, qpidService.getAccessKey());
        } else {
            connectionURL = "amqp://" + userName + ":" + this.accessKey
                            + "@" + clientID + "/" + this.virtualHostName
                            + "?brokerlist='tcp://" + this.hostName + ":" + this.qpidPort + "'";
        }
View Full Code Here

Examples of org.wso2.carbon.qpid.service.QpidService

    }

    private Object getAttribute(String queueName, String attributeName) throws MessageBoxException {
        MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
        QpidService qpidService = MessageBoxServiceValueHolder.getInstance().getQpidService();
        try {
            ObjectName objectName =
                    new ObjectName("org.apache.qpid:type=VirtualHost.Queue,VirtualHost=\""
                                   + qpidService.getVirtualHostName() + "\",name=\"" +
                                   Utils.getTenantBasedQueueName(queueName) + "\"");
            return mBeanServer.getAttribute(objectName, attributeName);
        } catch (MalformedObjectNameException e) {
            throw new MessageBoxException("Can not find the mbean for the queue " + queueName);
        } catch (InstanceNotFoundException e) {
View Full Code Here

Examples of org.wso2.carbon.qpid.service.QpidService

        }
    }

    public SubscriptionDetails[] getJMSSubscriptionsForTopic(String topic)
            throws EventAdminException {
        QpidService qpidService = EventAdminHolder.getInstance().getQpidService();
        return qpidService.getSubscriptions(topic, true);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.