All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.jclab.javautils.systeminformation.model.OSInformation Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
package kr.jclab.javautils.systeminformation.model;

import java.util.Map;

@lombok.Getter
@lombok.ToString
@lombok.Builder(builderClassName = "Builder")
public class OSInformation {
    /**
     * Windows: windows
     * Linux: debian/redhat
     */
    private final String distFamily;

    /**
     * Linux: /etc/debian_version
     */
    private final String distBaseVersion;

    /**
     * Linux: /etc/os-release > ID
     * Windows: windows
     */
    private final String identity;

    /**
     * Linux: /etc/os-release > PRETTY_NAME
     * Windows: (e.g.) Windows 10 Pro
     */
    private final String productName;

    /**
     * Linux: /etc/os-release > VERSION
     * Windows: (e.g.) 1809
     */
    private final String releaseId;

    /**
     * install date (unix time, milliseconds)
     */
    private final Long installedAt;

    private final Map linuxOsRelease;

    private final Map windowsOsCurrentVersion;

    public static class Builder {
        public String getDistFamily() {
            return distFamily;
        }

        public String getProductName() {
            return productName;
        }

        public String getReleaseId() {
            return releaseId;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy