@ThreadSafe public final class EnvironmentUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getEC2ProductCode()
Gets the EC2 product code if any.
|
static boolean |
isCFT(String userData)
Checks whether the given user data belongs to an instance launched
through CFT.
|
static boolean |
isDocker()
Utility to detect the docker deployment environment.
|
static boolean |
isEC2()
Utility to detect the EC2 deployment environment.
|
static boolean |
isEMR(String userData)
Checks whether the given user data belongs to an instance launched
through EMR.
|
static boolean |
isGoogleComputeEngine()
Utility to detect the Google compute engine deployment environment.
|
static boolean |
isKubernetes()
Utility to detect the k8s deployment environment.
|
public static boolean isDocker()
public static boolean isKubernetes()
public static boolean isEC2()
public static boolean isGoogleComputeEngine()
public static String getEC2ProductCode()
public static boolean isCFT(String userData)
userData
- the ec2 instance user datapublic static boolean isEMR(String userData)
userData
- the ec2 instance user dataCopyright © 2023. All Rights Reserved.