List of usage examples for com.google.common.util.concurrent AbstractIdleService subclass-usage
From source file com.github.kryptohash.kryptohashj.kits.WalletAppKit.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 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.spotify.helios.servicescommon.coordination.ZooKeeperUpdatingPersistentDirectory.java
/**
* A map that persists modification locally on disk and attempt to replicate modifications to
* ZooKeeper, retrying forever until successful. Note that ZooKeeper is only written to and never
* read from, so this is not a distributed map. Multiple changes to the same key are folded and only
* the last value is written to ZooKeeper.
*/
From source file co.cask.cdap.internal.app.preview.DefaultPreviewRunner.java
/** * Default implementation of the {@link PreviewRunner}. */ public class DefaultPreviewRunner extends AbstractIdleService implements PreviewRunner { private static final Gson GSON = new Gson(); private static final ProgramTerminator NOOP_PROGRAM_TERMINATOR = new ProgramTerminator() {
From source file com.matthewmitchell.peercoinj.kits.WalletAppKit.java
/**
* <p>Utility class that wraps the boilerplate needed to set up a new SPV peercoinj 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.yarn.YarnWeaveRunnerService.java
/** * */ public final class YarnWeaveRunnerService extends AbstractIdleService implements WeaveRunnerService { private static final String KAFKA_ARCHIVE = "kafka-0.7.2.tgz";
From source file co.runrightfast.vertx.core.application.RunRightFastVertxApplicationLauncher.java
/**
* The design pattern for an application is:
*
* <ol>
* <li>Create an application main class which provides a method to create an {@link RunRightFastVertxApplication} instance
* <li>The application main method delegates to {@link RunRightFastVertxApplicationLauncher#run(java.util.function.Supplier, java.lang.String...)}
From source file com.continuuity.loom.provisioner.plugin.ResourceService.java
/** * Service for managing plugin modules. */ public class ResourceService extends AbstractIdleService { private static final Logger LOG = LoggerFactory.getLogger(ResourceService.class); private final Configuration conf;
From source file com.continuuity.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 co.cask.cdap.internal.app.runtime.plugin.PluginService.java
/** * To find, instantiate and invoke methods in plugin artifacts */ @Singleton public class PluginService extends AbstractIdleService { private static final Logger LOG = LoggerFactory.getLogger(PluginService.class);
From source file com.spotify.helios.agent.QueueingHistoryWriter.java
/**
* Just some breadcrumbs so next time, the person that follows me can understand why things are
* the way they are.
*
* Theory of operation:
* 1. saveHistoryItem should never block for any significant amount of time. Specifically, it