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 co.cask.cdap.internal.app.services.ApplicationLifecycleService.java

/**
 * Service that manage lifecycle of Applications
 * TODO: Currently this only handles the  deletion of the application. The code from {@link AppLifecycleHttpHandler}
 * should be moved here and the calls should be delegated to this class.
 */
public class ApplicationLifecycleService extends AbstractIdleService {

From source file org.apache.gobblin.service.StreamingKafkaSpecConsumer.java

@Slf4j
/**
 * SpecConsumer that consumes from kafka in a streaming manner
 * Implemented {@link AbstractIdleService} for starting up and shutting down.
 */
public class StreamingKafkaSpecConsumer extends AbstractIdleService

From source file com.continuuity.weave.internal.appmaster.TrackerService.java

/**
 * Webservice that the Application Master will register back to the resource manager
 * for clients to track application progress.  Currently used purely for getting a
 * breakdown of resource usage as a {@link com.continuuity.weave.api.ResourceReport}.
 */
public final class TrackerService extends AbstractIdleService {

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

/**
 * A class for executing {@link Task}s and retrying failed ones as well as for executing {@link Fork}s.
 *
 * @author Yinan Li
 */
public class TaskExecutor extends AbstractIdleService {

From source file co.cask.cdap.internal.app.services.ProgramLifecycleService.java

/**
 * Service that manages lifecycle of Programs.
 */
public class ProgramLifecycleService extends AbstractIdleService {
    private static final Logger LOG = LoggerFactory.getLogger(ProgramLifecycleService.class);

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

/**
 * This class implements a manager to manage the life cycle of a {@link Dag}. A {@link Dag} is submitted to the
 * {@link DagManager} by the {@link Orchestrator#orchestrate(Spec)} method. On receiving a {@link Dag}, the
 * {@link DagManager} first persists the {@link Dag} to the {@link DagStateStore}, and then submits it to a {@link BlockingQueue}.
 * This guarantees that each {@link Dag} received by the {@link DagManager} can be recovered in case of a leadership
 * change or service restart.

From source file io.pravega.controller.server.ControllerServiceStarter.java

/**
 * Creates the controller service, given the service configuration.
 */
@Slf4j
public class ControllerServiceStarter extends AbstractIdleService {
    private final ControllerServiceConfig serviceConfig;

From source file co.cask.http.NettyHttpService.java

/**
 * Webservice implemented using the netty framework. Implements Guava's Service interface to manage the states
 * of the webservice.
 */
public final class NettyHttpService extends AbstractIdleService {

From source file org.apache.gobblin.runtime.instance.DefaultGobblinInstanceDriverImpl.java

/**
 * A default implementation of {@link GobblinInstanceDriver}. It accepts already instantiated
 * {@link JobCatalog}, {@link JobSpecMonitorFactory}, {@link JobSpecScheduler},
 * {@link JobExecutionLauncher}. It is responsibility of the caller to manage those (e.g. start,
 * shutdown, etc.)
 *

From source file com.google.bitcoin.kits.NewWalletAppKit.java

/**
 * <p>
 * Utility class that wraps the boilerplate needed to set up a new SPV bitcoinj
 * app. Instantiate it with a directory and file prefix, optionally configure a
 * few things, then use start or startAndWait. The object will construct and
 * configure a {@link BlockChain}, {@link SPVBlockStore}, {@link Wallet} and