}
else
{
PropertyKey propertyKey =
keyBuilder.stateTransitionStatus(instanceName,
sessionId,
statusUpdateSubPath,
statusUpdateKey);
ZNRecord statusUpdateRecord = createMessageLogRecord(message);
// For now write participant StatusUpdates to log4j.
// we are using restlet as another data channel to report to controller.
if(_logger.isTraceEnabled()){
_logger.trace("StatusUpdate path:" + propertyKey.getPath() + ", updates:"
+ statusUpdateRecord);
}
accessor.updateProperty(propertyKey, new StatusUpdate(statusUpdateRecord));
}
_recordedMessages.put(message.getMsgId(), message.getMsgId());
}
if (instanceName.equalsIgnoreCase("Controller"))
{
accessor.updateProperty(keyBuilder.controllerTaskStatus(statusUpdateSubPath,
statusUpdateKey),
new StatusUpdate(record));
}
else
{
PropertyKey propertyKey =
keyBuilder.stateTransitionStatus(instanceName,
sessionId,
statusUpdateSubPath,
statusUpdateKey);
// For now write participant StatusUpdates to log4j.
// we are using restlet as another data channel to report to controller.
if(_logger.isTraceEnabled()){
_logger.trace("StatusUpdate path:" + propertyKey.getPath() + ", updates:" + record);
}
accessor.updateProperty(propertyKey, new StatusUpdate(record));
}
// If the error level is ERROR, also write the record to "ERROR" ZNode