Example usage for com.google.common.util.concurrent AbstractScheduledService subclass-usage

List of usage examples for com.google.common.util.concurrent AbstractScheduledService subclass-usage

Introduction

In this page you can find the example usage for com.google.common.util.concurrent AbstractScheduledService subclass-usage.

Usage

From source file co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.java

/**
 * Base class for {@link MetricsCollectionService} which collect metrics through a set of cached
 * {@link AggregatedMetricsEmitter}.
 */
public abstract class AggregatedMetricsCollectionService extends AbstractScheduledService
        implements MetricsCollectionService {

From source file org.apache.aurora.common.stats.TimeSeriesRepositoryImpl.java

/**
 * A simple in-memory repository for exported variables.
 *
 * @author John Sirois
 */
public class TimeSeriesRepositoryImpl extends AbstractScheduledService implements TimeSeriesRepository {

From source file dk.dma.ais.tracker.TargetTrackerFileBackupService.java

/**
 * Takes care of backing up and restoring in case of a crash.
 * 
 * @author Kasper Nielsen
 */
public class TargetTrackerFileBackupService extends AbstractScheduledService {

From source file org.gbif.crawler.scheduler.CrawlSchedulerService.java

/**
 * This service scans the registry at a configurable interval and schedules a crawl for all Datasets that fulfill a few
 * conditions:
 * <ul>
 * <li>The dataset is not deleted</li>
 * <li>The dataset is not external</li>

From source file dk.dma.ais.tracker.targetTracker.TargetTrackerFileBackupService.java

/**
 * Takes care of backing up and restoring in case of a crash.
 * 
 * @author Kasper Nielsen
 */
public class TargetTrackerFileBackupService extends AbstractScheduledService {

From source file org.apache.omid.tso.LeaseManager.java

/**
 * Encompasses all the required elements to control the leases required for
 * identifying the master instance when running multiple TSO instances for HA
 * It delegates the initialization of the TSO state and the publication of
 * the instance information when getting the lease to an asynchronous task to
 * continue managing the leases without interruptions.

From source file com.facebook.buck.util.perf.ProcessTracker.java

/**
 * A tracker that periodically probes for external processes resource consumption.
 *
 * Resource consumption has to be gathered periodically because it can only be retrieved while
 * the process is still alive and we have no way of knowing or even controlling when the process
 * is going to finish (assuming it finishes execution on its own). Furthermore, for some metrics

From source file co.cask.cdap.security.authorization.AbstractAuthorizationService.java

/**
 * An {@link AbstractScheduledService} that maintains a cache of privileges. The cache is updated periodically using
 * the provided {@link PrivilegesFetcher}.
 */
public class AbstractAuthorizationService extends AbstractScheduledService {

From source file org.gbif.crawler.coordinatorcleanup.CoordinatorCleanupService.java

/**
 * This services starts the Crawler Coordinator by listening for messages.
 */
public class CoordinatorCleanupService extends AbstractScheduledService {

    private static final Logger LOG = LoggerFactory.getLogger(CoordinatorCleanupService.class);

From source file org.apache.gobblin.runtime.TaskStateCollectorService.java

/**
 * An {@link AbstractScheduledService} for collecting output {@link TaskState}s of completed {@link Task}s
 * stored in files, which get deleted once the {@link TaskState}s they store are successfully collected.
 * For each batch of {@link TaskState}s collected, it posts a {@link NewTaskCompletionEvent} to notify
 * parties that are interested in such events.
 *