private void updateHeartbeat(long callId, long nowMillis) { Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { // the invocation doesn't exist anymore, so we are done. return; } invocation.lastHeartbeatMillis = nowMillis; } }
private void updateHeartbeat(long callId, long nowMillis) { Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { // the invocation doesn't exist anymore, so we are done. return; } invocation.lastHeartbeatMillis = nowMillis; } }
void notifyErrorResponse(long callId, Object cause, Address sender) { responsesError.inc(); Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { responsesMissing.inc(); if (nodeEngine.isRunning() && callId != 0) { logger.warning("No Invocation found for error response with callId=" + callId + " sent from " + sender); } return; } invocation.notifyError(cause); }
void notifyNormalResponse(long callId, Object value, int backupCount, Address sender) { responsesNormal.inc(); Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { responsesMissing.inc(); if (nodeEngine.isRunning()) { logger.warning("No Invocation found for normal response with callId=" + callId + " sent from " + sender); } return; } invocation.notifyNormalResponse(value, backupCount); }
void notifyErrorResponse(long callId, Object cause, Address sender) { responsesError.inc(); Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { responsesMissing.inc(); if (nodeEngine.isRunning() && callId != 0) { logger.warning("No Invocation found for error response with callId=" + callId + " sent from " + sender); } return; } invocation.notifyError(cause); }
void notifyCallTimeout(long callId, Address sender) { responsesTimeout.inc(); Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { responsesMissing.inc(); if (nodeEngine.isRunning()) { logger.warning("No Invocation found for call timeout response with callId=" + callId + " sent from " + sender); } return; } invocation.notifyCallTimeout(); } }
void notifyNormalResponse(long callId, Object value, int backupCount, Address sender) { responsesNormal.inc(); Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { responsesMissing.inc(); if (nodeEngine.isRunning()) { logger.warning("No Invocation found for normal response with callId=" + callId + " sent from " + sender); } return; } invocation.notifyNormalResponse(value, backupCount); }
void notifyCallTimeout(long callId, Address sender) { responsesTimeout.inc(); Invocation invocation = invocationRegistry.get(callId); if (invocation == null) { responsesMissing.inc(); if (nodeEngine.isRunning()) { logger.warning("No Invocation found for call timeout response with callId=" + callId + " sent from " + sender); } return; } invocation.notifyCallTimeout(); } }
public void notifyBackupComplete(long callId) { responsesBackup.inc(); try { Invocation invocation = invocationRegistry.get(callId); // It can happen that a backup response is send without the Invocation being available anymore. // This is because the InvocationRegistry will automatically release invocations where the backup is // taking too much time. if (invocation == null) { if (logger.isFinestEnabled()) { logger.finest("No Invocation found for backup response with callId=" + callId); } return; } invocation.notifyBackupComplete(); } catch (Exception e) { ReplicaErrorLogger.log(e, logger); } }
public void notifyBackupComplete(long callId) { responsesBackup.inc(); try { Invocation invocation = invocationRegistry.get(callId); // It can happen that a backup response is send without the Invocation being available anymore. // This is because the InvocationRegistry will automatically release invocations where the backup is // taking too much time. if (invocation == null) { if (logger.isFinestEnabled()) { logger.finest("No Invocation found for backup response with callId=" + callId); } return; } invocation.notifyBackupComplete(); } catch (Exception e) { ReplicaErrorLogger.log(e, logger); } }