文案优化

master
xuxueli 7 years ago
parent d02c99dfb2
commit 295fb256c7
  1. 1
      doc/XXL-JOB官方文档.md
  2. 3
      xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/NetComClientProxy.java
  3. 4
      xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/client/JettyClient.java
  4. 1
      xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java

@ -1183,6 +1183,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
- 19、提供多版本执行器:不依赖容器版本、不内嵌Jetty版本(通过配置executoraddress替换jetty通讯)等;
- 20、注册中心支持扩展,除默认基于DB之外,支持扩展接入第三方注册中心如zk、eureka等;
- 21、依赖Core内部国际化处理;
- 22、大数据量下任务日志分页优化,时间选择组件支持清空功能可提升速度;
## 七、其他

@ -58,8 +58,7 @@ public class NetComClientProxy implements FactoryBean<Object> {
// valid response
if (response == null) {
logger.error(">>>>>>>>>>> xxl-rpc netty response not found.");
throw new Exception(">>>>>>>>>>> xxl-rpc netty response not found.");
throw new Exception("Network request fail, response not found.");
}
if (response.isError()) {
throw new RuntimeException(response.getError());

@ -29,7 +29,7 @@ public class JettyClient {
byte[] responseBytes = HttpClientUtil.postRequest(reqURL, requestBytes);
if (responseBytes == null || responseBytes.length==0) {
RpcResponse rpcResponse = new RpcResponse();
rpcResponse.setError("RpcResponse byte[] is null");
rpcResponse.setError("Network request fail, RpcResponse byte[] is null");
return rpcResponse;
}
@ -40,7 +40,7 @@ public class JettyClient {
logger.error(e.getMessage(), e);
RpcResponse rpcResponse = new RpcResponse();
rpcResponse.setError("Client-error:" + e.getMessage());
rpcResponse.setError("Network request error: " + e.getMessage());
return rpcResponse;
}
}

@ -64,7 +64,6 @@ public class HttpClientUtil {
EntityUtils.consume(entity);
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
throw e;
} finally {
httpPost.releaseConnection();

Loading…
Cancel
Save