提交 9c278c51 编写于 作者: Z zhourui

更新index触发器,(0)表示在所有节点上执行

上级 9401bbf2
package com.x.query.service.processing.jaxrs.touch;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.entity.annotation.CheckRemoveType;
......@@ -14,39 +17,53 @@ import com.x.query.core.entity.index.State;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* (0) AbstractJaxrsAction.EMPTY_SYMBOL 表示在有所节点上执行
*
* @author ray
*
*/
class ActionHighFreqDocumentReset extends BaseAction {
private static final Logger LOGGER = LoggerFactory.getLogger(ActionHighFreqDocumentReset.class);
ActionResult<Wo> execute(EffectivePerson effectivePerson, String node) throws Exception {
LOGGER.info("execute:{}.", effectivePerson::getDistinguishedName);
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME, State.TYPE_DOCUMENT);
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
emc.check(state, CheckRemoveType.all);
emc.remove(state);
}
emc.commit();
wo.setValue(true);
}
}
result.setData(wo);
return result;
}
@Schema(name = "com.x.query.service.processing.jaxrs.touch.ActionHighFreqDocumentReset$Wo")
public static class Wo extends WrapBoolean {
private static final long serialVersionUID = -6815067359344499966L;
}
private static final Logger LOGGER = LoggerFactory.getLogger(ActionHighFreqDocumentReset.class);
ActionResult<Wo> execute(EffectivePerson effectivePerson, String node) throws Exception {
LOGGER.info("execute:{}.", effectivePerson::getDistinguishedName);
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = new ArrayList<>();
if (!StringUtils.equals(node, EMPTY_SYMBOL)) {
list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME, State.TYPE_DOCUMENT);
} else {
list = emc.listEqualAndEqual(State.class,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME, State.TYPE_DOCUMENT);
}
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
emc.check(state, CheckRemoveType.all);
emc.remove(state);
}
emc.commit();
wo.setValue(true);
}
}
result.setData(wo);
return result;
}
@Schema(name = "com.x.query.service.processing.jaxrs.touch.ActionHighFreqDocumentReset$Wo")
public static class Wo extends WrapBoolean {
private static final long serialVersionUID = -6815067359344499966L;
}
}
\ No newline at end of file
package com.x.query.service.processing.jaxrs.touch;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.project.Application;
import com.x.base.core.project.Applications;
import com.x.base.core.project.connection.CipherConnectionAction;
......@@ -12,11 +13,19 @@ import com.x.base.core.project.http.EffectivePerson;
import com.x.base.core.project.jaxrs.WrapBoolean;
import com.x.base.core.project.logger.Logger;
import com.x.base.core.project.logger.LoggerFactory;
import com.x.query.core.entity.index.State;
import com.x.query.service.processing.ThisApplication;
import com.x.query.service.processing.schedule.HighFreqDocument;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* (0) AbstractJaxrsAction.EMPTY_SYMBOL 表示在有所节点上执行
*
* @author ray
*
*/
class ActionHighFreqDocumentTouch extends BaseAction {
private static final Logger LOGGER = LoggerFactory.getLogger(ActionHighFreqDocumentTouch.class);
......@@ -27,8 +36,7 @@ class ActionHighFreqDocumentTouch extends BaseAction {
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
for (Application application : ThisApplication.context().applications()
.get(ThisApplication.context().clazz())) {
for (Application application : listApplication(node)) {
if (StringUtils.equals(node, application.getNode())) {
String url = application.getUrlJaxrsRoot() + Applications.joinQueryUri("fireschedule", "classname",
HighFreqDocument.class.getName());
......
package com.x.query.service.processing.jaxrs.touch;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.entity.annotation.CheckRemoveType;
......@@ -26,9 +29,15 @@ class ActionHighFreqWorkCompletedReset extends BaseAction {
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME,
State.TYPE_WORKCOMPLETED);
List<State> list = new ArrayList<>();
if (!StringUtils.equals(node, EMPTY_SYMBOL)) {
list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME,
State.TYPE_WORKCOMPLETED);
} else {
list = emc.listEqualAndEqual(State.class, State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME,
State.TYPE_WORKCOMPLETED);
}
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
......
package com.x.query.service.processing.jaxrs.touch;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
......@@ -27,8 +30,7 @@ class ActionHighFreqWorkCompletedTouch extends BaseAction {
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
for (Application application : ThisApplication.context().applications()
.get(ThisApplication.context().clazz())) {
for (Application application : listApplication(node)) {
if (StringUtils.equals(node, application.getNode())) {
String url = application.getUrlJaxrsRoot() + Applications.joinQueryUri("fireschedule", "classname",
HighFreqWorkCompleted.class.getName());
......
package com.x.query.service.processing.jaxrs.touch;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.entity.annotation.CheckRemoveType;
......@@ -26,9 +29,16 @@ class ActionHighFreqWorkReset extends BaseAction {
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME,
State.TYPE_WORK);
List<State> list = new ArrayList<>();
if (!StringUtils.equals(node, EMPTY_SYMBOL)) {
list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME,
State.TYPE_WORK);
} else {
list = emc.listEqualAndEqual(State.class,
State.FREQ_FIELDNAME, State.FREQ_HIGH, State.TYPE_FIELDNAME,
State.TYPE_WORK);
}
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
......
......@@ -27,8 +27,7 @@ class ActionHighFreqWorkTouch extends BaseAction {
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
for (Application application : ThisApplication.context().applications()
.get(ThisApplication.context().clazz())) {
for (Application application : listApplication(node)) {
if (StringUtils.equals(node, application.getNode())) {
String url = application.getUrlJaxrsRoot() + Applications.joinQueryUri("fireschedule", "classname",
HighFreqWork.class.getName());
......
package com.x.query.service.processing.jaxrs.touch;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.entity.annotation.CheckRemoveType;
......@@ -26,8 +29,14 @@ class ActionLowFreqDocumentReset extends BaseAction {
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME, State.TYPE_DOCUMENT);
List<State> list = new ArrayList<>();
if (!StringUtils.equals(node, EMPTY_SYMBOL)) {
list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME, State.TYPE_DOCUMENT);
} else {
list = emc.listEqualAndEqual(State.class,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME, State.TYPE_DOCUMENT);
}
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
......
......@@ -25,8 +25,7 @@ class ActionLowFreqDocumentTouch extends BaseAction {
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
for (Application application : ThisApplication.context().applications()
.get(ThisApplication.context().clazz())) {
for (Application application : listApplication(node)) {
if (StringUtils.equals(node, application.getNode())) {
String url = application.getUrlJaxrsRoot() + Applications.joinQueryUri("fireschedule", "classname",
LowFreqDocument.class.getName());
......
package com.x.query.service.processing.jaxrs.touch;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.entity.annotation.CheckRemoveType;
......@@ -16,37 +19,45 @@ import io.swagger.v3.oas.annotations.media.Schema;
class ActionLowFreqWorkCompletedReset extends BaseAction {
private static final Logger LOGGER = LoggerFactory.getLogger(ActionLowFreqWorkCompletedReset.class);
ActionResult<Wo> execute(EffectivePerson effectivePerson, String node) throws Exception {
LOGGER.info("execute:{}.", effectivePerson::getDistinguishedName);
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME,
State.TYPE_WORKCOMPLETED);
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
emc.check(state, CheckRemoveType.all);
emc.remove(state);
}
emc.commit();
wo.setValue(true);
}
}
result.setData(wo);
return result;
}
@Schema(name = "com.x.query.service.processing.jaxrs.touch.ActionLowFreqWorkCompletedReset$Wo")
public static class Wo extends WrapBoolean {
private static final long serialVersionUID = -5540653295929218009L;
}
private static final Logger LOGGER = LoggerFactory.getLogger(ActionLowFreqWorkCompletedReset.class);
ActionResult<Wo> execute(EffectivePerson effectivePerson, String node) throws Exception {
LOGGER.info("execute:{}.", effectivePerson::getDistinguishedName);
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = new ArrayList<>();
if (!StringUtils.equals(node, EMPTY_SYMBOL)) {
list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME,
State.TYPE_WORKCOMPLETED);
} else {
list = emc.listEqualAndEqual(State.class,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME,
State.TYPE_WORKCOMPLETED);
}
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
emc.check(state, CheckRemoveType.all);
emc.remove(state);
}
emc.commit();
wo.setValue(true);
}
}
result.setData(wo);
return result;
}
@Schema(name = "com.x.query.service.processing.jaxrs.touch.ActionLowFreqWorkCompletedReset$Wo")
public static class Wo extends WrapBoolean {
private static final long serialVersionUID = -5540653295929218009L;
}
}
\ No newline at end of file
......@@ -27,8 +27,7 @@ class ActionLowFreqWorkCompletedTouch extends BaseAction {
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
for (Application application : ThisApplication.context().applications()
.get(ThisApplication.context().clazz())) {
for (Application application : listApplication(node)) {
if (StringUtils.equals(node, application.getNode())) {
String url = application.getUrlJaxrsRoot() + Applications.joinQueryUri("fireschedule", "classname",
LowFreqWorkCompleted.class.getName());
......
package com.x.query.service.processing.jaxrs.touch;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import com.x.base.core.entity.annotation.CheckRemoveType;
......@@ -16,37 +19,45 @@ import io.swagger.v3.oas.annotations.media.Schema;
class ActionLowFreqWorkReset extends BaseAction {
private static final Logger LOGGER = LoggerFactory.getLogger(ActionLowFreqWorkReset.class);
ActionResult<Wo> execute(EffectivePerson effectivePerson, String node) throws Exception {
LOGGER.info("execute:{}.", effectivePerson::getDistinguishedName);
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME,
State.TYPE_WORK);
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
emc.check(state, CheckRemoveType.all);
emc.remove(state);
}
emc.commit();
wo.setValue(true);
}
}
result.setData(wo);
return result;
}
@Schema(name = "com.x.query.service.processing.jaxrs.touch.ActionLowFreqWorkReset$Wo")
public static class Wo extends WrapBoolean {
private static final long serialVersionUID = -5540653295929218009L;
}
private static final Logger LOGGER = LoggerFactory.getLogger(ActionLowFreqWorkReset.class);
ActionResult<Wo> execute(EffectivePerson effectivePerson, String node) throws Exception {
LOGGER.info("execute:{}.", effectivePerson::getDistinguishedName);
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {
List<State> list = new ArrayList<>();
if (!StringUtils.equals(node, EMPTY_SYMBOL)) {
list = emc.listEqualAndEqualAndEqual(State.class, State.NODE_FIELDNAME, node,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME,
State.TYPE_WORK);
} else {
list = emc.listEqualAndEqual(State.class,
State.FREQ_FIELDNAME, State.FREQ_LOW, State.TYPE_FIELDNAME,
State.TYPE_WORK);
}
if (!list.isEmpty()) {
emc.beginTransaction(State.class);
for (State state : list) {
emc.check(state, CheckRemoveType.all);
emc.remove(state);
}
emc.commit();
wo.setValue(true);
}
}
result.setData(wo);
return result;
}
@Schema(name = "com.x.query.service.processing.jaxrs.touch.ActionLowFreqWorkReset$Wo")
public static class Wo extends WrapBoolean {
private static final long serialVersionUID = -5540653295929218009L;
}
}
\ No newline at end of file
......@@ -27,8 +27,7 @@ class ActionLowFreqWorkTouch extends BaseAction {
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
for (Application application : ThisApplication.context().applications()
.get(ThisApplication.context().clazz())) {
for (Application application : listApplication(node)) {
if (StringUtils.equals(node, application.getNode())) {
String url = application.getUrlJaxrsRoot() + Applications.joinQueryUri("fireschedule", "classname",
LowFreqWork.class.getName());
......
......@@ -29,8 +29,7 @@ class ActionOptimizeIndex extends BaseAction {
ActionResult<Wo> result = new ActionResult<>();
Wo wo = new Wo();
wo.setValue(false);
for (Application application : ThisApplication.context().applications()
.get(ThisApplication.context().clazz())) {
for (Application application : listApplication(node)) {
if (StringUtils.equals(node, application.getNode())) {
String url = application.getUrlJaxrsRoot() + Applications.joinQueryUri("fireschedule", "classname",
OptimizeIndex.class.getName());
......
package com.x.query.service.processing.jaxrs.touch;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import com.x.base.core.project.Application;
import com.x.base.core.project.http.EffectivePerson;
import com.x.base.core.project.jaxrs.StandardJaxrsAction;
import com.x.query.core.express.plan.Runtime;
import com.x.query.service.processing.Business;
import com.x.query.service.processing.ThisApplication;
abstract class BaseAction extends StandardJaxrsAction {
protected <T extends Runtime> void append(EffectivePerson effectivePerson, Business business, T t)
throws Exception {
t.person = effectivePerson.getDistinguishedName();
t.identityList = business.organization().identity().listWithPerson(effectivePerson);
t.unitList = business.organization().unit().listWithPerson(effectivePerson);
t.unitAllList = business.organization().unit().listWithPersonSupNested(effectivePerson);
t.groupList = business.organization().group().listWithPerson(effectivePerson.getDistinguishedName());
t.roleList = business.organization().role().listWithPerson(effectivePerson);
}
/**
* 根据node节点名获取集群中的x_query_service_processing模块,如果node=(0)
* AbstractJaxrsAction.EMPTY_SYMBOL 取得所有节点.
*
* @param node
* @return
* @throws Exception
*/
protected List<Application> listApplication(String node) throws Exception {
List<Application> applications = ThisApplication.context().applications()
.get(ThisApplication.context().clazz());
if (!StringUtils.equals(node, EMPTY_SYMBOL)) {
applications = applications.stream().filter(o -> StringUtils.equals(o.getNode(), node))
.collect(Collectors.toList());
}
return applications;
}
}
......@@ -37,10 +37,10 @@ public class TouchAction extends StandardJaxrsAction {
private static final String OPERATIONID_PREFIX = "TouchAction::";
@Operation(summary = "执行在流转工作高频索引.", operationId = OPERATIONID_PREFIX
@Operation(summary = "执行在流转工作高频索引,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "highFreqWorkTouch", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionHighFreqWorkTouch.Wo.class)) }) })
@JaxrsMethodDescribe(value = "执行在流转工作高频索引.", action = ActionHighFreqWorkTouch.class)
@JaxrsMethodDescribe(value = "执行在流转工作高频索引,(0)表示在所有节点上执行.", action = ActionHighFreqWorkTouch.class)
@GET
@Path("high/freq/work/node/{node}/touch")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -58,10 +58,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "重置在流转工作高频索引定时任务状态.", operationId = OPERATIONID_PREFIX
@Operation(summary = "重置在流转工作高频索引定时任务状态,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "highFreqWorkReset", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionHighFreqWorkReset.Wo.class)) }) })
@JaxrsMethodDescribe(value = "重置在流转工作高频索引定时任务状态.", action = ActionHighFreqWorkReset.class)
@JaxrsMethodDescribe(value = "重置在流转工作高频索引定时任务状态,(0)表示在所有节点上执行.", action = ActionHighFreqWorkReset.class)
@GET
@Path("high/freq/work/node/{node}/reset")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -79,10 +79,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "执行在流转工作低频索引.", operationId = OPERATIONID_PREFIX
@Operation(summary = "执行在流转工作低频索引,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "lowFreqIndexWorkTouch", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionLowFreqWorkTouch.Wo.class)) }) })
@JaxrsMethodDescribe(value = "执行在流转工作低频索引.", action = ActionLowFreqWorkTouch.class)
@JaxrsMethodDescribe(value = "执行在流转工作低频索引,(0)表示在所有节点上执行.", action = ActionLowFreqWorkTouch.class)
@GET
@Path("low/freq/work/node/{node}/touch")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -100,10 +100,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "重置在流转工作低频索引定时任务状态.", operationId = OPERATIONID_PREFIX
@Operation(summary = "重置在流转工作低频索引定时任务状态,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "lowFreqWorkReset", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionLowFreqWorkReset.Wo.class)) }) })
@JaxrsMethodDescribe(value = "重置在流转工作低频索引定时任务状态.", action = ActionLowFreqWorkReset.class)
@JaxrsMethodDescribe(value = "重置在流转工作低频索引定时任务状态,(0)表示在所有节点上执行.", action = ActionLowFreqWorkReset.class)
@GET
@Path("low/freq/work/node/{node}/reset")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -121,10 +121,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "执行已完成工作高频索引.", operationId = OPERATIONID_PREFIX
@Operation(summary = "执行已完成工作高频索引,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "highFreqWorkCompletedTouch", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionHighFreqWorkCompletedTouch.Wo.class)) }) })
@JaxrsMethodDescribe(value = "执行已完成工作高频索引.", action = ActionHighFreqWorkCompletedTouch.class)
@JaxrsMethodDescribe(value = "执行已完成工作高频索引,(0)表示在所有节点上执行.", action = ActionHighFreqWorkCompletedTouch.class)
@GET
@Path("high/freq/workcompleted/node/{node}/touch")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -142,10 +142,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "重置已完成工作高频索引定时任务状态.", operationId = OPERATIONID_PREFIX
@Operation(summary = "重置已完成工作高频索引定时任务状态,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "highFreqWorkCompletedReset", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionHighFreqWorkCompletedReset.Wo.class)) }) })
@JaxrsMethodDescribe(value = "重置已完成工作高频索引定时任务状态.", action = ActionHighFreqWorkCompletedReset.class)
@JaxrsMethodDescribe(value = "重置已完成工作高频索引定时任务状态,(0)表示在所有节点上执行.", action = ActionHighFreqWorkCompletedReset.class)
@GET
@Path("high/freq/workcompleted/node/{node}/reset")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -163,10 +163,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "执行已完成工作低频索引.", operationId = OPERATIONID_PREFIX
@Operation(summary = "执行已完成工作低频索引,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "lowFreqIndexWorkCompletedTouch", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionLowFreqWorkCompletedTouch.Wo.class)) }) })
@JaxrsMethodDescribe(value = "执行已完成工作低频索引.", action = ActionLowFreqWorkCompletedTouch.class)
@JaxrsMethodDescribe(value = "执行已完成工作低频索引,(0)表示在所有节点上执行.", action = ActionLowFreqWorkCompletedTouch.class)
@GET
@Path("low/freq/workcompleted/node/{node}/touch")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -184,10 +184,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "重置已完成工作低频索引定时任务状态.", operationId = OPERATIONID_PREFIX
@Operation(summary = "重置已完成工作低频索引定时任务状态,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "lowFreqWorkCompletedReset", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionLowFreqWorkCompletedReset.Wo.class)) }) })
@JaxrsMethodDescribe(value = "重置已完成工作低频索引定时任务状态.", action = ActionLowFreqWorkCompletedReset.class)
@JaxrsMethodDescribe(value = "重置已完成工作低频索引定时任务状态,(0)表示在所有节点上执行.", action = ActionLowFreqWorkCompletedReset.class)
@GET
@Path("low/freq/workcompleted/node/{node}/reset")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -205,10 +205,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "执行文档高频索引.", operationId = OPERATIONID_PREFIX + "highFreqDocumentTouch", responses = {
@Operation(summary = "执行文档高频索引,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX + "highFreqDocumentTouch", responses = {
@ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionHighFreqDocumentTouch.Wo.class)) }) })
@JaxrsMethodDescribe(value = "执行文档高频索引.", action = ActionHighFreqDocumentTouch.class)
@JaxrsMethodDescribe(value = "执行文档高频索引,(0)表示在所有节点上执行.", action = ActionHighFreqDocumentTouch.class)
@GET
@Path("high/freq/document/node/{node}/touch")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -226,10 +226,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "重置文档高频索引定时任务状态.", operationId = OPERATIONID_PREFIX
@Operation(summary = "重置文档高频索引定时任务状态,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "highFreqDocumentReset", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionHighFreqDocumentReset.Wo.class)) }) })
@JaxrsMethodDescribe(value = "重置文档高频索引定时任务状态.", action = ActionHighFreqDocumentReset.class)
@JaxrsMethodDescribe(value = "重置文档高频索引定时任务状态,(0)表示在所有节点上执行.", action = ActionHighFreqDocumentReset.class)
@GET
@Path("high/freq/document/node/{node}/reset")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -247,10 +247,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "执行文档低频索引.", operationId = OPERATIONID_PREFIX + "lowFreqDocumentTouch", responses = {
@Operation(summary = "执行文档低频索引,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX + "lowFreqDocumentTouch", responses = {
@ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionLowFreqDocumentTouch.Wo.class)) }) })
@JaxrsMethodDescribe(value = "执行文档低频索引.", action = ActionLowFreqDocumentTouch.class)
@JaxrsMethodDescribe(value = "执行文档低频索引,(0)表示在所有节点上执行.", action = ActionLowFreqDocumentTouch.class)
@GET
@Path("low/freq/document/node/{node}/touch")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -268,10 +268,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "重置文档低频索引定时任务状态.", operationId = OPERATIONID_PREFIX
@Operation(summary = "重置文档低频索引定时任务状态,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX
+ "lowFreqDocumentReset", responses = { @ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionLowFreqDocumentReset.Wo.class)) }) })
@JaxrsMethodDescribe(value = "重置文档低频索引定时任务状态.", action = ActionLowFreqDocumentReset.class)
@JaxrsMethodDescribe(value = "重置文档低频索引定时任务状态,(0)表示在所有节点上执行.", action = ActionLowFreqDocumentReset.class)
@GET
@Path("low/freq/document/node/{node}/reset")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......@@ -289,10 +289,10 @@ public class TouchAction extends StandardJaxrsAction {
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
}
@Operation(summary = "执行优化索引.", operationId = OPERATIONID_PREFIX + "optimizeIndex", responses = {
@Operation(summary = "执行优化索引,(0)表示在所有节点上执行.", operationId = OPERATIONID_PREFIX + "optimizeIndex", responses = {
@ApiResponse(content = {
@Content(schema = @Schema(implementation = ActionOptimizeIndex.Wo.class)) }) })
@JaxrsMethodDescribe(value = "执行优化索引.", action = ActionOptimizeIndex.class)
@JaxrsMethodDescribe(value = "执行优化索引,(0)表示在所有节点上执行.", action = ActionOptimizeIndex.class)
@GET
@Path("optimize/index/{node}/touch")
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
......
root=D:/O2/o2oa/o2server/commons/hanlp/
HanLP.Config.ShowTermNature = true
HanLP.Config.Normalization = true
\ No newline at end of file
{
"selectEntryList":
[
{
"orderType": "original",
"orderRank": 0,
"selectType": "path",
"attribute": "",
"name": "",
"column": "qsubject",
"displayName": "",
"path": "subject"
},
{
"orderType": "original",
"orderRank": 0,
"selectType": "path",
"attribute": "",
"name": "",
"column": "qamount",
"displayName": "",
"path": "amount"
},
{
"orderType": "original",
"orderRank": 0,
"selectType": "path",
"attribute": "",
"name": "",
"column": "qphone",
"displayName": "",
"path": "phone"
},
{
"orderType": "original",
"orderRank": 0,
"selectType": "path",
"attribute": "",
"name": "",
"column": "qslDate",
"displayName": "",
"path": "slDate"
},
{
"orderType": "original",
"orderRank": 0,
"selectType": "path",
"attribute": "",
"name": "",
"column": "qjzDate",
"displayName": "",
"path": "jzDate"
},
{
"orderType": "original",
"orderRank": 0,
"selectType": "attribute",
"attribute": "title",
"name": "",
"column": "qtitle",
"displayName": "",
"path": ""
},
{
"orderType": "original",
"orderRank": 0,
"selectType": "attribute",
"attribute": "creatorPerson",
"name": "",
"column": "qcreatorPerson",
"displayName": "",
"path": ""
}
],
"whereEntry":
{
"applicationList":
[
"0c2c3d76-5301-4918-8869-f88de8d2fe57"
],
"processList":
[
],
"companyList":
[
],
"departmentList":
[
],
"personList":
[
],
"identityList":
[
]
},
"filterEntryList":
[
],
"calculateEntryList":
[
],
"groupEntry":
{
"column": "qphone",
"orderType": "original"
},
"dateRangeEntry":
{
"dateRangeType": "none",
"dateEffectType": "completed",
"year": "",
"month": "",
"date": "",
"season": 0,
"week": 0,
"adjust": 0
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册