List of usage examples for com.google.common.base StandardSystemProperty JAVA_VENDOR
StandardSystemProperty JAVA_VENDOR
To view the source code for com.google.common.base StandardSystemProperty JAVA_VENDOR.
Click Source Link
From source file:com.facebook.presto.server.PrestoJvmRequirements.java
public static void verifyJvmRequirements() { String specVersion = StandardSystemProperty.JAVA_SPECIFICATION_VERSION.value(); if ((specVersion == null) || (specVersion.compareTo("1.8") < 0)) { failRequirement("Presto requires Java 1.8+ (found %s)", specVersion); }/*from ww w . j a va 2s . c o m*/ String vendor = StandardSystemProperty.JAVA_VENDOR.value(); if (!"Oracle Corporation".equals(vendor)) { failRequirement("Presto requires an Oracle or OpenJDK JVM (found %s)", vendor); } String dataModel = System.getProperty("sun.arch.data.model"); if (!"64".equals(dataModel)) { failRequirement("Presto requires a 64-bit JVM (found %s)", dataModel); } String osName = StandardSystemProperty.OS_NAME.value(); String osArch = StandardSystemProperty.OS_ARCH.value(); if ("Linux".equals(osName)) { if (!"amd64".equals(osArch)) { failRequirement("Presto requires x86-64 or amd64 on Linux (found %s)", osArch); } } else if ("Mac OS X".equals(osName)) { if (!"x86_64".equals(osArch)) { failRequirement("Presto requires x86_64 on Mac OS X (found %s)", osArch); } } else { failRequirement("Presto requires Linux or Mac OS X (found %s)", osName); } if (!ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN)) { failRequirement("Presto requires a little endian platform (found %s)", ByteOrder.nativeOrder()); } verifySlice(); }
From source file:org.killbill.billing.server.updatechecker.ClientInfo.java
public String getJavaVendor() { return getProperty(StandardSystemProperty.JAVA_VENDOR); }
From source file:net.shibboleth.idp.log.LogbackLoggingService.java
/** * Log the IdP version and Java version and vendor at INFO level. * //from w w w .j a va 2s.c om * Log system properties defined by {@link StandardSystemProperty} at DEBUG level. */ protected void logImplementationDetails() { final Logger logger = LoggerFactory.getLogger(LogbackLoggingService.class); logger.info("Shibboleth IdP Version {}", Version.getVersion()); logger.info("Java version='{}' vendor='{}'", StandardSystemProperty.JAVA_VERSION.value(), StandardSystemProperty.JAVA_VENDOR.value()); if (logger.isDebugEnabled()) { for (StandardSystemProperty standardSystemProperty : StandardSystemProperty.values()) { logger.debug("{}", standardSystemProperty); } } }