List of usage examples for com.google.common.util.concurrent AbstractScheduledService subclass-usage
From source file io.pravega.service.server.reading.CacheManager.java
/**
* Manages the lifecycle of Cache Entries. Decides which entries are to be kept in memory and which are eligible for
* removal.
* <p/>
* Entry Management is indirect, and doesn't deal with them directly. Also, the management needs to be done across multiple
* CacheManager Clients, and a common scheme needs to be used to instruct each such client when it's time to evict unused entries.
From source file com.dangdang.ddframe.job.cloud.scheduler.ha.ReconcileScheduledService.java
/**
* ???.
*
* @author gaohongtao
*/
@Slf4j
From source file co.cask.cdap.data2.metrics.LevelDBDatasetMetricsReporter.java
/** * Collects LevelDB-based dataset's metrics from levelDB. */ // todo: consider extracting base class from HBaseDatasetMetricsReporter and LevelDBDatasetMetricsReporter public class LevelDBDatasetMetricsReporter extends AbstractScheduledService implements DatasetMetricsReporter { private static final Logger LOG = LoggerFactory.getLogger(LevelDBDatasetMetricsReporter.class);
From source file io.pravega.segmentstore.server.reading.CacheManager.java
/**
* Manages the lifecycle of Cache Entries. Decides which entries are to be kept in memory and which are eligible for
* removal.
* <p/>
* Entry Management is indirect, and doesn't deal with them directly. Also, the management needs to be done across multiple
* CacheManager Clients, and a common scheme needs to be used to instruct each such client when it's time to evict unused entries.
From source file com.gemstone.gemfire.internal.cache.EvictorService.java
/**
* Schedules each iteration periodically. EvictorService takes absolute time and
* a period as input and schedules Eviction at absolute times by calculating the
* interval. For scheduling the next eviction iteration it also takes into
* account the time taken to complete one iteration. If an iteration takes more
* time than the specified period then another iteration is scheduled
From source file com.brighttag.agathon.security.SecurityGroupUpdaterService.java
/**
* Periodically updates the security group associated with the Cassandra ring.
*
* @author Greg Opaczewski
* @author codyaray
* @since 1/11/2013
From source file co.cask.cdap.data2.metrics.HBaseDatasetMetricsReporter.java
/** * Collects HBase-based dataset's metrics from HBase. */ // todo: consider extracting base class from HBaseDatasetMetricsReporter and LevelDBDatasetMetricsReporter public class HBaseDatasetMetricsReporter extends AbstractScheduledService implements DatasetMetricsReporter { private final int reportIntervalInSec;
From source file com.continuuity.loom.provisioner.mock.MockWorker.java
/** * Mock worker that periodically takes a task and finishes it without performing any actual work. */ public class MockWorker extends AbstractScheduledService { private static final Gson GSON = new Gson(); private static final Logger LOG = LoggerFactory.getLogger(MockWorker.class);
From source file com.andrewkroh.cicso.rtp.AudioFileStreamer.java
/**
* Streams an audio file using an {@link RtpSession} as the distribution
* mechanism.
*
* @author akroh
*/
From source file com.continuuity.loom.provisioner.mock.MockProvisionerService.java
/** * Mock provisioner that will register itself, periodically heartbeat, and deregister itself on shutdown. Also starts * up services for handling http requests for editing tenants and a mock service for managing tenant workers. */ public class MockProvisionerService extends AbstractScheduledService { private static final Logger LOG = LoggerFactory.getLogger(MockProvisionerService.class);