public class JournalReader
extends com.google.common.util.concurrent.AbstractExecutionThreadService
| Constructor and Description |
|---|
JournalReader(Journal journal,
ProcessBuffer processBuffer,
Semaphore journalFilled,
com.codahale.metrics.MetricRegistry metricRegistry,
com.google.common.eventbus.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
listenForLifecycleChanges(Lifecycle lifecycle) |
protected void |
run() |
protected void |
shutDown() |
protected void |
startUp() |
protected void |
triggerShutdown() |
@Inject public JournalReader(Journal journal, ProcessBuffer processBuffer, @Named(value="JournalSignal") Semaphore journalFilled, com.codahale.metrics.MetricRegistry metricRegistry, com.google.common.eventbus.EventBus eventBus)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionprotected void triggerShutdown()
triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic void listenForLifecycleChanges(Lifecycle lifecycle)
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.