当前位置: 首页>>代码示例>>Java>>正文


Java LifecycleState.START属性代码示例

本文整理汇总了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;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:20,代码来源:PollableSourceRunner.java

示例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;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:19,代码来源:SinkRunner.java

示例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;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:8,代码来源:AbstractSinkProcessor.java

示例5: start

@Override
public synchronized void start() {
  Preconditions.checkState(channelProcessor != null,
      "No channel processor configured");

  lifecycleState = LifecycleState.START;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:7,代码来源:AbstractSource.java

示例6: start

@Override
public void start() {
  Source source = getSource();
  ChannelProcessor cp = source.getChannelProcessor();
  cp.initialize();
  source.start();
  lifecycleState = LifecycleState.START;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:8,代码来源:EventDrivenSourceRunner.java

示例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;
}
 
开发者ID:jopecko,项目名称:logback-flume-ng,代码行数:7,代码来源:FlumeNode.java

示例8: start

@Override
public synchronized void start() {
  lifecycleState = LifecycleState.START;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:4,代码来源:AbstractChannel.java

示例9: start

@Override
public void start() {
  Preconditions.checkNotNull(sink, "DefaultSinkProcessor sink not set");
  sink.start();
  lifecycleState = LifecycleState.START;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:6,代码来源:DefaultSinkProcessor.java

示例10: start

@Override
public synchronized void start() {
  Preconditions.checkState(channel != null, "No channel configured");

  lifecycleState = LifecycleState.START;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:6,代码来源:AbstractSink.java

示例11: start

@Override
public void start() {
  state = LifecycleState.START;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:4,代码来源:AbstractSinkSelector.java

示例12: isStarted

protected boolean isStarted() {
  return getLifecycleState() == LifecycleState.START;
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:3,代码来源:BasicSourceSemantics.java

示例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;
}
 
开发者ID:OuZhencong,项目名称:log4j2,代码行数:11,代码来源:FlumeNode.java


注:本文中的org.apache.flume.lifecycle.LifecycleState.START属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。