コード例 #1
0
ファイル: Backup.java プロジェクト: kuguobing/hazelcast
  @Override
  public void afterRun() throws Exception {
    if (sync && getCallId() != 0 && originalCaller != null) {
      final NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();
      final long callId = getCallId();
      final InternalOperationService operationService = nodeEngine.operationService;

      if (!nodeEngine.getThisAddress().equals(originalCaller)) {
        BackupResponse backupResponse = new BackupResponse(callId, backupOp.isUrgent());
        operationService.send(backupResponse, originalCaller);
      } else {
        operationService.notifyBackupCall(callId);
      }
    }
  }