List of usage examples for com.google.common.util.concurrent AbstractIdleService subclass-usage
From source file com.google.logicoin.core.PeerGroup.java
/**
* <p>Runs a set of connections to the P2P network, brings up connections to replace disconnected nodes and manages
* the interaction between them all. Most applications will want to use one of these.</p>
*
* <p>PeerGroup tries to maintain a constant number of connections to a set of distinct peers.
* Each peer runs a network listener in its own thread. When a connection is lost, a new peer
From source file co.cask.cdap.data2.datafabric.dataset.service.DatasetTypeService.java
/** * Manages lifecycle of dataset {@link DatasetType types} and {@link DatasetModule modules}. */ public class DatasetTypeService extends AbstractIdleService { private static final Logger LOG = LoggerFactory.getLogger(DatasetTypeService.class);
From source file org.graylog2.shared.journal.KafkaJournal.java
@Singleton public class KafkaJournal extends AbstractIdleService implements Journal { private static final Logger LOG = LoggerFactory.getLogger(KafkaJournal.class); private static final int NUM_IO_THREADS = 1; public static final long DEFAULT_COMMITTED_OFFSET = Long.MIN_VALUE;
From source file co.cask.cdap.data.tools.flow.FlowQueuePendingCorrector.java
/**
* Corrects the "queue.pending" metric emitted in {@link co.cask.cdap.internal.app.runtime.flow.FlowletProgramRunner}.
*
* <p>
* Requires the kafka server (configured by cdap-site.xml) to be running, as it emits corrective metric values.
* </p>
From source file gobblin.yarn.YarnService.java
/**
* This class is responsible for all Yarn-related stuffs including ApplicationMaster registration,
* ApplicationMaster un-registration, Yarn container management, etc.
*
* @author Yinan Li
*/
From source file org.apache.gobblin.yarn.YarnService.java
/**
* This class is responsible for all Yarn-related stuffs including ApplicationMaster registration,
* ApplicationMaster un-registration, Yarn container management, etc.
*
* @author Yinan Li
*/
From source file com.spotify.helios.agent.AgentService.java
/** * The Helios agent. */ public class AgentService extends AbstractIdleService implements Managed { private static final Logger log = LoggerFactory.getLogger(AgentService.class);
From source file co.cask.cdap.internal.app.runtime.adapter.AdapterService.java
/** * Service that manages lifecycle of Adapters. */ public class AdapterService extends AbstractIdleService { private static final Logger LOG = LoggerFactory.getLogger(AdapterService.class); private static final Gson GSON = ApplicationSpecificationAdapter.addTypeAdapters(new GsonBuilder()).create();
From source file com.spotify.helios.master.MasterService.java
/** * The Helios master service. */ public class MasterService extends AbstractIdleService { private static final Logger log = LoggerFactory.getLogger(MasterService.class);
From source file co.cask.cdap.explore.service.hive.BaseHiveExploreService.java
/**
* Defines common functionality used by different HiveExploreServices. The common functionality includes
* starting/stopping transactions, serializing configuration and saving operation information.
*
* Overridden {@link co.cask.cdap.explore.service.Explore} methods also call {@code startAndWait()},
* which effectively allows this {@link com.google.common.util.concurrent.Service} to not have to start