private static int getProperty ( String prefix , String name , int defaultValue ) { int result = defaultValue ; try { result = Integer . parseInt ( System . getProperty ( prefix + name ) ) ; } catch ( NumberFormatException e ) { LOG . warn ( "Value for " + prefix + name + " must be an integer. Using default " + defaultValue ) ; } return result ; }
Get an integer from System properties