Class MsSqlDriverFilePostProcessor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.mssql.MsSqlDriverFilePostProcessor
-
- All Implemented Interfaces:
JdbcDriverDownloader.DriverFilePostProcessor
@Immutable public final class MsSqlDriverFilePostProcessor extends Object implements JdbcDriverDownloader.DriverFilePostProcessor
MS SQL Server-specific JDBC driver file post-processor (unpacks native libraries to
native/windows-i386
ornative/windows-amd64
).- Since:
- 2018.1
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
MSSQL_NATIVE_LIB_FILE_NAME_PATTERN
File name pattern which matches JAR archives containing native libraries.
-
Constructor Summary
Constructors Constructor Description MsSqlDriverFilePostProcessor(Logger logger)
Creates a new MS SQL Server-specific post-processor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
Returnstrue
if this post-processor should run,false
otherwise.void
postProcess(File driverFile)
Post-processes the driver file.String
toString()
-
-
-
Field Detail
-
MSSQL_NATIVE_LIB_FILE_NAME_PATTERN
@NotNull public static final Pattern MSSQL_NATIVE_LIB_FILE_NAME_PATTERN
File name pattern which matches JAR archives containing native libraries.
-
-
Constructor Detail
-
MsSqlDriverFilePostProcessor
public MsSqlDriverFilePostProcessor(@NotNull Logger logger)
Creates a new MS SQL Server-specific post-processor.
- Parameters:
logger
- the logger to be used (normally, eitherLoggers.MAINTENANCE
orLoggers.STARTUP
).
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns
true
if this post-processor should run,false
otherwise.- Specified by:
isEnabled
in interfaceJdbcDriverDownloader.DriverFilePostProcessor
- Returns:
- whether this post-processor should run.
- See Also:
JdbcDriverDownloader.DriverFilePostProcessor.isEnabled()
-
postProcess
public void postProcess(@NotNull File driverFile) throws IOException
Post-processes the driver file.
- Specified by:
postProcess
in interfaceJdbcDriverDownloader.DriverFilePostProcessor
- Parameters:
driverFile
- the file to process.- Throws:
IOException
- if an I/O error occurs.- See Also:
JdbcDriverDownloader.DriverFilePostProcessor.postProcess(File)
-
toString
@NotNull public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-