Package fish.payara.nucleus.hazelcast
Class PayaraMicroNameGenerator
- java.lang.Object
-
- fish.payara.nucleus.hazelcast.PayaraMicroNameGenerator
-
public final class PayaraMicroNameGenerator extends Object
Class to generate random names for Payara Micro instances.There are over 14,000 different possible names.
- Author:
- Andrew Pielage
-
-
Constructor Summary
Constructors Constructor Description PayaraMicroNameGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
generateName()
static String
generateUniqueName(List<String> takenNames, UUID uuid)
Generates a unique name.
-
-
-
Method Detail
-
generateName
public static String generateName()
-
generateUniqueName
public static String generateUniqueName(List<String> takenNames, UUID uuid)
Generates a unique name. If all names are already is use, returns the UUID. This method is more computationally expensive then fish.payara.api.admin.config.NameGenerator.generateName()- Parameters:
takenNames
- a list of all names of instances that already existuuid
- The UUID of the instance- Returns:
- a unique name
-
-