public RMActiveServiceContext(Dispatcher rmDispatcher, ContainerAllocationExpirer containerAllocationExpirer, AMLivelinessMonitor amLivelinessMonitor, AMLivelinessMonitor amFinishingMonitor, DelegationTokenRenewer delegationTokenRenewer, AMRMTokenSecretManager appTokenSecretManager, RMContainerTokenSecretManager containerTokenSecretManager , NMTokenSecretManagerInRM nmTokenSecretManager, ClientToAMTokenSecretManagerInRM clientToAMTokenSecretManager, ResourceScheduler scheduler) : this() { this.SetContainerAllocationExpirer(containerAllocationExpirer); this.SetAMLivelinessMonitor(amLivelinessMonitor); this.SetAMFinishingMonitor(amFinishingMonitor); this.SetDelegationTokenRenewer(delegationTokenRenewer); this.SetAMRMTokenSecretManager(appTokenSecretManager); this.SetContainerTokenSecretManager(containerTokenSecretManager); this.SetNMTokenSecretManager(nmTokenSecretManager); this.SetClientToAMTokenSecretManager(clientToAMTokenSecretManager); this.SetScheduler(scheduler); RMStateStore nullStore = new NullRMStateStore(); nullStore.SetRMDispatcher(rmDispatcher); try { nullStore.Init(new YarnConfiguration()); SetStateStore(nullStore); } catch (Exception) { System.Diagnostics.Debug.Assert(false); } }
public _RMContextImpl_159(ConcurrentMap <ApplicationId, RMApp> applicationsMaps, Dispatcher baseArg1, ContainerAllocationExpirer baseArg2, AMLivelinessMonitor baseArg3, AMLivelinessMonitor baseArg4, DelegationTokenRenewer baseArg5, AMRMTokenSecretManager baseArg6, RMContainerTokenSecretManager baseArg7, NMTokenSecretManagerInRM baseArg8, ClientToAMTokenSecretManagerInRM baseArg9 , ResourceScheduler baseArg10) : base(baseArg1, baseArg2, baseArg3, baseArg4, baseArg5, baseArg6, baseArg7, baseArg8 , baseArg9, baseArg10) { this.applicationsMaps = applicationsMaps; }
public _RMContextImpl_121(ConcurrentMap <ApplicationId, RMApp> map, Dispatcher baseArg1 , ContainerAllocationExpirer baseArg2, AMLivelinessMonitor baseArg3, AMLivelinessMonitor baseArg4, DelegationTokenRenewer baseArg5, AMRMTokenSecretManager baseArg6, RMContainerTokenSecretManager baseArg7, NMTokenSecretManagerInRM baseArg8, ClientToAMTokenSecretManagerInRM baseArg9 ) : base(baseArg1, baseArg2, baseArg3, baseArg4, baseArg5, baseArg6, baseArg7, baseArg8 , baseArg9) { this.map = map; }
private void AddRenewAction(T webhdfs) { lock (this) { if (dtRenewer == null) { dtRenewer = DelegationTokenRenewer.GetInstance(); } action = dtRenewer.AddRenewAction(webhdfs); } }
public RMContextImpl(Dispatcher rmDispatcher, ContainerAllocationExpirer containerAllocationExpirer , AMLivelinessMonitor amLivelinessMonitor, AMLivelinessMonitor amFinishingMonitor , DelegationTokenRenewer delegationTokenRenewer, AMRMTokenSecretManager appTokenSecretManager , RMContainerTokenSecretManager containerTokenSecretManager, NMTokenSecretManagerInRM nmTokenSecretManager, ClientToAMTokenSecretManagerInRM clientToAMTokenSecretManager ) : this(rmDispatcher, containerAllocationExpirer, amLivelinessMonitor, amFinishingMonitor , delegationTokenRenewer, appTokenSecretManager, containerTokenSecretManager, nmTokenSecretManager , clientToAMTokenSecretManager, null) { }
public virtual void TestStartupFailure() { Configuration conf = new Configuration(); DelegationTokenRenewer delegationTokenRenewer = new DelegationTokenRenewer(); RMContext mockContext = Org.Mockito.Mockito.Mock <RMContext>(); ClientRMService mockClientRMService = Org.Mockito.Mockito.Mock <ClientRMService>(); Org.Mockito.Mockito.When(mockContext.GetClientRMService()).ThenReturn(mockClientRMService ); delegationTokenRenewer.SetRMContext(mockContext); delegationTokenRenewer.Init(conf); delegationTokenRenewer.Stop(); }
public _RMContextImpl_183(ConcurrentMap <ApplicationId, RMApp> applicationsMaps, ConcurrentMap <string, RMNode> deactivatedNodesMap, ConcurrentMap <NodeId, RMNode> nodesMap, Dispatcher baseArg1, ContainerAllocationExpirer baseArg2, AMLivelinessMonitor baseArg3, AMLivelinessMonitor baseArg4, DelegationTokenRenewer baseArg5, AMRMTokenSecretManager baseArg6, RMContainerTokenSecretManager baseArg7, NMTokenSecretManagerInRM baseArg8, ClientToAMTokenSecretManagerInRM baseArg9 , ResourceScheduler baseArg10) : base(baseArg1, baseArg2, baseArg3, baseArg4, baseArg5, baseArg6, baseArg7, baseArg8 , baseArg9, baseArg10) { this.applicationsMaps = applicationsMaps; this.deactivatedNodesMap = deactivatedNodesMap; this.nodesMap = nodesMap; }
public RMContextImpl(Dispatcher rmDispatcher, ContainerAllocationExpirer containerAllocationExpirer , AMLivelinessMonitor amLivelinessMonitor, AMLivelinessMonitor amFinishingMonitor , DelegationTokenRenewer delegationTokenRenewer, AMRMTokenSecretManager appTokenSecretManager , RMContainerTokenSecretManager containerTokenSecretManager, NMTokenSecretManagerInRM nmTokenSecretManager, ClientToAMTokenSecretManagerInRM clientToAMTokenSecretManager , ResourceScheduler scheduler) : this() { // helper constructor for tests this.SetDispatcher(rmDispatcher); SetActiveServiceContext(new RMActiveServiceContext(rmDispatcher, containerAllocationExpirer , amLivelinessMonitor, amFinishingMonitor, delegationTokenRenewer, appTokenSecretManager , containerTokenSecretManager, nmTokenSecretManager, clientToAMTokenSecretManager , scheduler)); ConfigurationProvider provider = new LocalConfigurationProvider(); SetConfigurationProvider(provider); }
internal virtual void SetDelegationTokenRenewer(DelegationTokenRenewer delegationTokenRenewer ) { activeServiceContext.SetDelegationTokenRenewer(delegationTokenRenewer); }
internal virtual void SetDelegationTokenRenewer(DelegationTokenRenewer delegationTokenRenewer ) { this.delegationTokenRenewer = delegationTokenRenewer; }