Skip to content

Commit

Permalink
1.6.36
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Apr 2, 2022
1 parent 319957d commit c262508
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions UPDATE_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* 插件 solon.extend.sessionstate.jwt 呼略 ServiceConfigurationError 抛出
* CloudJobHandler
* CloudEventHandler
* HttpUtils 增加短处理和长处理的切换支持

#### 1.6.35
* 添加 SocketContext::SessionState 接口支持
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* @author noear
* @since 1.4
*/
public class JobHandlerHolder implements Handler {
public class JobHolder implements Handler {
private final String name;
private final String cron7x;
private final String description;
private final Handler handler;

public JobHandlerHolder(String name, String cron7x, String description, Handler handler) {
public JobHolder(String name, String cron7x, String description, Handler handler) {
this.name = name;
this.cron7x = cron7x;
this.description = description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.noear.solon.cloud.CloudClient;
import org.noear.solon.cloud.extend.water.WaterProps;
import org.noear.solon.cloud.extend.water.service.CloudJobServiceWaterImp;
import org.noear.solon.cloud.model.JobHandlerHolder;
import org.noear.solon.cloud.model.JobHolder;
import org.noear.solon.core.event.EventBus;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.Handler;
Expand Down Expand Up @@ -36,7 +36,7 @@ public void handle(Context ctx) throws Throwable {
}

private void handleDo(Context ctx, String name) {
JobHandlerHolder handlerHolder = CloudJobServiceWaterImp.instance.get(name);
JobHolder handlerHolder = CloudJobServiceWaterImp.instance.get(name);

if (handlerHolder == null) {
ctx.status(400);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.noear.solon.cloud.extend.water.service;

import org.noear.solon.Solon;
import org.noear.solon.cloud.model.JobHandlerHolder;
import org.noear.solon.cloud.model.JobHolder;
import org.noear.solon.cloud.service.CloudJobService;
import org.noear.solon.core.handle.Handler;
import org.noear.solon.core.util.PrintUtil;
Expand All @@ -24,9 +24,9 @@
public class CloudJobServiceWaterImp implements CloudJobService {
public static final CloudJobServiceWaterImp instance = new CloudJobServiceWaterImp();

public Map<String, JobHandlerHolder> jobMap = new LinkedHashMap<>();
public Map<String, JobHolder> jobMap = new LinkedHashMap<>();

public JobHandlerHolder get(String name) {
public JobHolder get(String name) {
return jobMap.get(name);
}

Expand All @@ -49,7 +49,7 @@ public void push() {

@Override
public boolean register(String name, String cron7x, String description, Handler handler) {
JobHandlerHolder handlerHolder = new JobHandlerHolder(name, cron7x, description, handler);
JobHolder handlerHolder = new JobHolder(name, cron7x, description, handler);

jobMap.put(name, handlerHolder);
TagsMDC.tag0("CloudJob");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.noear.solon.cloud.extend.xxljob.service;

import com.xxl.job.core.executor.XxlJobExecutor;
import org.noear.solon.cloud.model.JobHandlerHolder;
import org.noear.solon.cloud.model.JobHolder;
import org.noear.solon.cloud.service.CloudJobService;
import org.noear.solon.core.handle.Handler;

Expand All @@ -14,7 +14,7 @@ public class CloudJobServiceImpl implements CloudJobService {

@Override
public boolean register(String name, String cron7x, String description, Handler handler) {
JobHandlerHolder handlerHolder = new JobHandlerHolder(name, cron7x, description, handler);
JobHolder handlerHolder = new JobHolder(name, cron7x, description, handler);

XxlJobExecutor.registJobHandler(name, new CloudJobHanderProxy(handlerHolder));
return true;
Expand Down
2 changes: 1 addition & 1 deletion solon-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<snack3.ver>3.2.16</snack3.ver>
<weed3.ver>3.4.19</weed3.ver>
<water.ver>2.5.9</water.ver>
<luffy.ver>1.1.14</luffy.ver>
<luffy.ver>1.1.15</luffy.ver>
<redisx.ver>1.3.6</redisx.ver>

<fastjson.ver>1.2.75</fastjson.ver>
Expand Down

0 comments on commit c262508

Please sign in to comment.