Package com.aoindustries.aoserv.daemon
Enum OperatingSystemConfiguration
java.lang.Object
java.lang.Enum<OperatingSystemConfiguration>
com.aoindustries.aoserv.daemon.OperatingSystemConfiguration
- All Implemented Interfaces:
Serializable
,Comparable<OperatingSystemConfiguration>
Operating system-specific configurations.
- Author:
- AO Industries, Inc.
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract PackageManager.PackageName
Gets the package that provides the default JDK.abstract PosixPath
Gets the path to the default JDK profile.sh script.abstract HttpdOperatingSystemConfiguration
Gets the configuration for HTTP-related tasks ornull
if this OS version doesn't have any HTTP servers.abstract PackageManager.PackageName
Gets the package that provides JDK 1.7.abstract PosixPath
Gets the path to the JDK 1.7 profile.sh script.abstract String
Gets the expected suffix on RPM release numbers before the move to AORepo.org.abstract PosixPath
Gets the default certificate authority file for OpenSSL.abstract PosixPath
Gets the default certificate chain file for OpenSSL, if any.static OperatingSystemConfiguration
Gets the operating system configuration for this server, as determined by theAoservDaemon.getThisServer()
method.abstract String
Gets the expected suffix on RPM release numbers after the move to AORepo.org.abstract PosixPath
getPostgresPath
(String minorVersion) Gets the path to the PostgreSQL installation directory for the provided minor version (7.3, 8.1, 8.3, ...).abstract PosixPath
Gets the full path to the replace command ornull
if unavailable.static OperatingSystemConfiguration
Returns the enum constant of this type with the specified name.static OperatingSystemConfiguration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CENTOS_5_I686_AND_X86_64
-
CENTOS_5DOM0_I686
-
CENTOS_5DOM0_X86_64
-
CENTOS_7_X86_64
-
CENTOS_7DOM0_X86_64
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOperatingSystemConfiguration
public static OperatingSystemConfiguration getOperatingSystemConfiguration() throws IOException, SQLExceptionGets the operating system configuration for this server, as determined by theAoservDaemon.getThisServer()
method.- Throws:
IOException
SQLException
- See Also:
-
getHttpdOperatingSystemConfiguration
Gets the configuration for HTTP-related tasks ornull
if this OS version doesn't have any HTTP servers. -
getOpensslDefaultCaFile
Gets the default certificate authority file for OpenSSL. -
getOpensslDefaultChainFile
Gets the default certificate chain file for OpenSSL, if any. This file may be not exist even when this returns non-null. -
getReplaceCommand
Gets the full path to the replace command ornull
if unavailable. -
getPostgresPath
Gets the path to the PostgreSQL installation directory for the provided minor version (7.3, 8.1, 8.3, ...).- Returns:
- The full path or
null
if PostgreSQL not supported.
-
getDefaultJdkProfileSh
Gets the path to the default JDK profile.sh script. -
getDefaultJdkPackageName
Gets the package that provides the default JDK. -
getJdk17ProfileSh
Gets the path to the JDK 1.7 profile.sh script. -
getJdk17PackageName
Gets the package that provides JDK 1.7. -
getPackageReleaseSuffix
Gets the expected suffix on RPM release numbers after the move to AORepo.org. -
getOldPackageReleaseSuffix
Gets the expected suffix on RPM release numbers before the move to AORepo.org.
-