Class LanServerPingThread

  • All Implemented Interfaces:
    java.lang.Runnable

    public class LanServerPingThread
    extends java.lang.Thread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isRunning  
      private static org.apache.logging.log4j.Logger LOGGER  
      private java.lang.String motd  
      private java.lang.String serverAddress  
      private java.net.DatagramSocket socket  
      private static java.util.concurrent.atomic.AtomicInteger UNIQUE_THREAD_ID  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      LanServerPingThread​(java.lang.String p_i1321_1_, java.lang.String p_i1321_2_)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createPingString​(java.lang.String p_77525_0_, java.lang.String p_77525_1_)  
      void interrupt()  
      static java.lang.String parseAddress​(java.lang.String p_77523_0_)  
      static java.lang.String parseMotd​(java.lang.String p_77524_0_)  
      void run()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • UNIQUE_THREAD_ID

        private static final java.util.concurrent.atomic.AtomicInteger UNIQUE_THREAD_ID
      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • motd

        private final java.lang.String motd
      • socket

        private final java.net.DatagramSocket socket
      • isRunning

        private boolean isRunning
      • serverAddress

        private final java.lang.String serverAddress
    • Constructor Detail

      • LanServerPingThread

        public LanServerPingThread​(java.lang.String p_i1321_1_,
                                   java.lang.String p_i1321_2_)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • interrupt

        public void interrupt()
        Overrides:
        interrupt in class java.lang.Thread
      • createPingString

        public static java.lang.String createPingString​(java.lang.String p_77525_0_,
                                                        java.lang.String p_77525_1_)
      • parseMotd

        public static java.lang.String parseMotd​(java.lang.String p_77524_0_)
      • parseAddress

        public static java.lang.String parseAddress​(java.lang.String p_77523_0_)