Package io.grpc.alts

Class InternalCheckGcpEnvironment

java.lang.Object
io.grpc.alts.InternalCheckGcpEnvironment

@Internal public final class InternalCheckGcpEnvironment extends Object
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 Details

  • Constructor Details

    • InternalCheckGcpEnvironment

      private InternalCheckGcpEnvironment()
  • Method Details

    • isOnGcp

      public static boolean isOnGcp()
      Returns true if currently running on Google Cloud Platform (GCP).
    • checkProductNameOnLinux

      static boolean checkProductNameOnLinux(BufferedReader reader) throws IOException
      Throws:
      IOException
    • checkBiosDataOnWindows

      static boolean checkBiosDataOnWindows(BufferedReader reader) throws IOException
      Throws:
      IOException
    • isRunningOnGcp

      private static boolean isRunningOnGcp()