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


Java LifecycleState.STOP属性代码示例

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

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

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

示例5: stop

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

示例6: stop

@Override
public synchronized void stop() {
  if (getLifecycleState() == LifecycleState.STOP) {
    return;
  }
  channelCounter.setChannelSize(memQueue.size() + drainOrder.overflowCounter);
  channelCounter.stop();
  super.stop();
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:9,代码来源:SpillableMemoryChannel.java

示例7: stop

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

示例8: stop

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

示例9: stop

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

示例10: stop

@Override
public void stop() {
  LOGGER.info("Flume node stopping");
  configurationAware.stopAllComponents();
  lifecycleState = LifecycleState.STOP;
}
 
开发者ID:jopecko,项目名称:logback-flume-ng,代码行数:6,代码来源:FlumeNode.java

示例11: stop

@Override
public void stop() {

    LOGGER.info("Flume node stopping");

    configurationAware.stopAllComponents();

    lifecycleState = LifecycleState.STOP;
}
 
开发者ID:OuZhencong,项目名称:log4j2,代码行数:9,代码来源:FlumeNode.java


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