Search in sources :

Example 21 with QmfEvent

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

the class Subscription method createSubscribeEvent.

/**
     * 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);
    //subscribe.setValue("user", getStringValue("authIdentity"));
    return subscribe;
}
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