Examples of QmfData


Examples of org.apache.qpid.qmf2.common.QmfData

        if (args.length > 2)
        {
            bindingIdentifier = bindingIdentifier + "/" + args[2];
        }

        QmfData arguments = new QmfData();
        arguments.setValue("type", "binding");
        arguments.setValue("name", bindingIdentifier);

        try
        {
            _broker.invokeMethod("delete", arguments);
        }
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

            response.setStringProperty("method", "response");
            response.setStringProperty("qmf.opcode", "_exception");
            response.setStringProperty("qmf.agent", _name);
            response.setStringProperty("qpid.subject", handle.getRoutingKey());

            QmfData exception = new QmfData();
            exception.setValue("error_text", message);
            response.setObject("_values", exception.mapEncode());
            sendResponse(handle, response);
        }
        catch (JMSException jmse)
        {
            _log.info("JMSException {} caught in handleLocateRequest()", jmse.getMessage());
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

            }
            else if (opcode.equals("_subscribe_cancel_indication"))
            {
                if (AMQPMessage.isAMQPMap(message))
                {
                    QmfData qmfSubscribe = new QmfData(AMQPMessage.getMap(message));
                    String subscriptionId = qmfSubscribe.getStringValue("_subscription_id");
                    if (this instanceof AgentExternal)
                    {
                        _eventListener.onEvent(new UnsubscribeRequestWorkItem(subscriptionId));
                    }
                    else
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

                return;
            }

            try
            {
                QmfData arguments = new QmfData();
                arguments.setValue("request", (long)(_purge*msgDepth));
                queue.invokeMethod("purge", arguments);
            }
            catch (QmfException e)
            {
                System.out.println(e.getMessage());
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

            List<Agent> agentList = Arrays.asList(new Agent[] {agent});
            List<QmfConsoleData> objects = _console.getObjects(pkg, cls, agentList);

            // Parse the args String
            QmfData inArgs = (args == null) ? new QmfData() : new QmfData(new AddressParser(args).map());

            // Find the required QmfConsoleData object and invoke the specified command
            MethodResult results = null;
            for (QmfConsoleData object : objects)
            {
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

        {
            _args = null;
        }
        else
        {
            _args = new QmfData(args);
            _args.setSubtypes((Map)m.get("_subtypes"));
        }
        _userId = QmfData.getString(m.get("_user_id"));
    }
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

                                Map args = (arguments instanceof Map) ? (Map)arguments : null;
                                //System.out.println("method: " + method + ", args: " + args);

                                // Parse the args if present into a QmfData (needed by invokeMethod).
                                QmfData inArgs = (args == null) ? new QmfData() : new QmfData(args);

                                // Invoke the specified method on the QmfConsoleData we've created.
                                MethodResult results = null;

                                _log.info("invokeMethod: {}", request);
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

     * @param json the JSON String that we wish to decode into a QmfData.
     * @return the QmfData encoding of the JSON String.
     */
    public final static QmfData toQmfData(final String json)
    {
        return new QmfData(toMap(json));
    }
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

    @SuppressWarnings("unchecked")
    public void invokeMethod(Agent agent, Handle handle, String methodName, QmfData inArgs)
    {
        if (methodName.equals("create") || methodName.equals("delete"))
        {
            QmfData outArgs = new QmfData();

            String name = inArgs.getStringValue("name");
            String type = inArgs.getStringValue("type");

            NameParser nameParser = new NameParser(name, type);
View Full Code Here

Examples of org.apache.qpid.qmf2.common.QmfData

            response.setStringProperty("method", "response");
            response.setStringProperty("qmf.opcode", "_exception");
            response.setStringProperty("qmf.agent", _name);
            response.setStringProperty("qpid.subject", handle.getRoutingKey());

            QmfData exception = new QmfData();
            exception.setValue("error_text", message);
            response.setObject("_values", exception.mapEncode());
            sendResponse(handle, response);
        }
        catch (JMSException jmse)
        {
            _log.info("JMSException {} caught in handleLocateRequest()", jmse.getMessage());
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.