Java Code Examples for org.apache.hadoop.yarn.event.AsyncDispatcher#setDrainEventsOnStop()

The following examples show how to use org.apache.hadoop.yarn.event.AsyncDispatcher#setDrainEventsOnStop() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CommonNodeLabelsManager.java    From hadoop with Apache License 2.0 5 votes vote down vote up
protected void initDispatcher(Configuration conf) {
  // create async handler
  dispatcher = new AsyncDispatcher();
  AsyncDispatcher asyncDispatcher = (AsyncDispatcher) dispatcher;
  asyncDispatcher.init(conf);
  asyncDispatcher.setDrainEventsOnStop();
}
 
Example 2
Source File: RMStateStore.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
protected void serviceInit(Configuration conf) throws Exception{
  // create async handler
  dispatcher = new AsyncDispatcher();
  dispatcher.init(conf);
  dispatcher.register(RMStateStoreEventType.class, 
                      new ForwardingEventHandler());
  dispatcher.setDrainEventsOnStop();
  initInternal(conf);
}
 
Example 3
Source File: CommonNodeLabelsManager.java    From big-c with Apache License 2.0 5 votes vote down vote up
protected void initDispatcher(Configuration conf) {
  // create async handler
  dispatcher = new AsyncDispatcher();
  AsyncDispatcher asyncDispatcher = (AsyncDispatcher) dispatcher;
  asyncDispatcher.init(conf);
  asyncDispatcher.setDrainEventsOnStop();
}
 
Example 4
Source File: RMStateStore.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
protected void serviceInit(Configuration conf) throws Exception{
  // create async handler
  dispatcher = new AsyncDispatcher();
  dispatcher.init(conf);
  dispatcher.register(RMStateStoreEventType.class, 
                      new ForwardingEventHandler());
  dispatcher.setDrainEventsOnStop();
  initInternal(conf);
}
 
Example 5
Source File: SystemMetricsPublisher.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public void setDrainEventsOnStop() {
  for (AsyncDispatcher dispatcher : dispatchers) {
    dispatcher.setDrainEventsOnStop();
  }
}
 
Example 6
Source File: RMApplicationHistoryWriter.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public void setDrainEventsOnStop() {
  for (AsyncDispatcher dispatcher : dispatchers) {
    dispatcher.setDrainEventsOnStop();
  }
}
 
Example 7
Source File: SystemMetricsPublisher.java    From big-c with Apache License 2.0 4 votes vote down vote up
public void setDrainEventsOnStop() {
  for (AsyncDispatcher dispatcher : dispatchers) {
    dispatcher.setDrainEventsOnStop();
  }
}
 
Example 8
Source File: RMApplicationHistoryWriter.java    From big-c with Apache License 2.0 4 votes vote down vote up
public void setDrainEventsOnStop() {
  for (AsyncDispatcher dispatcher : dispatchers) {
    dispatcher.setDrainEventsOnStop();
  }
}