Class Injection

java.lang.Object
org.apache.drill.exec.testing.Injection
Direct Known Subclasses:
CountDownLatchInjectionImpl, ExceptionInjection, PauseInjection

public abstract class Injection extends Object
The base class for all types of injections (currently, pause and exception).
  • Field Details

    • address

      protected final String address
    • port

      protected final int port
    • siteClass

      protected final Class<?> siteClass
    • desc

      protected final String desc
  • Constructor Details

  • Method Details

    • injectNow

      protected boolean injectNow()
      This function checks if it is the right time for the injection to happen.
      Returns:
      if the injection should be injected now
    • getDesc

      public String getDesc()
    • getSiteClass

      public Class<?> getSiteClass()
    • isValidForBit

      public final boolean isValidForBit(CoordinationProtos.DrillbitEndpoint endpoint)
    • getMsPause

      public long getMsPause()
    • toString

      public String toString()
      Overrides:
      toString in class Object