Tabnine Logo
CapacityReservationSystem.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.yarn.server.resourcemanager.reservation.CapacityReservationSystem
constructor

Best Java code snippets using org.apache.hadoop.yarn.server.resourcemanager.reservation.CapacityReservationSystem.<init> (Showing top 3 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

public AbstractReservationSystem configureReservationSystem() {
 switch (getSchedulerType()) {
 case CAPACITY:
  return new CapacityReservationSystem();
 case FAIR:
  return new FairReservationSystem();
 }
 return null;
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

@Test
public void testInitialize() {
 ReservationSystemTestUtil testUtil = new ReservationSystemTestUtil();
 CapacityScheduler capScheduler = null;
 try {
  capScheduler = testUtil.mockCapacityScheduler(10);
 } catch (IOException e) {
  Assert.fail(e.getMessage());
 }
 CapacityReservationSystem reservationSystem =
   new CapacityReservationSystem();
 reservationSystem.setRMContext(capScheduler.getRMContext());
 try {
  reservationSystem.reinitialize(capScheduler.getConf(),
    capScheduler.getRMContext());
 } catch (YarnException e) {
  Assert.fail(e.getMessage());
 }
 String planQName = testUtil.getreservationQueueName();
 ReservationSystemTestUtil.validateReservationQueue(reservationSystem,
   planQName);
}
origin: ch.cern.hadoop/hadoop-yarn-server-resourcemanager

  new CapacityReservationSystem();
CapacitySchedulerConfiguration conf = capScheduler.getConfiguration();
RMContext mockContext = capScheduler.getRMContext();
org.apache.hadoop.yarn.server.resourcemanager.reservationCapacityReservationSystem<init>

Popular methods of CapacityReservationSystem

  • getMinAllocation
  • getResourceCalculator
  • getPlan
  • reinitialize
  • setRMContext

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JPanel (javax.swing)
  • 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