Class NatsUtils


  • public class NatsUtils
    extends Object
    • Method Detail

      • getSystem

        public static String getSystem()
      • download

        public static Path download​(URL source,
                                    Path target)
      • waitForPort

        public static boolean waitForPort​(int port,
                                          long timeoutMs,
                                          boolean isFree)
      • isPortAvailable

        public static boolean isPortAvailable​(int port)
      • getNextFreePort

        public static int getNextFreePort​(int startPort)
      • isPortInUse

        public static boolean isPortInUse​(int portNumber)
      • isEmpty

        public static boolean isEmpty​(String string)
      • removeQuotes

        public static String removeQuotes​(String string)