Cleanup: removed unused field and method

Original commit: elastic/x-pack-elasticsearch@058e57f6c4
This commit is contained in:
Martijn van Groningen 2014-11-12 18:03:17 +01:00
parent 3bed2c92e2
commit 4d581876bd

View File

@ -19,7 +19,6 @@ import org.elasticsearch.cluster.ClusterChangedEvent;
import org.elasticsearch.cluster.ClusterService;
import org.elasticsearch.cluster.ClusterStateListener;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.collect.ImmutableList;
import org.elasticsearch.common.collect.Tuple;
import org.elasticsearch.common.component.AbstractComponent;
import org.elasticsearch.common.component.LifecycleListener;
@ -31,7 +30,6 @@ import org.elasticsearch.indices.IndicesService;
import org.elasticsearch.threadpool.ThreadPool;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.atomic.AtomicBoolean;
@ -43,7 +41,6 @@ public class AlertManager extends AbstractComponent {
private final AlertScheduler scheduler;
private final AlertsStore alertsStore;
private final TriggerManager triggerManager;
private final ClusterService clusterService;
private final AlertActionManager actionManager;
private final AlertActionRegistry actionRegistry;
private final AtomicBoolean started = new AtomicBoolean(false);
@ -58,7 +55,6 @@ public class AlertManager extends AbstractComponent {
this.threadPool = threadPool;
this.scheduler.setAlertManager(this);
this.alertsStore = alertsStore;
this.clusterService = clusterService;
this.triggerManager = triggerManager;
this.actionManager = actionManager;
this.actionManager.setAlertManager(this);
@ -90,11 +86,6 @@ public class AlertManager extends AbstractComponent {
return result.v2();
}
public List<Alert> getAllAlerts() {
ensureStarted();
return ImmutableList.copyOf(alertsStore.getAlerts().values());
}
public boolean isStarted() {
return started.get();
}