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 org.asoem.greyfish.cli.ExperimentMonitorService.java

/**
 * This service monitors a given {@link org.asoem.greyfish.core.environment.DiscreteTimeEnvironment} and prints messages
 * to a given {@link OutputStream} every second.
 */
final class ExperimentMonitorService extends AbstractScheduledService {

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

/**
 * Periodically probes for process-wide perf-related metrics.
 */
public class PerfStatsTracking extends AbstractScheduledService implements AutoCloseable {
    private final BuckEventBus eventBus;
    private final ServiceManager serviceManager;

From source file fr.inria.eventcloud.load_balancing.services.LoadBalancingService.java

/**
 * Abstract service in charge of performing load balancing periodically.
 * 
 * @author lpellegr
 */
public abstract class LoadBalancingService extends AbstractScheduledService {

From source file eu.interedition.text.index.IndexServiceBase.java

/**
 * @author <a href="http://gregor.middell.net/" title="Homepage">Gregor Middell</a>
 */
public abstract class IndexServiceBase extends AbstractScheduledService {
    private final Logger LOG = Logger.getLogger(getClass().getName());

From source file com.cloudera.branchreduce.impl.distributed.TaskMaster.java

/**
 *
 */
public class TaskMaster<T extends Writable, G extends GlobalState<G>> extends AbstractScheduledService {

    public interface WorkerProxy<T, G> {

From source file com.continuuity.loom.provisioner.mock.MockProvisionerWorkerService.java

/**
 * Mock service that will spin up and shut down mock workers for tenants.
 */
public class MockProvisionerWorkerService extends AbstractScheduledService {
    private static final Logger LOG = LoggerFactory.getLogger(MockProvisionerWorkerService.class);
    private final MockProvisionerTenantStore provisionerTenantStore = MockProvisionerTenantStore.getInstance();

From source file org.apache.aurora.scheduler.storage.log.SnapshotService.java

/**
 * A {@link SnapshotStore} that snapshots to the log, and automatically snapshots on
 * a fixed interval.
 */
class SnapshotService extends AbstractScheduledService implements SnapshotStore {
    private static final Logger LOG = LoggerFactory.getLogger(SnapshotService.class);

From source file google.registry.monitoring.metrics.MetricReporter.java

/**
 * Engine to write metrics to a {@link MetricWriter} on a regular periodic basis.
 *
 * <p>In the Producer/Consumer pattern, this class is the Producer and {@link MetricExporter} is the
 * consumer.
 */

From source file co.cask.cdap.data.stream.service.AbstractStreamService.java

/**
 * Stream service meant to run in an HTTP service.
 */
public abstract class AbstractStreamService extends AbstractScheduledService implements StreamService {

    private final StreamCoordinatorClient streamCoordinatorClient;

From source file 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.
 *