Package hermes.ext.qpid.qmf

Examples of hermes.ext.qpid.qmf.QMFObject


            QpidManager qpidManager = new QpidManager(QpidAdminFactory.buildEnv(brokerUrl));
            List<Map<String, ?>> objects = qpidManager.getObjects(schema);

            for (Map<String, ?> i : objects) {

                QMFObject qmfObject = new QMFObject(i);
                System.out.println("the i=[" + qmfObject + "]");
            }
            qpidManager.close();
        } catch (Exception e) {
View Full Code Here


            log.info("getDepth destination name=[" + name + "]");

            List<Map<String, ?>> objects = qpidManager.getObjects(QmfTypes.QUEUE);
            for (Map<String, ?> i : objects) {

                QMFObject qmfObject = new QMFObject(i);
                if (name.equals(qmfObject.getName())) {

                    return qmfObject.getDepth().intValue();
                }
            }
            return result;
        } catch (UnsupportedEncodingException e) {
View Full Code Here

        try {

            List<Map<String, ?>> objects = qpidManager.getObjects(QmfTypes.QUEUE);
            for (Map<String, ?> i : objects) {

                QMFObject qmfObject = new QMFObject(i);
                String queueName = qmfObject.getName();

                if(acceptDestination(queueName)) {
                    DestinationConfig destinationConfig = buildDestinationConfig(queueName);
                    PropertySetConfig propertySetConfig = new PropertySetConfig();

                    for (String key : qmfObject.keySet()) {

                        PropertyConfig propertyConfig = new PropertyConfig();
                        propertyConfig.setName(key);
                        propertyConfig.setValue(qmfObject.getStringValue(key));
                        propertySetConfig.getProperty().add(propertyConfig);
                    }

                    destinationConfig.setProperties(propertySetConfig);
                    rval.add(destinationConfig);
View Full Code Here

        Map<String, Object> rval = new HashMap<String, Object>();
        try {

            List<Map<String, ?>> objects = qpidManager.getObjects(QmfTypes.QUEUE);
            for (Map<String, ?> i : objects) {
                QMFObject qmfObject = new QMFObject(i);
                String name = qmfObject.getName();
                if (destination.getName().equals(name)) {
                    for (String key : qmfObject.keySet()) {
                        rval.put(key, qmfObject.getStringValue(key));
                    }
                    return rval;
                }
            }
        } catch (UnsupportedEncodingException e) {
View Full Code Here

TOP

Related Classes of hermes.ext.qpid.qmf.QMFObject

Copyright © 2018 www.massapicom. 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.