本文整理汇总了Java中org.apache.flume.lifecycle.LifecycleState.STOP属性的典型用法代码示例。如果您正苦于以下问题:Java LifecycleState.STOP属性的具体用法?Java LifecycleState.STOP怎么用?Java LifecycleState.STOP使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.flume.lifecycle.LifecycleState
的用法示例。
在下文中一共展示了LifecycleState.STOP属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stop
@Override
public void stop() {
runner.shouldStop.set(true);
try {
runnerThread.interrupt();
runnerThread.join();
} catch (InterruptedException e) {
logger.warn("Interrupted while waiting for polling runner to stop. Please report this.", e);
Thread.currentThread().interrupt();
}
Source source = getSource();
source.stop();
ChannelProcessor cp = source.getChannelProcessor();
cp.close();
lifecycleState = LifecycleState.STOP;
}
示例2: stop
@Override
public void stop() {
if (runnerThread != null) {
runner.shouldStop.set(true);
runnerThread.interrupt();
while (runnerThread.isAlive()) {
try {
logger.debug("Waiting for runner thread to exit");
runnerThread.join(500);
} catch (InterruptedException e) {
logger.debug("Interrupted while waiting for runner thread to exit. Exception follows.",
e);
}
}
}
getPolicy().stop();
lifecycleState = LifecycleState.STOP;
}
示例3: stop
@Override
public void stop() {
LOGGER.info("Configuration provider stopping");
executorService.shutdown();
try {
while (!executorService.awaitTermination(500, TimeUnit.MILLISECONDS)) {
LOGGER.debug("Waiting for file watcher to terminate");
}
} catch (InterruptedException e) {
LOGGER.debug("Interrupted while waiting for file watcher to terminate");
Thread.currentThread().interrupt();
}
lifecycleState = LifecycleState.STOP;
LOGGER.debug("Configuration provider stopped");
}
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:16,代码来源:PollingPropertiesFileConfigurationProvider.java
示例4: stop
@Override
public void stop() {
for (Sink s : sinkList) {
s.stop();
}
state = LifecycleState.STOP;
}
示例5: stop
@Override
public void stop() {
Source source = getSource();
source.stop();
ChannelProcessor cp = source.getChannelProcessor();
cp.close();
lifecycleState = LifecycleState.STOP;
}
示例6: stop
@Override
public synchronized void stop() {
if (getLifecycleState() == LifecycleState.STOP) {
return;
}
channelCounter.setChannelSize(memQueue.size() + drainOrder.overflowCounter);
channelCounter.stop();
super.stop();
}
示例7: stop
@Override
public synchronized void stop() {
lifecycleState = LifecycleState.STOP;
}
示例8: stop
@Override
public void stop() {
Preconditions.checkNotNull(sink, "DefaultSinkProcessor sink not set");
sink.stop();
lifecycleState = LifecycleState.STOP;
}
示例9: stop
@Override
public void stop() {
state = LifecycleState.STOP;
}
示例10: stop
@Override
public void stop() {
LOGGER.info("Flume node stopping");
configurationAware.stopAllComponents();
lifecycleState = LifecycleState.STOP;
}
示例11: stop
@Override
public void stop() {
LOGGER.info("Flume node stopping");
configurationAware.stopAllComponents();
lifecycleState = LifecycleState.STOP;
}