Class ExampleUtil


  • public class ExampleUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ExampleUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getPort​(java.lang.String[] args, java.lang.String propertyName, int defValue)
      Get a port, possibly configured from Command line or System property.
      • Methods inherited from class java.lang.Object

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

      • ExampleUtil

        public ExampleUtil()
    • Method Detail

      • getPort

        public static int getPort​(java.lang.String[] args,
                                  java.lang.String propertyName,
                                  int defValue)
        Get a port, possibly configured from Command line or System property.
        Parameters:
        args - the command line arguments
        propertyName - the property name
        defValue - the default value
        Returns:
        the configured port