* Factory method to create a Queue Declare Event Object with timestamp of now.
* @return the newly created Queue Declare Event Object.
*/
public QmfEvent createQueueDeclareEvent()
{
QmfEvent queueDeclare = new QmfEvent(_queueDeclareSchema);
queueDeclare.setSeverity("info");
// TODO the _alternateExchangeName gets set some time after the Constructor - how do I get its value for
// the queueDeclareEvent???!!!
queueDeclare.setValue("altEx", _alternateExchangeName);
queueDeclare.setValue("args", Collections.EMPTY_MAP); // TODO
queueDeclare.setValue("autoDel", getBooleanValue("autoDelete"));
queueDeclare.setValue("disp", "created");
queueDeclare.setValue("durable", getBooleanValue("durable"));
queueDeclare.setValue("excl", getBooleanValue("exclusive"));
queueDeclare.setValue("qName", getStringValue("name"));
// TODO Not sure of a way to get these for Java Broker Exchange.
//queueDeclare.setValue("rhost", _connection.getName());
//queueDeclare.setValue("user", getStringValue("authIdentity"));
return queueDeclare;
}