feat(executor): 完成文件检索扫描功能
使用flink分布式扫描日志文件和数据文件,检索关键词
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.lanyuanxiaoyao.service.forest.service;
|
||||
|
||||
import com.dtflys.forest.annotation.BaseRequest;
|
||||
import com.dtflys.forest.annotation.Get;
|
||||
import com.dtflys.forest.annotation.Query;
|
||||
import org.eclipse.collections.api.list.ImmutableList;
|
||||
|
||||
/**
|
||||
* 任务服务
|
||||
*
|
||||
* @author lanyuanxiaoyao
|
||||
* @date 2024-01-10
|
||||
*/
|
||||
@BaseRequest(baseURL = "http://service-executor-manager")
|
||||
public interface TaskService {
|
||||
@Get(value = "/task/scan", readTimeout = 2 * 60 * 1000)
|
||||
String scan(@Query("hdfs") String hdfs, @Query("key") String key);
|
||||
|
||||
@Get(value = "/task/scan", readTimeout = 2 * 60 * 1000)
|
||||
String scan(@Query("hdfs") String hdfs, @Query("key") String key, @Query("scan_log") Boolean scanLog, @Query("scan_data") Boolean scanData);
|
||||
|
||||
@Get("/task/results")
|
||||
ImmutableList<String> results(@Query("task_id") String taskId);
|
||||
|
||||
@Get("/task/results")
|
||||
ImmutableList<String> results(@Query("task_id") String taskId, @Query("limit") Integer limit);
|
||||
}
|
||||
Reference in New Issue
Block a user