Package org.apache.qpid.qmf2.common

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.getExchange().getName());
        bind.setValue("key", _binding.getName());
        bind.setValue("qName", _binding.getQueue().getName());
        // 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


     * 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.getExchange().getName());
        unbind.setValue("key", _binding.getName());
        unbind.setValue("qName", _binding.getQueue().getName());
        // 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

     * 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.getExchange().getName());
        bind.setValue("key", _binding.getName());
        bind.setValue("qName", _binding.getQueue().getName());
        // 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

     * 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.getExchange().getName());
        unbind.setValue("key", _binding.getName());
        unbind.setValue("qName", _binding.getQueue().getName());
        // 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

     * 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.getExchange().getName());
        bind.setValue("key", _binding.getName());
        bind.setValue("qName", _binding.getQueue().getName());
        // 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

     * 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.getExchange().getName());
        unbind.setValue("key", _binding.getName());
        unbind.setValue("qName", _binding.getQueue().getName());
        // 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

     * 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

     * 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

     * 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

     * 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

Related Classes of org.apache.qpid.qmf2.common.QmfEvent

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.