mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Renamed IndexMetaDataEvent to IndexEvent
This commit is contained in:
parent
fdd332948a
commit
73a3ea2179
3 changed files with 8 additions and 8 deletions
|
@ -15,11 +15,11 @@
|
|||
"1": {
|
||||
"id": 1,
|
||||
"color": "#EAB839",
|
||||
"alias": "Index metadata events",
|
||||
"alias": "Index events",
|
||||
"pin": true,
|
||||
"type": "lucene",
|
||||
"enable": true,
|
||||
"query": "_type:index_metadata_event"
|
||||
"query": "_type:index_event"
|
||||
},
|
||||
"2": {
|
||||
"id": 2,
|
||||
|
|
|
@ -360,11 +360,11 @@ public class ExportersService extends AbstractLifecycleComponent<ExportersServic
|
|||
}
|
||||
|
||||
for (String index : event.indicesCreated()) {
|
||||
pendingEventsQueue.add(new IndexMetaDataEvent.IndexCreateDelete(timestamp, index, true, event.source()));
|
||||
pendingEventsQueue.add(new IndexEvent.IndexCreateDelete(timestamp, index, true, event.source()));
|
||||
}
|
||||
|
||||
for (String index : event.indicesDeleted()) {
|
||||
pendingEventsQueue.add(new IndexMetaDataEvent.IndexCreateDelete(timestamp, index, false, event.source()));
|
||||
pendingEventsQueue.add(new IndexEvent.IndexCreateDelete(timestamp, index, false, event.source()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -24,18 +24,18 @@ import org.elasticsearch.common.xcontent.XContentBuilder;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
public abstract class IndexMetaDataEvent extends Event {
|
||||
public abstract class IndexEvent extends Event {
|
||||
|
||||
protected final String event_source;
|
||||
|
||||
public IndexMetaDataEvent(long timestamp, String event_source) {
|
||||
public IndexEvent(long timestamp, String event_source) {
|
||||
super(timestamp);
|
||||
this.event_source = event_source;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String type() {
|
||||
return "index_metadata_event";
|
||||
return "index_event";
|
||||
}
|
||||
|
||||
protected abstract String event();
|
||||
|
@ -48,7 +48,7 @@ public abstract class IndexMetaDataEvent extends Event {
|
|||
return builder;
|
||||
}
|
||||
|
||||
public static class IndexCreateDelete extends IndexMetaDataEvent {
|
||||
public static class IndexCreateDelete extends IndexEvent {
|
||||
|
||||
private final String index;
|
||||
private boolean created;
|
Loading…
Add table
Add a link
Reference in a new issue