Rename and move the plugin class.
Original commit: elastic/x-pack-elasticsearch@b6f7a0490e
This commit is contained in:
parent
686f83ebb8
commit
16a7991d6d
|
@ -3,7 +3,7 @@
|
|||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
package org.elasticsearch.plugin.alerting;
|
||||
package org.elasticsearch.alerts.plugin;
|
||||
|
||||
import org.elasticsearch.alerts.AlertManager;
|
||||
import org.elasticsearch.alerts.scheduler.AlertScheduler;
|
||||
|
@ -15,13 +15,14 @@ import org.elasticsearch.plugins.AbstractPlugin;
|
|||
|
||||
import java.util.Collection;
|
||||
|
||||
public class AlertingPlugin extends AbstractPlugin {
|
||||
public class AlertsPlugin extends AbstractPlugin {
|
||||
|
||||
@Override public String name() {
|
||||
return "alerting-plugin";
|
||||
return "alerts";
|
||||
}
|
||||
|
||||
@Override public String description() {
|
||||
return "Alerting Plugin Description";
|
||||
return "Elasticsearch Alerts";
|
||||
}
|
||||
|
||||
@Override
|
|
@ -1,2 +1,2 @@
|
|||
plugin=org.elasticsearch.plugin.alerting.AlertingPlugin
|
||||
plugin=org.elasticsearch.alerts.plugin.AlertsPlugin
|
||||
version=${project.version}
|
|
@ -8,6 +8,7 @@ package org.elasticsearch.alerts;
|
|||
import org.elasticsearch.alerts.actions.AlertAction;
|
||||
import org.elasticsearch.alerts.actions.AlertActionFactory;
|
||||
import org.elasticsearch.alerts.actions.AlertActionManager;
|
||||
import org.elasticsearch.alerts.plugin.AlertsPlugin;
|
||||
import org.elasticsearch.alerts.scheduler.AlertScheduler;
|
||||
import org.elasticsearch.alerts.triggers.AlertTrigger;
|
||||
import org.elasticsearch.alerts.triggers.ScriptedAlertTrigger;
|
||||
|
@ -15,7 +16,6 @@ import org.elasticsearch.common.settings.ImmutableSettings;
|
|||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.plugin.alerting.AlertingPlugin;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||
import org.junit.Test;
|
||||
|
@ -36,8 +36,8 @@ public class BasicAlertingTest extends ElasticsearchIntegrationTest {
|
|||
protected Settings nodeSettings(int nodeOrdinal) {
|
||||
return ImmutableSettings.builder()
|
||||
.put(super.nodeSettings(nodeOrdinal))
|
||||
.put("plugin.mandatory", "alerting-plugin")
|
||||
.put("plugin.types", AlertingPlugin.class.getName())
|
||||
.put("plugin.mandatory", "alerts")
|
||||
.put("plugin.types", AlertsPlugin.class.getName())
|
||||
.put("node.mode", "network")
|
||||
.put("plugins.load_classpath_plugins", false)
|
||||
.build();
|
||||
|
|
Loading…
Reference in New Issue