Class OperatingSystemVersion
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<Integer,T>
-
- com.aoindustries.aoserv.client.GlobalObjectIntegerKey<OperatingSystemVersion>
-
- com.aoindustries.aoserv.client.distribution.OperatingSystemVersion
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable
public final class OperatingSystemVersion extends GlobalObjectIntegerKey<OperatingSystemVersion>
One version of a operating system.- Author:
- AO Industries, Inc.
- See Also:
OperatingSystem
-
-
Field Summary
Fields Modifier and Type Field Description static intCENTOS_5_DOM0_I686static intCENTOS_5_DOM0_X86_64static intCENTOS_5_I686_AND_X86_64static intCENTOS_7_DOM0_X86_64static intCENTOS_7_X86_64static StringDEFAULT_OPERATING_SYSTEM_VERSIONDeprecated.What is this used for?static StringVERSION_2006_0static StringVERSION_5static StringVERSION_5_DOM0static StringVERSION_7static StringVERSION_7_DOM0static StringVERSION_ES_4-
Fields inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description OperatingSystemVersion()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchitecturegetArchitecture(AOServConnector connector)StringgetArchitecture_name()protected ObjectgetColumnImpl(int i)StringgetDisplay()PosixPathgetEmailListPath(String name)PosixPathgetHttpdSharedTomcatsDirectory()Gets the directory that contains the shared tomcat directories ornullif this OS doesn't support shared tomcats.static PosixPathgetHttpdSharedTomcatsDirectory(int osv)Gets the directory that contains the shared tomcat directories ornullif this OS doesn't support shared tomcats.PosixPathgetHttpdSiteLogsDirectory()Gets the directory that contains the per-virtual-host HTTP logs ornullif this OS doesn't support web sites.static PosixPathgetHttpdSiteLogsDirectory(int osv)Gets the directory that contains the per-virtual-host HTTP logs ornullif this OS doesn't support web sites.PosixPathgetHttpdSitesDirectory()Gets the directory that stores websites for this operating system ornullif this OS doesn't support web sites.static PosixPathgetHttpdSitesDirectory(int osv)Gets the directory that stores websites for this operating system ornullif this OS doesn't support web sites.OperatingSystemgetOperatingSystem(AOServConnector conn)shortgetSortOrder()Table.TableIDgetTableID()StringgetVersionName()StringgetVersionNumber()voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisAOServDaemonSupported()booleanisValidEmailListRegularPath(PosixPath path)voidread(StreamableInput in, AoservProtocol.Version protocolVersion)StringtoStringImpl()AOServObject.toString()implementation that is allowed to throw exceptions.voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
equals, getKey, getPkey, hashCode
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
-
-
-
Field Detail
-
VERSION_5
public static final String VERSION_5
- See Also:
- Constant Field Values
-
VERSION_5_DOM0
public static final String VERSION_5_DOM0
- See Also:
- Constant Field Values
-
VERSION_7
public static final String VERSION_7
- See Also:
- Constant Field Values
-
VERSION_7_DOM0
public static final String VERSION_7_DOM0
- See Also:
- Constant Field Values
-
VERSION_2006_0
public static final String VERSION_2006_0
- See Also:
- Constant Field Values
-
VERSION_ES_4
public static final String VERSION_ES_4
- See Also:
- Constant Field Values
-
DEFAULT_OPERATING_SYSTEM_VERSION
@Deprecated public static final String DEFAULT_OPERATING_SYSTEM_VERSION
Deprecated.What is this used for?
-
CENTOS_5_DOM0_X86_64
public static final int CENTOS_5_DOM0_X86_64
- See Also:
- Constant Field Values
-
CENTOS_5_DOM0_I686
public static final int CENTOS_5_DOM0_I686
- See Also:
- Constant Field Values
-
CENTOS_5_I686_AND_X86_64
public static final int CENTOS_5_I686_AND_X86_64
- See Also:
- Constant Field Values
-
CENTOS_7_DOM0_X86_64
public static final int CENTOS_7_DOM0_X86_64
- See Also:
- Constant Field Values
-
CENTOS_7_X86_64
public static final int CENTOS_7_X86_64
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,OperatingSystemVersion>
-
getOperatingSystem
public OperatingSystem getOperatingSystem(AOServConnector conn) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getVersionNumber
public String getVersionNumber()
-
getVersionName
public String getVersionName()
-
getArchitecture_name
public String getArchitecture_name()
-
getArchitecture
public Architecture getArchitecture(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getDisplay
public String getDisplay()
-
isAOServDaemonSupported
public boolean isAOServDaemonSupported()
-
getSortOrder
public short getSortOrder()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,OperatingSystemVersion>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,OperatingSystemVersion>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,OperatingSystemVersion>- Throws:
IOException
-
toStringImpl
public String toStringImpl()
Description copied from class:AOServObjectAOServObject.toString()implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAOServObject.toString()on the key (fromAOServObject.getKey()). When the key isnull, uses the default implementation fromObject.toString().- Overrides:
toStringImplin classGlobalObjectIntegerKey<OperatingSystemVersion>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,OperatingSystemVersion>- Throws:
IOException
-
getHttpdSitesDirectory
public PosixPath getHttpdSitesDirectory()
Gets the directory that stores websites for this operating system ornullif this OS doesn't support web sites.
-
getHttpdSitesDirectory
public static PosixPath getHttpdSitesDirectory(int osv)
Gets the directory that stores websites for this operating system ornullif this OS doesn't support web sites.
-
getHttpdSharedTomcatsDirectory
public PosixPath getHttpdSharedTomcatsDirectory()
Gets the directory that contains the shared tomcat directories ornullif this OS doesn't support shared tomcats.
-
getHttpdSharedTomcatsDirectory
public static PosixPath getHttpdSharedTomcatsDirectory(int osv)
Gets the directory that contains the shared tomcat directories ornullif this OS doesn't support shared tomcats.
-
getHttpdSiteLogsDirectory
public PosixPath getHttpdSiteLogsDirectory()
Gets the directory that contains the per-virtual-host HTTP logs ornullif this OS doesn't support web sites.
-
getHttpdSiteLogsDirectory
public static PosixPath getHttpdSiteLogsDirectory(int osv)
Gets the directory that contains the per-virtual-host HTTP logs ornullif this OS doesn't support web sites.
-
getEmailListPath
public PosixPath getEmailListPath(String name) throws ValidationException
- Throws:
ValidationException- See Also:
List.getListPath(java.lang.String, int)
-
isValidEmailListRegularPath
public boolean isValidEmailListRegularPath(PosixPath path)
-
-