Class PortUtil


  • public class PortUtil
    extends java.lang.Object
    Alfresco port-related utility functions.
    Author:
    abalmus
    • Constructor Summary

      Constructors 
      Constructor Description
      PortUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkPort​(int port, java.lang.String host)
      Check if specified port is free.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PortUtil

        public PortUtil()
    • Method Detail

      • checkPort

        public static void checkPort​(int port,
                                     java.lang.String host)
                              throws java.io.IOException
        Check if specified port is free.
        Parameters:
        port - Port number to check.
        host - A local address to bind to; if null, "" or "0.0.0.0" then all local addresses will be considered.
        Throws:
        java.io.IOException