org.apache.hadoop.yarn.conf.ConfigurationProvider Java Examples

The following examples show how to use org.apache.hadoop.yarn.conf.ConfigurationProvider. 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: RMContextImpl.java    From hadoop with Apache License 2.0 6 votes vote down vote up
@VisibleForTesting
// helper constructor for tests
public RMContextImpl(Dispatcher rmDispatcher,
    ContainerAllocationExpirer containerAllocationExpirer,
    AMLivelinessMonitor amLivelinessMonitor,
    AMLivelinessMonitor amFinishingMonitor,
    DelegationTokenRenewer delegationTokenRenewer,
    AMRMTokenSecretManager appTokenSecretManager,
    RMContainerTokenSecretManager containerTokenSecretManager,
    NMTokenSecretManagerInRM nmTokenSecretManager,
    ClientToAMTokenSecretManagerInRM clientToAMTokenSecretManager,
    RMApplicationHistoryWriter rmApplicationHistoryWriter,
    ResourceScheduler scheduler) {
  this();
  this.setDispatcher(rmDispatcher);
  setActiveServiceContext(new RMActiveServiceContext(rmDispatcher,
      containerAllocationExpirer, amLivelinessMonitor, amFinishingMonitor,
      delegationTokenRenewer, appTokenSecretManager,
      containerTokenSecretManager, nmTokenSecretManager,
      clientToAMTokenSecretManager, rmApplicationHistoryWriter,
      scheduler));

  ConfigurationProvider provider = new LocalConfigurationProvider();
  setConfigurationProvider(provider);
}
 
Example #2
Source File: RMContextImpl.java    From big-c with Apache License 2.0 6 votes vote down vote up
@VisibleForTesting
// helper constructor for tests
public RMContextImpl(Dispatcher rmDispatcher,
    ContainerAllocationExpirer containerAllocationExpirer,
    AMLivelinessMonitor amLivelinessMonitor,
    AMLivelinessMonitor amFinishingMonitor,
    DelegationTokenRenewer delegationTokenRenewer,
    AMRMTokenSecretManager appTokenSecretManager,
    RMContainerTokenSecretManager containerTokenSecretManager,
    NMTokenSecretManagerInRM nmTokenSecretManager,
    ClientToAMTokenSecretManagerInRM clientToAMTokenSecretManager,
    RMApplicationHistoryWriter rmApplicationHistoryWriter,
    ResourceScheduler scheduler) {
  this();
  this.setDispatcher(rmDispatcher);
  setActiveServiceContext(new RMActiveServiceContext(rmDispatcher,
      containerAllocationExpirer, amLivelinessMonitor, amFinishingMonitor,
      delegationTokenRenewer, appTokenSecretManager,
      containerTokenSecretManager, nmTokenSecretManager,
      clientToAMTokenSecretManager, rmApplicationHistoryWriter,
      scheduler));

  ConfigurationProvider provider = new LocalConfigurationProvider();
  setConfigurationProvider(provider);
}
 
Example #3
Source File: RMContextImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Override
public ConfigurationProvider getConfigurationProvider() {
  return this.configurationProvider;
}
 
Example #4
Source File: RMContextImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public void setConfigurationProvider(
    ConfigurationProvider configurationProvider) {
  this.configurationProvider = configurationProvider;
}
 
Example #5
Source File: RMContextImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Override
public ConfigurationProvider getConfigurationProvider() {
  return this.configurationProvider;
}
 
Example #6
Source File: RMContextImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
public void setConfigurationProvider(
    ConfigurationProvider configurationProvider) {
  this.configurationProvider = configurationProvider;
}
 
Example #7
Source File: MockRMContext.java    From incubator-myriad with Apache License 2.0 4 votes vote down vote up
public void setConfigurationProvider(ConfigurationProvider configurationProvider) {
  this.configurationProvider = configurationProvider;
}
 
Example #8
Source File: MockRMContext.java    From incubator-myriad with Apache License 2.0 4 votes vote down vote up
@Override
public ConfigurationProvider getConfigurationProvider() {
  return configurationProvider;
}
 
Example #9
Source File: RMContext.java    From hadoop with Apache License 2.0 votes vote down vote up
ConfigurationProvider getConfigurationProvider(); 
Example #10
Source File: RMContext.java    From big-c with Apache License 2.0 votes vote down vote up
ConfigurationProvider getConfigurationProvider();