public class AmbariServerAlertService
extends com.google.common.util.concurrent.AbstractScheduledService
AmbariServerAlertService is used to manage the dynamically loaded
AlertRunnables which perform server-side alert checks. The
AlertRunnables are scheduled using a ScheduledExecutorService
with a fixed thread pool size.| Constructor and Description |
|---|
AmbariServerAlertService()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initExecutor(int alertServiceCorePoolSize) |
protected void |
runOneIteration()
Compares all known
RootComponent.AMBARI_SERVER alerts with those that
are scheduled. |
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
scheduler() |
protected void |
startUp()
Loads all of the definitions with SERVER source type and schedules
the ones that are enabled.
|
@Inject public void initExecutor(int alertServiceCorePoolSize)
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()
scheduler in class com.google.common.util.concurrent.AbstractScheduledServiceprotected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractScheduledServiceExceptionprotected void runOneIteration()
throws Exception
RootComponent.AMBARI_SERVER alerts with those that
are scheduled. If any are not scheduled or have their intervals changed,
then reschedule those.runOneIteration in class com.google.common.util.concurrent.AbstractScheduledServiceExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.