Examples of QMFEvent


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

        if (wi.getType() == EVENT_RECEIVED)
        {
            EventReceivedWorkItem item = (EventReceivedWorkItem)wi;
            Agent agent = item.getAgent();
            QmfEvent event = item.getEvent();

            String className = event.getSchemaClassId().getClassName();
            System.out.println("Event: " + className);
//event.listValues();   
        }

        if (wi.getType() == METHOD_RESPONSE)
View Full Code Here

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

     * Factory method to create an Unbind Event Object with timestamp of now.
     * @return the newly created Unbind Event Object.
     */
    public QmfEvent createUnbindEvent()
    {
        QmfEvent unbind = new QmfEvent(_unbindSchema);
        unbind.setSeverity("info");
        unbind.setValue("exName", _binding.getAttribute("exchange"));
        unbind.setValue("key", _binding.getName());
        unbind.setValue("qName", _binding.getAttribute("queue"));
        // TODO Not sure of a way to get these for Java Broker Exchange.
        //unbind.setValue("rhost", _connection.getName());
        //unbind.setValue("user", getStringValue("authIdentity"));
        return unbind;
    }
View Full Code Here

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

     * Factory method to create a Bind Event Object with timestamp of now.
     * @return the newly created Bind Event Object.
     */
    public QmfEvent createBindEvent()
    {
        QmfEvent bind = new QmfEvent(_bindSchema);
        bind.setSeverity("info");
        bind.setValue("args", _binding.getArguments());
        bind.setValue("exName", _binding.getAttribute("exchange"));
        bind.setValue("key", _binding.getName());
        bind.setValue("qName", _binding.getAttribute("queue"));
        // TODO Not sure of a way to get these for Java Broker Exchange.
        //bind.setValue("rhost", _connection.getName());
        //bind.setValue("user", getStringValue("authIdentity"));
        return bind;
    }
View Full Code Here

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

     * Factory method to create an Unbind Event Object with timestamp of now.
     * @return the newly created Unbind Event Object.
     */
    public QmfEvent createUnbindEvent()
    {
        QmfEvent unbind = new QmfEvent(_unbindSchema);
        unbind.setSeverity("info");
        unbind.setValue("exName", _binding.getAttribute("exchange"));
        unbind.setValue("key", _binding.getName());
        unbind.setValue("qName", _binding.getAttribute("queue"));
        // TODO Not sure of a way to get these for Java Broker Exchange.
        //unbind.setValue("rhost", _connection.getName());
        //unbind.setValue("user", getStringValue("authIdentity"));
        return unbind;
    }
View Full Code Here

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

     * Factory method to create an Exchange Declare Event Object with timestamp of now.
     * @return the newly created Exchange Declare Event Object.
     */
    public QmfEvent createExchangeDeclareEvent()
    {
        QmfEvent exchangeDeclare = new QmfEvent(_exchangeDeclareSchema);
        exchangeDeclare.setSeverity("info");
        exchangeDeclare.setValue("altEx", ""); // Java Broker can't set Alternate Exchange on Exchange
        exchangeDeclare.setValue("args", Collections.EMPTY_MAP);
        exchangeDeclare.setValue("autoDel", getBooleanValue("autoDelete"));
        exchangeDeclare.setValue("disp", "created");
        exchangeDeclare.setValue("durable", getBooleanValue("durable"));
        exchangeDeclare.setValue("exName", _name);
        exchangeDeclare.setValue("exType", getStringValue("type"));
        // TODO Not sure of a way to get these for Java Broker Exchange.
        //exchangeDeclare.setValue("rhost", _connection.getName());
        //exchangeDeclare.setValue("user", getStringValue("authIdentity"));
        return exchangeDeclare;
    }
View Full Code Here

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

     * Factory method to create an Exchange Delete Event Object with timestamp of now.
     * @return the newly created Exchange Delete Event Object.
     */
    public QmfEvent createExchangeDeleteEvent()
    {
        QmfEvent exchangeDelete = new QmfEvent(_exchangeDeleteSchema);
        exchangeDelete.setSeverity("info");
        exchangeDelete.setValue("exName", _name);
        // TODO Not sure of a way to get these for Java Broker Exchange.
        //exchangeDelete.setValue("rhost", _connection.getName());
        //exchangeDelete.setValue("user", getStringValue("authIdentity"));
        return exchangeDelete;
    }
View Full Code Here

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

     * Factory method to create a Client Connect Event Object with timestamp of now.
     * @return the newly created Client Connect Event Object.
     */
    public QmfEvent createClientConnectEvent()
    {
        QmfEvent clientConnect = new QmfEvent(_clientConnectSchema);
        clientConnect.setSeverity("info");
        // TODO Set properties Map - can't really get much info from the org.apache.qpid.server.model.Connection yet.
        clientConnect.setValue("rhost", _connection.getName());
        clientConnect.setValue("user", getStringValue("authIdentity"));
        return clientConnect;
    }
View Full Code Here

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

     * Factory method to create a Client Disconnect Event Object with timestamp of now.
     * @return the newly created Client Disconnect Event Object.
     */
    public QmfEvent createClientDisconnectEvent()
    {
        QmfEvent clientDisconnect = new QmfEvent(_clientDisconnectSchema);
        clientDisconnect.setSeverity("info");
        // TODO Set properties Map - can't really get much info from the org.apache.qpid.server.model.Connection yet.
        clientDisconnect.setValue("rhost", _connection.getName());
        clientDisconnect.setValue("user", getStringValue("authIdentity"));
        return clientDisconnect;
    }
View Full Code Here

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

     * Factory method to create a Subscribe Event Object with timestamp of now.
     * @return the newly created Subscribe Event Object.
     */
    public QmfEvent createSubscribeEvent()
    {
        QmfEvent subscribe = new QmfEvent(_subscribeSchema);
        subscribe.setSeverity("info");
        subscribe.setValue("args", Collections.EMPTY_MAP);
        subscribe.setValue("dest", getStringValue("name"));
        subscribe.setValue("excl", _exclusive);
        subscribe.setValue("qName", _qName);
        // TODO Not sure of a way to get these for Java Broker Subscription.
        //subscribe.setValue("rhost", _connection.getName());
        //subscribe.setValue("user", getStringValue("authIdentity"));
        return subscribe;
    }
View Full Code Here

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

     * Factory method to create an Unsubscribe Event Object with timestamp of now.
     * @return the newly created Unsubscribe Event Object.
     */
    public QmfEvent createUnsubscribeEvent()
    {
        QmfEvent unsubscribe = new QmfEvent(_unsubscribeSchema);
        unsubscribe.setSeverity("info");
        unsubscribe.setValue("dest", getStringValue("name"));
        // TODO Not sure of a way to get these for Java Broker Subscription.
        //unsubscribe.setValue("rhost", _connection.getName());
        //unsubscribe.setValue("user", getStringValue("authIdentity"));
        return unsubscribe;
    }
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.