@Override public void operationComplete(ResponseFuture responseFuture) { try { submitCallback.call(responseFuture.getResponseCommand()); } finally { latch.countDown(); } } });
@Override public void operationComplete(ResponseFuture responseFuture) { try { submitCallback.call(responseFuture.getResponseCommand()); } finally { latch.countDown(); } } });
@Override public void operationComplete(ResponseFuture responseFuture) { try { RemotingCommand commandResponse = responseFuture.getResponseCommand(); if (commandResponse != null && commandResponse.getCode() == JobProtos.ResponseCode.JOB_NOTIFY_SUCCESS.code()) { clientNotifyHandler.handleSuccess(results); result.set(true); } else { result.set(false); } } finally { latch.countDown(); } } });
@Override public void operationComplete(ResponseFuture responseFuture) { try { RemotingCommand commandResponse = responseFuture.getResponseCommand(); if (commandResponse != null && commandResponse.getCode() == JobProtos.ResponseCode.JOB_NOTIFY_SUCCESS.code()) { clientNotifyHandler.handleSuccess(results); result.set(true); } else { result.set(false); } } finally { latch.countDown(); } } });
@Override public void operationComplete(ResponseFuture responseFuture) { RemotingCommand response = responseFuture.getResponseCommand(); if (response != null && RemotingProtos.ResponseCode.SUCCESS.code() == response.getCode()) { JobAskResponse responseBody = response.getBody(); List<String> deadJobIds = responseBody.getJobIds(); if (CollectionUtils.isNotEmpty(deadJobIds)) { // 睡了1秒再修复, 防止任务刚好执行完正在传输中. 1s可以让完成的正常完成 QuietUtils.sleep(appContext.getConfig().getParameter(ExtConfig.JOB_TRACKER_FIX_EXECUTING_JOB_WAITING_MILLS, 1000L)); for (JobPo jobPo : jobPos) { if (deadJobIds.contains(jobPo.getJobId())) { fixDeadJob(jobPo); } } } } } });
@Override public void operationComplete(ResponseFuture responseFuture) { RemotingCommand response = responseFuture.getResponseCommand(); if (response != null && response.getCode() == JobProtos.ResponseCode.BIZ_LOG_SEND_SUCCESS.code()) { // success } else { if (!isEnableBizLoggerFailStore()) { logger.error("Send Biz Logger to JobTracker Error, code={}, bizLog={}", response != null ? response.getCode() : null, JSON.toJSONString(bizLog)); } else { retryScheduler.inSchedule(StringUtils.generateUUID(), bizLog); } } } });
@Override public void operationComplete(ResponseFuture responseFuture) { RemotingCommand response = responseFuture.getResponseCommand(); if (response != null && response.getCode() == JobProtos.ResponseCode.BIZ_LOG_SEND_SUCCESS.code()) { // success } else { if (!isEnableBizLoggerFailStore()) { logger.error("Send Biz Logger to JobTracker Error, code={}, bizLog={}", response != null ? response.getCode() : null, JSON.toJSONString(bizLog)); } else { retryScheduler.inSchedule(StringUtils.generateUUID(), bizLog); } } } });
@Override public void operationComplete(ResponseFuture responseFuture) { RemotingCommand response = responseFuture.getResponseCommand(); if (response != null && RemotingProtos.ResponseCode.SUCCESS.code() == response.getCode()) { JobAskResponse responseBody = response.getBody(); List<String> deadJobIds = responseBody.getJobIds(); if (CollectionUtils.isNotEmpty(deadJobIds)) { // 睡了1秒再修复, 防止任务刚好执行完正在传输中. 1s可以让完成的正常完成 QuietUtils.sleep(appContext.getConfig().getParameter(ExtConfig.JOB_TRACKER_FIX_EXECUTING_JOB_WAITING_MILLS, 1000L)); for (JobPo jobPo : jobPos) { if (deadJobIds.contains(jobPo.getJobId())) { fixDeadJob(jobPo); } } } } } });
@Override public void operationComplete(ResponseFuture responseFuture) { try { RemotingCommand commandResponse = responseFuture.getResponseCommand();
@Override public void operationComplete(ResponseFuture responseFuture) { try { RemotingCommand commandResponse = responseFuture.getResponseCommand();
@Override public void operationComplete(ResponseFuture responseFuture) { try { submitCallback.call(responseFuture.getResponseCommand()); } finally { latch.countDown(); } } });
@Override public void operationComplete(ResponseFuture responseFuture) { try { RemotingCommand commandResponse = responseFuture.getResponseCommand(); if (commandResponse != null && commandResponse.getCode() == JobProtos.ResponseCode.JOB_NOTIFY_SUCCESS.code()) { clientNotifyHandler.handleSuccess(results); result.set(true); } else { result.set(false); } } finally { latch.countDown(); } } });
@Override public void operationComplete(ResponseFuture responseFuture) { RemotingCommand response = responseFuture.getResponseCommand(); if (response != null && RemotingProtos.ResponseCode.SUCCESS.code() == response.getCode()) { JobAskResponse responseBody = response.getBody(); List<String> deadJobIds = responseBody.getJobIds(); if (CollectionUtils.isNotEmpty(deadJobIds)) { // 睡了1秒再修复, 防止任务刚好执行完正在传输中. 1s可以让完成的正常完成 QuietUtils.sleep(appContext.getConfig().getParameter(ExtConfig.JOB_TRACKER_FIX_EXECUTING_JOB_WAITING_MILLS, 1000L)); for (JobPo jobPo : jobPos) { if (deadJobIds.contains(jobPo.getJobId())) { fixDeadJob(jobPo); } } } } } });
@Override public void operationComplete(ResponseFuture responseFuture) { RemotingCommand response = responseFuture.getResponseCommand(); if (response != null && response.getCode() == JobProtos.ResponseCode.BIZ_LOG_SEND_SUCCESS.code()) { // success } else { if (!isEnableBizLoggerFailStore()) { logger.error("Send Biz Logger to JobTracker Error, code={}, bizLog={}", response != null ? response.getCode() : null, JSON.toJSONString(bizLog)); } else { retryScheduler.inSchedule(StringUtils.generateUUID(), bizLog); } } } });
@Override public void operationComplete(ResponseFuture responseFuture) { try { RemotingCommand commandResponse = responseFuture.getResponseCommand();