Class ThriftyDiagnostics

java.lang.Object
com.thethriftybot.server.ThriftyDiagnostics

public class ThriftyDiagnostics extends Object
  • Field Details

  • Constructor Details

    • ThriftyDiagnostics

      public ThriftyDiagnostics()
  • Method Details

    • setDisabled

      public static void setDisabled(boolean disable)
      Sets whether the diagnostic server should be disabled. If set to true, the server will not start. If the server is currently running, it will be stopped.
      Parameters:
      disable - true to disable the server, false to allow it.
    • startServer

      public static void startServer()
    • test

      public static void test()
    • stopServer

      public static void stopServer()
      Stops the diagnostic server and frees all resources. Call this to completely disable the server.