Package com.thethriftybot.server
Class ThriftyDiagnostics
java.lang.Object
com.thethriftybot.server.ThriftyDiagnostics
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetDisabled(boolean disable) Sets whether the diagnostic server should be disabled.static voidstatic voidStops the diagnostic server and frees all resources.static voidtest()
-
Field Details
-
VERSION
- See Also:
-
-
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.
-