Package org.apache.wayang.jdbc.platform
Class JdbcPlatformTemplate
java.lang.Object
org.apache.wayang.core.platform.Platform
org.apache.wayang.jdbc.platform.JdbcPlatformTemplate
- Direct Known Subclasses:
GenericJdbcPlatform,PostgresPlatform,Sqlite3Platform
Platform implementation for a JDBC-accessible database.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal Stringfinal Stringfinal Stringfinal StringFields inherited from class org.apache.wayang.core.platform.Platform
jsonSerializer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJdbcPlatformTemplate(String platformName, String configName) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureDefaults(Configuration configuration) Configure default settings for this instance, e.g., to be able to createLoadProfileToTimeConverters.createDatabaseDescriptor(Configuration configuration) Creates a newDatabaseDescriptorfor this instance and the givenConfiguration.createLoadProfileToTimeConverter(Configuration configuration) createTimeToCostConverter(Configuration configuration) Creates aTimeToCostConverterfor this instance.protected abstract StringProvide the name of the JDBC driverClassfor this instance.Provide a unique identifier for this kind of platform.Retrieve aSqlQueryChannel.Descriptorfor this instance.Methods inherited from class org.apache.wayang.core.platform.Platform
createExecutor, getConfigurationName, getInitializeMillis, getName, isSinglePlatformExecutionPossible, load, toString, warmUp
-
Field Details
-
cpuMhzProperty
-
coresProperty
-
jdbcUrlProperty
-
jdbcUserProperty
-
jdbcPasswordProperty
-
-
Constructor Details
-
JdbcPlatformTemplate
-
-
Method Details
-
getConnection
-
configureDefaults
Description copied from class:PlatformConfigure default settings for this instance, e.g., to be able to createLoadProfileToTimeConverters.- Specified by:
configureDefaultsin classPlatform- Parameters:
configuration- that should be configured
-
getExecutorFactory
- Specified by:
getExecutorFactoryin classPlatform
-
createLoadProfileToTimeConverter
- Specified by:
createLoadProfileToTimeConverterin classPlatform- Returns:
- a default
LoadProfileToTimeConverter
-
createTimeToCostConverter
Description copied from class:PlatformCreates aTimeToCostConverterfor this instance.- Specified by:
createTimeToCostConverterin classPlatform- Parameters:
configuration- configures theTimeToCostConverter- Returns:
- the
TimeToCostConverter
-
getPlatformId
Provide a unique identifier for this kind of platform. Should consist of alphanumerical characters only.- Returns:
- the platform ID
-
getJdbcDriverClassName
Provide the name of the JDBC driverClassfor this instance.- Returns:
- the driver
Classname
-
getSqlQueryChannelDescriptor
Retrieve aSqlQueryChannel.Descriptorfor this instance.- Returns:
- the
SqlQueryChannel.Descriptor
-
createDatabaseDescriptor
Creates a newDatabaseDescriptorfor this instance and the givenConfiguration.- Parameters:
configuration- provides configuration information for the result- Returns:
- the
DatabaseDescriptor
-