本文整理汇总了Java中org.apache.flume.lifecycle.LifecycleState.START属性的典型用法代码示例。如果您正苦于以下问题:Java LifecycleState.START属性的具体用法?Java LifecycleState.START怎么用?Java LifecycleState.START使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.flume.lifecycle.LifecycleState
的用法示例。
在下文中一共展示了LifecycleState.START属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
@Override
public void start() {
PollableSource source = (PollableSource) getSource();
ChannelProcessor cp = source.getChannelProcessor();
cp.initialize();
source.start();
runner = new PollingRunner();
runner.source = source;
runner.counterGroup = counterGroup;
runner.shouldStop = shouldStop;
runnerThread = new Thread(runner);
runnerThread.setName(getClass().getSimpleName() + "-" +
source.getClass().getSimpleName() + "-" + source.getName());
runnerThread.start();
lifecycleState = LifecycleState.START;
}
示例2: start
@Override
public void start() {
SinkProcessor policy = getPolicy();
policy.start();
runner = new PollingRunner();
runner.policy = policy;
runner.counterGroup = counterGroup;
runner.shouldStop = new AtomicBoolean();
runnerThread = new Thread(runner);
runnerThread.setName("SinkRunner-PollingRunner-" +
policy.getClass().getSimpleName());
runnerThread.start();
lifecycleState = LifecycleState.START;
}
示例3: start
@Override
public void start() {
LOGGER.info("Configuration provider starting");
Preconditions.checkState(file != null,
"The parameter file must not be null");
executorService = Executors.newSingleThreadScheduledExecutor(
new ThreadFactoryBuilder().setNameFormat("conf-file-poller-%d")
.build());
FileWatcherRunnable fileWatcherRunnable =
new FileWatcherRunnable(file, counterGroup);
executorService.scheduleWithFixedDelay(fileWatcherRunnable, 0, interval,
TimeUnit.SECONDS);
lifecycleState = LifecycleState.START;
LOGGER.debug("Configuration provider started");
}
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:21,代码来源:PollingPropertiesFileConfigurationProvider.java
示例4: start
@Override
public void start() {
for (Sink s : sinkList) {
s.start();
}
state = LifecycleState.START;
}
示例5: start
@Override
public synchronized void start() {
Preconditions.checkState(channelProcessor != null,
"No channel processor configured");
lifecycleState = LifecycleState.START;
}
示例6: start
@Override
public void start() {
Source source = getSource();
ChannelProcessor cp = source.getChannelProcessor();
cp.initialize();
source.start();
lifecycleState = LifecycleState.START;
}
示例7: start
@Override
public void start() {
Preconditions.checkState(nodeManager != null, "Node manager can not be null");
LOGGER.info("Flume node starting");
configurationAware.startAllComponents(conf);
lifecycleState = LifecycleState.START;
}
示例8: start
@Override
public synchronized void start() {
lifecycleState = LifecycleState.START;
}
示例9: start
@Override
public void start() {
Preconditions.checkNotNull(sink, "DefaultSinkProcessor sink not set");
sink.start();
lifecycleState = LifecycleState.START;
}
示例10: start
@Override
public synchronized void start() {
Preconditions.checkState(channel != null, "No channel configured");
lifecycleState = LifecycleState.START;
}
示例11: start
@Override
public void start() {
state = LifecycleState.START;
}
示例12: isStarted
protected boolean isStarted() {
return getLifecycleState() == LifecycleState.START;
}
示例13: start
@Override
public void start() {
Preconditions.checkState(nodeManager != null, "Node manager can not be null");
LOGGER.info("Flume node starting");
configurationAware.startAllComponents(conf);
lifecycleState = LifecycleState.START;
}