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

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

Introduction

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

Usage

From source file com.zaradai.kunzite.trader.Trader.java

public class Trader extends AbstractIdleService {
    private final ContextLogger logger;
    private final TraderConfiguration configuration;
    private final StaticDataLoader staticDataLoader;
    private final OrderGatewayConfigLoader orderGatewayConfigLoader;
    private final MarketDataConfigLoader marketDataConfigLoader;

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

/**
 * An abstract implementation of {@link TaskStateTracker} that provides basic common functionality for
 * platform-specific implementations.
 *
 * @author Yinan Li
 */

From source file gobblin.service.SimpleKafkaSpecExecutorInstance.java

public class SimpleKafkaSpecExecutorInstance extends AbstractIdleService implements SpecExecutorInstance {
    public static final String SPEC_KAFKA_TOPICS_KEY = "spec.kafka.topics";
    protected static final Splitter SPLIT_BY_COMMA = Splitter.on(",").omitEmptyStrings().trimResults();
    protected static final Splitter SPLIT_BY_COLON = Splitter.on(":").omitEmptyStrings().trimResults();

    // Executor Instance

From source file com.continuuity.loom.scheduler.Scheduler.java

/**
 * Runs the different schedulers for solving cluster layouts and planning and coordinating cluster jobs. Leader election
 * is run so that only a single server in a server cluster will be running these schedulers at any given time,
 * where a server cluster is defined as all servers using the same zookeeper quorum.
 */
public class Scheduler extends AbstractIdleService {

From source file org.apache.gobblin.service.modules.orchestration.AzkabanSpecExecutorInstance.java

public class AzkabanSpecExecutorInstance extends AbstractIdleService implements SpecExecutorInstance {
    protected static final Splitter SPLIT_BY_COMMA = Splitter.on(",").omitEmptyStrings().trimResults();
    protected static final Splitter SPLIT_BY_COLON = Splitter.on(":").omitEmptyStrings().trimResults();

    // Executor Instance
    protected final Config _config;

From source file org.apache.gobblin.runtime.job_catalog.CachingJobCatalog.java

/**
 * A JobCatalog decorator that caches all JobSpecs in memory.
 *
 */
public class CachingJobCatalog extends AbstractIdleService implements JobCatalog {
    protected final JobCatalog _fallback;

From source file co.cask.tigon.sql.internal.StreamEngineSimulator.java

/**
 * Simulates StreamEngine - Identity transform of single input stream to single output stream.
 */
public class StreamEngineSimulator extends AbstractIdleService {
    private static final Logger LOG = LoggerFactory.getLogger(StreamEngineSimulator.class);
    private static Channel clientChannel;

From source file co.cask.cdap.metadata.MetadataService.java

/**
 * Service to manage metadata in CDAP. This service serves the HTTP endpoints defined in {@link MetadataHttpHandler}.
 */
public class MetadataService extends AbstractIdleService {
    private static final Logger LOG = LoggerFactory.getLogger(MetadataService.class);

From source file gobblin.admin.AdminWebServer.java

/**
 * Serves the admin UI interface using embedded Jetty.
 */
public class AdminWebServer extends AbstractIdleService {
    private static final Logger LOGGER = LoggerFactory.getLogger(AdminWebServer.class);

From source file gobblin.runtime.scheduler.AbstractJobSpecScheduler.java

/**
 * A base implementation of {@link JobSpecScheduler} that keeps track of {@link JobSpecSchedule}s
 * and listeners. Subclasses are expected to implement mainly
 * {@link #doScheduleJob(JobSpec, Runnable)} and {@link #doUnschedule(JobSpecSchedule)} which
 * implement the actual scheduling.
 */