Search in sources :

Example 6 with QmfEvent

use of org.apache.qpid.qmf2.common.QmfEvent in project qpid by apache.

the class Exchange method createExchangeDeclareEvent.

/**
     * 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");
    // Java Broker can't set Alternate Exchange on Exchange
    exchangeDeclare.setValue("altEx", "");
    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"));
    //exchangeDeclare.setValue("user", getStringValue("authIdentity"));
    return exchangeDeclare;
}
Also used : QmfEvent(org.apache.qpid.qmf2.common.QmfEvent)

Example 7 with QmfEvent

use of org.apache.qpid.qmf2.common.QmfEvent in project qpid by apache.

the class Exchange method createExchangeDeleteEvent.

/**
     * 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);
    //exchangeDelete.setValue("user", getStringValue("authIdentity"));
    return exchangeDelete;
}
Also used : QmfEvent(org.apache.qpid.qmf2.common.QmfEvent)

Example 8 with QmfEvent

use of org.apache.qpid.qmf2.common.QmfEvent in project qpid by apache.

the class Subscription method createUnsubscribeEvent.

/**
     * 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"));
    //unsubscribe.setValue("user", getStringValue("authIdentity"));
    return unsubscribe;
}
Also used : QmfEvent(org.apache.qpid.qmf2.common.QmfEvent)

Example 9 with QmfEvent

use of org.apache.qpid.qmf2.common.QmfEvent in project qpid by apache.

the class Connection method createClientDisconnectEvent.

/**
     * 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;
}
Also used : QmfEvent(org.apache.qpid.qmf2.common.QmfEvent)

Example 10 with QmfEvent

use of org.apache.qpid.qmf2.common.QmfEvent in project qpid by apache.

the class Connection method createClientConnectEvent.

/**
     * 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;
}
Also used : QmfEvent(org.apache.qpid.qmf2.common.QmfEvent)

Aggregations

QmfEvent (org.apache.qpid.qmf2.common.QmfEvent)20 EventReceivedWorkItem (org.apache.qpid.qmf2.console.EventReceivedWorkItem)7 ObjectId (org.apache.qpid.qmf2.common.ObjectId)5 Agent (org.apache.qpid.qmf2.console.Agent)5 AgentHeartbeatWorkItem (org.apache.qpid.qmf2.console.AgentHeartbeatWorkItem)4 MethodResponseWorkItem (org.apache.qpid.qmf2.console.MethodResponseWorkItem)3 MethodResult (org.apache.qpid.qmf2.console.MethodResult)3 ObjectUpdateWorkItem (org.apache.qpid.qmf2.console.ObjectUpdateWorkItem)3 QmfConsoleData (org.apache.qpid.qmf2.console.QmfConsoleData)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 JMSException (javax.jms.JMSException)2 MethodCallParams (org.apache.qpid.qmf2.agent.MethodCallParams)2 MethodCallWorkItem (org.apache.qpid.qmf2.agent.MethodCallWorkItem)2 QmfAgentData (org.apache.qpid.qmf2.agent.QmfAgentData)2 Handle (org.apache.qpid.qmf2.common.Handle)2 QmfData (org.apache.qpid.qmf2.common.QmfData)2 QmfException (org.apache.qpid.qmf2.common.QmfException)2