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 org.bitcoinj_extra.kits.WalletAppKit.java

/**
 * <p>Utility class that wraps the boilerplate needed to set up a new SPV bitcoinj_extra app. Instantiate it with a directory
 * and file prefix, optionally configure a few things, then use startAsync and optionally awaitRunning. The object will
 * construct and configure a {@link BlockChain}, {@link SPVBlockStore}, {@link Wallet} and {@link PeerGroup}. Depending
 * on the value of the blockingStartup property, startup will be considered complete once the block chain has fully
 * synchronized, so it can take a while.</p>

From source file com.continuuity.weave.internal.yarn.Hadoop21YarnAppClient.java

/**
 *
 */
public final class Hadoop21YarnAppClient extends AbstractIdleService implements YarnAppClient {

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

From source file co.cask.cdap.app.runtime.spark.SparkCredentialsUpdater.java

/**
 * This class is responsible for writing credentials to a location that Spark executor is expecting for
 * secure credentials update for long running process.
 */
public class SparkCredentialsUpdater extends AbstractIdleService implements Runnable {

From source file gobblin.rest.JobExecutionInfoServer.java

/**
 * A server running the Rest.li resource for job execution queries.
 *
 * @author Yinan Li
 */
public class JobExecutionInfoServer extends AbstractIdleService {

From source file co.cask.cdap.data.tools.DatasetServiceManager.java

/**
 * Provides a {@link DatasetService} which uses {@link RemoteDatasetFramework}.
 * This is used to independently start a remote dataset service during upgrade. This is needed to perform upgrade steps
 * which needs access to user datasets.
 * Note: This should not be used outside upgrade tool.
 */

From source file org.apache.twill.internal.yarn.AbstractYarnAMClient.java

/**
 * Abstract base for implementing YarnAMClient for different versions of hadoop.
 *
 * @param <T> Type of container request.
 */
public abstract class AbstractYarnAMClient<T> extends AbstractIdleService implements YarnAMClient {

From source file gobblin.runtime.kafka.HighLevelConsumer.java

/**
 * A high level consumer for Kafka topics. Subclasses should implement {@link HighLevelConsumer#processMessage(MessageAndMetadata)}
 *
 * Note each thread will block for each message until {@link #processMessage(MessageAndMetadata)} returns, so for high
 * volume topics with few partitions {@link #processMessage(MessageAndMetadata)} must be fast or itself spawn more
 * threads.

From source file com.spotify.helios.servicescommon.coordination.ZooKeeperPersistentNodeRemover.java

public class ZooKeeperPersistentNodeRemover extends AbstractIdleService {

    private static final Logger log = LoggerFactory.getLogger(ZooKeeperPersistentNodeRemover.class);

    private static final boolean DEFAULT_RECURSIVE = false;

From source file org.eclipse.epp.internal.logging.aeri.ui.log.ReportHistory.java

public class ReportHistory extends AbstractIdleService {

    private static final String F_VERSION = "version";
    private static final String F_IDENTITY = "identity";
    private static final String F_IDENTITY_TRACE = "identity-trace";
    private Directory index;

From source file org.apache.twill.internal.yarn.Hadoop21YarnAppClient.java

/**
 * <p>
 * The service implementation of {@link YarnAppClient} for Apache Hadoop 2.1 and beyond.
 *
 * The {@link VersionDetectYarnAppClientFactory} class will decide to return instance of this class for
 * Apache Hadoop 2.1 and beyond.