Examples of QMFObject


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

Examples of hermes.ext.qpid.qmf.QMFObject

            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

Examples of hermes.ext.qpid.qmf.QMFObject

        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

Examples of hermes.ext.qpid.qmf.QMFObject

        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

Examples of org.apache.qpid.agent.annotations.QMFObject

    // FIXME: Need to store these keys off so we dont create alot of objects
    protected Key getClassKey(Class cls)
    {
        Key key = new Key();
        QMFObject objAnnotation = (QMFObject) cls
                .getAnnotation(QMFObject.class);
        if (objAnnotation != null)
        {
            key.className = objAnnotation.className();
            key.packageName = objAnnotation.packageName();
            key.object = true;
        } else
        {
            QMFType typeAnnotation = (QMFType) cls.getAnnotation(QMFType.class);
            if (typeAnnotation != null)
View Full Code Here

Examples of org.apache.qpid.agent.annotations.QMFObject

    // FIXME: Need to store these keys off so we dont create alot of objects
    protected Key getClassKey(Class cls)
    {
        Key key = new Key();
        QMFObject objAnnotation = (QMFObject) cls
                .getAnnotation(QMFObject.class);
        if (objAnnotation != null)
        {
            key.className = objAnnotation.className();
            key.packageName = objAnnotation.packageName();
            key.object = true;
        } else
        {
            QMFType typeAnnotation = (QMFType) cls.getAnnotation(QMFType.class);
            if (typeAnnotation != null)
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.