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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations