//38ms -> 5
mrtgProbeJMSLoad_.addMeasurement((long) (100.0/((waitingTime/2.0)+1.0)));
lastOnMessageFinishTime_ = -1;
}
ObjectMessage om = (ObjectMessage) message;
try {
// unpack
JMSWrapper jmsWrapper = (JMSWrapper) om.getObject();
Integer nodeId = jmsWrapper.getNodeId();
MultiUserEvent event = jmsWrapper.getMultiUserEvent();
OLATResourceable ores = jmsWrapper.getOres();
boolean fromSameNode = clusterConfig.getNodeId().equals(nodeId);
// update nodeinfo statistics
NodeInfo nodeInfo = getNodeInfoFor(nodeId);
if (!nodeInfo.update(jmsWrapper)) {
log.warn("onMessage: update failed. clustereventbus: "+this);
}
String recMsg = "received msg: "+(fromSameNode? "[same node]":"")+" from node:" +
nodeId + ", olat-id:" + jmsWrapper.getMsgId() + ", ores:" + ores.getResourceableTypeName() + ":" + ores.getResourceableId() +
", event:"+event+"}";
// stats
final long jmsTimestamp = om.getJMSTimestamp();
if (jmsTimestamp!=0) {
final long deliveryTime = receiveTime - jmsTimestamp;
if (deliveryTime>1500) {
// then issue a log statement
log.warn("message received with long delivery time (longer than 1500ms: "+deliveryTime+"): "+recMsg);