Package io.grpc.alts
Class InternalCheckGcpEnvironment
java.lang.Object
io.grpc.alts.InternalCheckGcpEnvironment
Class for checking if the system is running on Google Cloud Platform (GCP). This is intended for
usage internal to the gRPC team. If you *really* think you need to use this, contact the gRPC
team first.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleancheckBiosDataOnWindows(BufferedReader reader) (package private) static booleanstatic booleanisOnGcp()Returnstrueif currently running on Google Cloud Platform (GCP).private static boolean
-
Field Details
-
logger
-
WINDOWS_COMMAND
- See Also:
-
cachedResult
-
-
Constructor Details
-
InternalCheckGcpEnvironment
private InternalCheckGcpEnvironment()
-
-
Method Details
-
isOnGcp
public static boolean isOnGcp()Returnstrueif currently running on Google Cloud Platform (GCP). -
checkProductNameOnLinux
- Throws:
IOException
-
checkBiosDataOnWindows
- Throws:
IOException
-
isRunningOnGcp
private static boolean isRunningOnGcp()
-