Package com.atlassian.bamboo.health
Interface MySQLChecks
-
- All Known Implementing Classes:
MySQLChecksImpl
@Internal public interface MySQLChecks
MySQL-specific validations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getInnoDBLogFileSize()
long
getMaxAllowedPacketSize()
long
getRecommendedInnoDBLogFileSize()
long
getRecommendedMaxPacketsSize()
boolean
isCharacterSetCheckPass()
boolean
isCollationCheckPass()
boolean
isInnoDBLogFileSizeCheckPass()
boolean
isMaxAllowedPacketSizeCheckPass()
-
-
-
Method Detail
-
isMaxAllowedPacketSizeCheckPass
boolean isMaxAllowedPacketSizeCheckPass() throws IllegalStateException
- Returns:
- true if DB "max_allowed_packet" size is greater or equals
getRecommendedMaxPacketsSize()
- Throws:
IllegalStateException
- if can't connect to DB
-
getMaxAllowedPacketSize
long getMaxAllowedPacketSize() throws IllegalStateException
- Returns:
- max allowed packet size from DB settings
- Throws:
IllegalStateException
- if can't connect to DB
-
getRecommendedMaxPacketsSize
long getRecommendedMaxPacketsSize()
-
isCharacterSetCheckPass
boolean isCharacterSetCheckPass() throws IllegalStateException
- Returns:
- true if DB's character set is recommended "utf8mb4" or "utf8"
- Throws:
IllegalStateException
- if can't connect to DB
-
isCollationCheckPass
boolean isCollationCheckPass() throws IllegalStateException
- Returns:
- true if DB's collation is recommented "utf8mb4_bin" or "utf8_bin"
- Throws:
IllegalStateException
- if can't connect to DB
-
isInnoDBLogFileSizeCheckPass
boolean isInnoDBLogFileSizeCheckPass() throws IllegalStateException
- Returns:
- true if log file size is greater or equals
getRecommendedInnoDBLogFileSize()
- Throws:
IllegalStateException
- if can't connect to DB
-
getInnoDBLogFileSize
long getInnoDBLogFileSize() throws IllegalStateException
- Returns:
- actual DB log file size
- Throws:
IllegalStateException
- if can't connect to DB
-
getRecommendedInnoDBLogFileSize
long getRecommendedInnoDBLogFileSize()
-
-