public class ElasticSearchLogCollectClient extends org.apache.shenyu.plugin.logging.common.client.AbstractLogConsumeClient<ElasticSearchLogCollectConfig.ElasticSearchLogConfig,org.apache.shenyu.plugin.logging.common.entity.ShenyuRequestLog>
| 构造器和说明 |
|---|
ElasticSearchLogCollectClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close0()
close client.
|
void |
consume0(java.util.List<org.apache.shenyu.plugin.logging.common.entity.ShenyuRequestLog> logs)
consume logs.
|
void |
createIndex(java.lang.String indexName)
create elasticsearch index.
|
boolean |
existsIndex(java.lang.String indexName)
determine whether the index already exists.
|
void |
initClient0(ElasticSearchLogCollectConfig.ElasticSearchLogConfig config)
init elasticsearch client.
|
public void initClient0(@NonNull
ElasticSearchLogCollectConfig.ElasticSearchLogConfig config)
initClient0 在类中 org.apache.shenyu.plugin.logging.common.client.AbstractLogConsumeClient<ElasticSearchLogCollectConfig.ElasticSearchLogConfig,org.apache.shenyu.plugin.logging.common.entity.ShenyuRequestLog>config - elasticsearch client configpublic void consume0(@NonNull
java.util.List<org.apache.shenyu.plugin.logging.common.entity.ShenyuRequestLog> logs)
consume0 在类中 org.apache.shenyu.plugin.logging.common.client.AbstractLogConsumeClient<ElasticSearchLogCollectConfig.ElasticSearchLogConfig,org.apache.shenyu.plugin.logging.common.entity.ShenyuRequestLog>logs - logspublic boolean existsIndex(java.lang.String indexName)
indexName - index namepublic void createIndex(java.lang.String indexName)
indexName - index namepublic void close0()
close0 在类中 org.apache.shenyu.plugin.logging.common.client.AbstractLogConsumeClient<ElasticSearchLogCollectConfig.ElasticSearchLogConfig,org.apache.shenyu.plugin.logging.common.entity.ShenyuRequestLog>Copyright © 2026 The Apache Software Foundation. All rights reserved.