public ZNRecord createMessageStatusUpdateRecord(Message message,
Level level,
Class classInfo,
String additionalInfo)
{
ZNRecord result = createEmptyStatusUpdateRecord(getStatusUpdateRecordName(message));
Map<String, String> contentMap = new TreeMap<String, String>();
contentMap.put("Message state", message.getMsgState().toString());
contentMap.put("AdditionalInfo", additionalInfo);
contentMap.put("Class", classInfo.toString());
contentMap.put("MSG_ID", message.getMsgId());
DateFormat formatter = new SimpleDateFormat("yyyyMMdd-HHmmss.SSSSSS");
String time = formatter.format(new Date());
String id =
String.format("%4s %26s ", level.toString(), time)
+ getRecordIdForMessage(message);
result.setMapField(id, contentMap);
return result;
}