Class ServerConfigShutdown


  • public class ServerConfigShutdown
    extends Object
    Defines the port and command for the server shutdown.
    • Constructor Detail

      • ServerConfigShutdown

        public ServerConfigShutdown()
    • Method Detail

      • getCommand

        @Nullable
        public @Nullable String getCommand()
        The command, that shall be listened for.
        Returns:
        command
      • setCommand

        public void setCommand​(String command)
      • getPort

        @Nullable
        public @Nullable Integer getPort()
        The port, that shall listen for shutdown commands.
        Returns:
        port
      • setPort

        public void setPort​(Integer port)
      • getRestart

        @Nullable
        public @Nullable Boolean getRestart()
        When set to true, the server will restart upon the shutdown's completion. Otherwise, the server will be stopped after the command.
        Returns:
        restart
      • setRestart

        public void setRestart​(Boolean restart)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object