Tabnine Logo
ResourceManager$RMActiveServices.addService
Code IndexAdd Tabnine to your IDE (free)

How to use
addService
method
in
org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.addService (Showing top 6 results out of 315)

origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

 protected void createPolicyMonitors() {
  if (scheduler instanceof PreemptableResourceScheduler
    && conf.getBoolean(YarnConfiguration.RM_SCHEDULER_ENABLE_MONITORS,
    YarnConfiguration.DEFAULT_RM_SCHEDULER_ENABLE_MONITORS)) {
   LOG.info("Loading policy monitors");
   List<SchedulingEditPolicy> policies = conf.getInstances(
     YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES,
     SchedulingEditPolicy.class);
   if (policies.size() > 0) {
    for (SchedulingEditPolicy policy : policies) {
     LOG.info("LOADING SchedulingEditPolicy:" + policy.getPolicyName());
     // periodically check whether we need to take action to guarantee
     // constraints
     SchedulingMonitor mon = new SchedulingMonitor(rmContext, policy);
     addService(mon);
    }
   } else {
    LOG.warn("Policy monitors configured (" +
      YarnConfiguration.RM_SCHEDULER_ENABLE_MONITORS +
      ") but none specified (" +
      YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES + ")");
   }
  }
 }
}
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

 protected void createPolicyMonitors() {
  if (scheduler instanceof PreemptableResourceScheduler
    && conf.getBoolean(YarnConfiguration.RM_SCHEDULER_ENABLE_MONITORS,
    YarnConfiguration.DEFAULT_RM_SCHEDULER_ENABLE_MONITORS)) {
   LOG.info("Loading policy monitors");
   List<SchedulingEditPolicy> policies = conf.getInstances(
     YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES,
     SchedulingEditPolicy.class);
   if (policies.size() > 0) {
    for (SchedulingEditPolicy policy : policies) {
     LOG.info("LOADING SchedulingEditPolicy:" + policy.getPolicyName());
     // periodically check whether we need to take action to guarantee
     // constraints
     SchedulingMonitor mon = new SchedulingMonitor(rmContext, policy);
     addService(mon);
    }
   } else {
    LOG.warn("Policy monitors configured (" +
      YarnConfiguration.RM_SCHEDULER_ENABLE_MONITORS +
      ") but none specified (" +
      YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES + ")");
   }
  }
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

private void createAndRegisterOpportunisticDispatcher(
  ApplicationMasterService service) {
 if (!isOpportunisticSchedulingEnabled(conf)) {
  return;
 }
 EventDispatcher oppContainerAllocEventDispatcher = new EventDispatcher(
   (OpportunisticContainerAllocatorAMService) service,
   OpportunisticContainerAllocatorAMService.class.getName());
 // Add an event dispatcher for the
 // OpportunisticContainerAllocatorAMService to handle node
 // additions, updates and removals. Since the SchedulerEvent is currently
 // a super set of theses, we register interest for it.
 addService(oppContainerAllocEventDispatcher);
 rmDispatcher
   .register(SchedulerEventType.class, oppContainerAllocEventDispatcher);
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

addService(rmSecretManagerService);
addService(containerAllocationExpirer);
rmContext.setContainerAllocationExpirer(containerAllocationExpirer);
addService(amLivelinessMonitor);
rmContext.setAMLivelinessMonitor(amLivelinessMonitor);
addService(amFinishingMonitor);
rmContext.setAMFinishingMonitor(amFinishingMonitor);
addService(rmAppLifetimeMonitor);
rmContext.setRMAppLifetimeMonitor(rmAppLifetimeMonitor);
addService(nlm);
rmContext.setNodeLabelManager(nlm);
addService(nam);
rmContext.setNodeAttributesManager(nam);
addService(placementConstraintManager);
rmContext.setPlacementConstraintManager(placementConstraintManager);
  createMultiNodeSortingManager();
multiNodeSortingManager.setRMContext(rmContext);
addService(multiNodeSortingManager);
rmContext.setMultiNodeSortingManager(multiNodeSortingManager);
  createRMDelegatedNodeLabelsUpdater();
origin: com.github.jiayuhan-it/hadoop-yarn-server-resourcemanager

addService(rmSecretManagerService);
addService(containerAllocationExpirer);
rmContext.setContainerAllocationExpirer(containerAllocationExpirer);
addService(amLivelinessMonitor);
rmContext.setAMLivelinessMonitor(amLivelinessMonitor);
addService(amFinishingMonitor);
rmContext.setAMFinishingMonitor(amFinishingMonitor);
addService(nlm);
rmContext.setNodeLabelManager(nlm);
addService(nodesListManager);
rmContext.setNodesListManager(nodesListManager);
addService(nmLivelinessMonitor);
addService(resourceTracker);
rmContext.setResourceTrackerService(resourceTracker);
addService(masterService) ;
rmContext.setApplicationMasterService(masterService);
addService(clientRM);
rmContext.setClientRMService(clientRM);
addService(applicationMasterLauncher);
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

addService(rmSecretManagerService);
addService(containerAllocationExpirer);
rmContext.setContainerAllocationExpirer(containerAllocationExpirer);
addService(amLivelinessMonitor);
rmContext.setAMLivelinessMonitor(amLivelinessMonitor);
addService(amFinishingMonitor);
rmContext.setAMFinishingMonitor(amFinishingMonitor);
addService(nlm);
rmContext.setNodeLabelManager(nlm);
addService(nodesListManager);
rmContext.setNodesListManager(nodesListManager);
addService(nmLivelinessMonitor);
addService(resourceTracker);
rmContext.setResourceTrackerService(resourceTracker);
addService(masterService) ;
rmContext.setApplicationMasterService(masterService);
addService(clientRM);
rmContext.setClientRMService(clientRM);
addService(applicationMasterLauncher);
org.apache.hadoop.yarn.server.resourcemanagerResourceManager$RMActiveServicesaddService

Popular methods of ResourceManager$RMActiveServices

  • <init>
  • addIfService
  • init
  • isInState
  • start
  • stop
  • createPolicyMonitors
  • getServices
  • createAndRegisterOpportunisticDispatcher

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • findViewById (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now