Class Version
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<Integer,T>
-
- com.aoindustries.aoserv.client.GlobalObjectIntegerKey<Version>
-
- com.aoindustries.aoserv.client.web.tomcat.Version
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable
public final class Version extends GlobalObjectIntegerKey<Version>
AnHttpdTomcatVersionflags whichTechnologyVersions are a version of the Jakarta Tomcat servlet engine. Multiple versions of the Tomcat servlet engine are supported, but only one version may be configured within each Java virtual machine.- Author:
- AO Industries, Inc.
- See Also:
Site,SoftwareVersion
-
-
Field Summary
Fields Modifier and Type Field Description static StringTECHNOLOGY_NAMEstatic StringVERSION_10_0_PREFIXstatic StringVERSION_3_1static StringVERSION_3_2_4static StringVERSION_4_1_PREFIXstatic StringVERSION_5_5_PREFIXstatic StringVERSION_6_0_PREFIXstatic StringVERSION_7_0_PREFIXstatic StringVERSION_8_0_PREFIXstatic StringVERSION_8_5_PREFIXstatic StringVERSION_9_0_PREFIX-
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 Version()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleancanUpgradeFrom(String version)In-place upgrades are supported from Tomcat 4.1 and newer.static booleancanUpgradeTo(String version)In-place upgrades and downgrades are supported to Tomcat 8.5 and newer.protected ObjectgetColumnImpl(int i)PosixPathgetInstallDirectory()Table.TableIDgetTableID()SoftwareVersiongetTechnologyVersion(AOServConnector connector)voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisTomcat10_0_X(AOServConnector connector)booleanisTomcat3_1(AOServConnector connector)booleanisTomcat3_2_4(AOServConnector connector)booleanisTomcat4(AOServConnector connector)Deprecated.Please check all uses of this, because it also returnstruefor Tomcat 5, which doesn't seem to match the method name very well.booleanisTomcat4_1_X(AOServConnector connector)booleanisTomcat5_5_X(AOServConnector connector)booleanisTomcat6_0_X(AOServConnector connector)booleanisTomcat7_0_X(AOServConnector connector)booleanisTomcat8_0_X(AOServConnector connector)booleanisTomcat8_5_X(AOServConnector connector)booleanisTomcat9_0_X(AOServConnector connector)voidread(StreamableInput in, AoservProtocol.Version protocolVersion)booleanrequiresModJK()voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
-
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
-
TECHNOLOGY_NAME
public static final String TECHNOLOGY_NAME
- See Also:
- Constant Field Values
-
VERSION_3_1
public static final String VERSION_3_1
- See Also:
- Constant Field Values
-
VERSION_3_2_4
public static final String VERSION_3_2_4
- See Also:
- Constant Field Values
-
VERSION_4_1_PREFIX
public static final String VERSION_4_1_PREFIX
- See Also:
- Constant Field Values
-
VERSION_5_5_PREFIX
public static final String VERSION_5_5_PREFIX
- See Also:
- Constant Field Values
-
VERSION_6_0_PREFIX
public static final String VERSION_6_0_PREFIX
- See Also:
- Constant Field Values
-
VERSION_7_0_PREFIX
public static final String VERSION_7_0_PREFIX
- See Also:
- Constant Field Values
-
VERSION_8_0_PREFIX
public static final String VERSION_8_0_PREFIX
- See Also:
- Constant Field Values
-
VERSION_8_5_PREFIX
public static final String VERSION_8_5_PREFIX
- See Also:
- Constant Field Values
-
VERSION_9_0_PREFIX
public static final String VERSION_9_0_PREFIX
- See Also:
- Constant Field Values
-
VERSION_10_0_PREFIX
public static final String VERSION_10_0_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
canUpgradeFrom
public static boolean canUpgradeFrom(String version)
In-place upgrades are supported from Tomcat 4.1 and newer. In-place downgrades are supported from Tomcat 8.5 and newer.
-
canUpgradeTo
public static boolean canUpgradeTo(String version)
In-place upgrades and downgrades are supported to Tomcat 8.5 and newer.
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,Version>
-
getInstallDirectory
public PosixPath getInstallDirectory()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,Version>
-
getTechnologyVersion
public SoftwareVersion getTechnologyVersion(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
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,Version>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isTomcat4
@Deprecated public boolean isTomcat4(AOServConnector connector) throws SQLException, IOException
Deprecated.Please check all uses of this, because it also returnstruefor Tomcat 5, which doesn't seem to match the method name very well.
-
isTomcat3_1
public boolean isTomcat3_1(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat3_2_4
public boolean isTomcat3_2_4(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat4_1_X
public boolean isTomcat4_1_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat5_5_X
public boolean isTomcat5_5_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat6_0_X
public boolean isTomcat6_0_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat7_0_X
public boolean isTomcat7_0_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat8_0_X
public boolean isTomcat8_0_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat8_5_X
public boolean isTomcat8_5_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat9_0_X
public boolean isTomcat9_0_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isTomcat10_0_X
public boolean isTomcat10_0_X(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,Version>- Throws:
IOException
-
requiresModJK
public boolean requiresModJK()
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,Version>- Throws:
IOException
-
-