Class DrillRoot.DrillbitInfo

java.lang.Object
org.apache.drill.exec.server.rest.DrillRoot.DrillbitInfo
All Implemented Interfaces:
Comparable<DrillRoot.DrillbitInfo>
Enclosing class:
DrillRoot

public static class DrillRoot.DrillbitInfo extends Object implements Comparable<DrillRoot.DrillbitInfo>
  • Constructor Details

  • Method Details

    • getAddress

      public String getAddress()
    • getHttpPort

      public String getHttpPort()
    • getUserPort

      public String getUserPort()
    • getControlPort

      public String getControlPort()
    • getDataPort

      public String getDataPort()
    • getVersion

      public String getVersion()
    • isCurrent

      public boolean isCurrent()
    • isVersionMatch

      public boolean isVersionMatch()
    • getState

      public String getState()
    • compareTo

      public int compareTo(DrillRoot.DrillbitInfo drillbitToCompare)
      Method used to sort Drillbits. Current Drillbit goes first. Then Drillbits with matching versions, after them Drillbits with mismatching versions. Matching Drillbits are sorted according address natural order, mismatching Drillbits are sorted according version, address natural order.
      Specified by:
      compareTo in interface Comparable<DrillRoot.DrillbitInfo>
      Parameters:
      drillbitToCompare - Drillbit to compare against
      Returns:
      -1 if Drillbit should be before, 1 if after in list