java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours
Direct Known Subclasses:
OffPeakHours.OffPeakHoursImpl

@Private public abstract class OffPeakHours extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getInstance

      public static OffPeakHours getInstance(org.apache.hadoop.conf.Configuration conf)
    • getInstance

      public static OffPeakHours getInstance(int startHour, int endHour)
      Parameters:
      startHour - inclusive
      endHour - exclusive
    • isValidHour

      private static boolean isValidHour(int hour)
    • isOffPeakHour

      public abstract boolean isOffPeakHour(int targetHour)
      Returns whether targetHour is off-peak hour
    • isOffPeakHour

      public abstract boolean isOffPeakHour()
      Returns whether it is off-peak hour