/** * Returns the major number of the version. * * @return The major number of the version. */ public int getMajor() { return getIntProperty(VERSION_MAJOR); }
/** * Do not allow direct public construction. */ private Version() { props = loadProperties(); }
/** * Get the single <tt>Version</tt> instance. * * @return The single <tt>Version</tt> instance. */ public static Version getInstance() { if (instance == null) { instance = new Version(); } return instance; }
@ManagementProperty(description="The server build number") public String getBuildNumber() { return version.getBuildNumber(); }
@ManagementProperty(description="The server build OS") public String getBuildOS() { return version.getBuildOS(); }
@ManagementProperty(description="The server version string") public String getVersion() { return version.toString(); }
@ManagementProperty(description="The server version number string") public String getVersionNumber() { return version.getVersionNumber(); }
@ManagementProperty(description="The server version name") public String getVersionName() { return version.getName(); }
@ManagementProperty(description="The server build ID") public String getBuildID() { return version.getBuildID(); }
@ManagementProperty(description="The server build JVM") public String getBuildJVM() { return version.getBuildJVM(); }
@ManagementProperty(description="The server build number") public String getBuildNumber() { return version.getBuildNumber(); }
@ManagementProperty(description="The server build OS") public String getBuildOS() { return version.getBuildOS(); }
@ManagementProperty(description="The server version string") public String getVersion() { return version.toString(); }
/** * Returns the minor number of the version. * * @return The minor number of the version. */ public int getMinor() { return getIntProperty(VERSION_MINOR); }
/** * Do not allow direct public construction. */ private Version() { props = loadProperties(); }
/** * Get the single <tt>Version</tt> instance. * * @return The single <tt>Version</tt> instance. */ public static Version getInstance() { if (instance == null) { instance = new Version(); } return instance; }
/** * Returns the major number of the version. * * @return The major number of the version. */ public int getMajor() { return getIntProperty(VERSION_MAJOR); }
/** * Returns the minor number of the version. * * @return The minor number of the version. */ public int getMinor() { return getIntProperty(VERSION_MINOR); }
/** * Returns the revision number of the version. * * @return The revision number of the version. */ public int getRevision() { return getIntProperty(VERSION_REVISION); }
/** * Returns the revision number of the version. * * @return The revision number of the version. */ public int getRevision() { return getIntProperty(VERSION_REVISION); }