List of usage examples for com.google.common.eventbus EventSubscriber interface-usage
From source file org.sonatype.nexus.events.RepositoryConfigurationUpdatedEventInspector.java
/**
* Event inspector listening for configuration changes to expire caches when Local or Remote URL changed of the
* repository.
*/
@Named
@Singleton
From source file org.sonatype.nexus.events.DeleteRepositoryFoldersEventInspector.java
/**
* Spawns a background task to delete repository folders upon removal.
*
* @author cstamas
*/
@Named
From source file org.apache.aurora.scheduler.events.Webhook.java
/** * Watches TaskStateChanges and send events to configured endpoint. */ public class Webhook implements EventSubscriber { private static final Logger LOG = LoggerFactory.getLogger(Webhook.class);
From source file org.apache.aurora.scheduler.async.TaskThrottler.java
/**
* A holding area for tasks that have been throttled. Tasks entering the
* {@link org.apache.aurora.gen.ScheduleStatus#THROTTLED} state will be transitioned to
* {@link org.apache.aurora.gen.ScheduleStatus#PENDING} after the penalty period (as dictated by
* {@link RescheduleCalculator} has expired.
*/
From source file org.apache.aurora.scheduler.async.KillRetry.java
/** * Watches for task transitions into {@link ScheduleStatus#KILLING KILLING} and periodically * retries {@link Driver#killTask(String)} until the task transitions. */ public class KillRetry implements EventSubscriber { private static final Logger LOG = Logger.getLogger(KillRetry.class.getName());
From source file org.apache.aurora.scheduler.async.TaskTimeout.java
/** * Observes task transitions and identifies tasks that are 'stuck' in a transient state. Stuck * tasks will be transitioned to the LOST state. */ class TaskTimeout extends AbstractIdleService implements EventSubscriber { private static final Logger LOG = Logger.getLogger(TaskTimeout.class.getName());
From source file org.apache.aurora.scheduler.mesos.TaskStatusStats.java
/** * A status event listener that exports statistics about the contents of status updates. */ class TaskStatusStats implements EventSubscriber { private static final Logger LOG = LoggerFactory.getLogger(TaskStatusStats.class);
From source file org.apache.aurora.scheduler.scheduling.TaskThrottler.java
/**
* A holding area for tasks that have been throttled. Tasks entering the
* {@link org.apache.aurora.gen.ScheduleStatus#THROTTLED} state will be transitioned to
* {@link org.apache.aurora.gen.ScheduleStatus#PENDING} after the penalty period (as dictated by
* {@link RescheduleCalculator} has expired.
*/
From source file org.apache.aurora.scheduler.reconciliation.KillRetry.java
/** * Watches for task transitions into {@link ScheduleStatus#KILLING KILLING} and periodically * retries {@link Driver#killTask(String)} until the task transitions. */ public class KillRetry implements EventSubscriber { private static final Logger LOG = LoggerFactory.getLogger(KillRetry.class);
From source file com.twitter.aurora.scheduler.metadata.NearestFit.java
/** * Tracks vetoes against scheduling decisions and maintains the closest fit among all the vetoes * for a task. */ public class NearestFit implements EventSubscriber { @VisibleForTesting