private static String generateTempServerName ( ) { String serverName = TEMP_SERVER_NAME ; while ( InstallUtils . serverExists ( serverName ) ) { int randomNumber = random . nextInt ( ) ; while ( randomNumber == Integer . MIN_VALUE ) { randomNumber = random . nextInt ( ) ; } serverName = TEMP_SERVER_NAME + "_" + Integer . toString ( Math . abs ( randomNumber ) ) ; } return serverName ; }
Generates a server name that does not already exist in the Liberty s servers directory .