Package fish.payara.util.cluster
Class PayaraServerNameGenerator
- java.lang.Object
-
- fish.payara.util.cluster.PayaraServerNameGenerator
-
public final class PayaraServerNameGenerator extends Object
Class to generate random names for Payara Server instances.There are over 14,000 different possible names.
- Author:
- Andrew Pielage
-
-
Constructor Summary
Constructors Constructor Description PayaraServerNameGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
generateNameNoHyphen()
static String
validateInstanceNameUnique(String instanceName, List<String> namesInUse)
static String
validateInstanceNameUnique(String instanceName, AdminCommandContext context)
-
-
-
Method Detail
-
validateInstanceNameUnique
public static String validateInstanceNameUnique(String instanceName, AdminCommandContext context)
-
validateInstanceNameUnique
public static String validateInstanceNameUnique(String instanceName, List<String> namesInUse)
-
generateNameNoHyphen
public static String generateNameNoHyphen()
-
-