org.noear.water.protocol.LogSource Maven / Gradle / Ivy
package org.noear.water.protocol;
import org.noear.water.model.LogM;
import org.noear.water.model.TagCountsM;
import org.noear.water.protocol.model.log.LogModel;
import java.io.Closeable;
import java.util.List;
public interface LogSource extends Closeable {
List query(String logger, Integer level, int size, String tagx, long startLogId, long timestamp) throws Exception;
List queryGroupCountBy(String logger, String group, String service, String filed) throws Exception;
void writeAll(String logger, List list) throws Exception;
void create(String logger, int keep_days) throws Exception;
long clear(String logger, int keep_days, int limit_rows) throws Exception;
/**
* 充许搜索
* */
boolean allowSearch();
}