Interface RunLevelAgent


@NonExtendable public interface RunLevelAgent
Agent providing information about the current FirstSpirit server RunLevel.
Since:
5.2.181205
  • Field Details

  • Method Details

    • getRunLevel

      @NotNull @NotNull RunLevel getRunLevel()
      Returns the current RunLevel of the FirstSpirit server.
      Since:
      5.2.181205
    • waitForRunLevel

      @NotNull @NotNull RunLevel waitForRunLevel(@NotNull @NotNull RunLevel runLevel, @NotNull @NotNull Duration maxWaitDuration) throws TimeoutException
      Wait until the FirstSpirit server reaches a RunLevel or a timeout occurs.
      Parameters:
      runLevel - The minimum RunLevel to wait for.
      maxWaitDuration - The maximum Duration to wait for the RunLevel.
      Returns:
      The reached RunLevel which is at least the wanted RunLevel and may be a higher RunLevel.
      Throws:
      TimeoutException - Thrown if the RunLevel was not reached within the maximum waiting time.
      Since:
      5.2.181205