object AppSettings extends Serializable
- Alphabetic
- By Inheritance
- AppSettings
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(): AppSettings
Build default application settings object.
Build default application settings object. Used in cases when application configuration and other initialization parameters are not provided
- returns
Application settings object
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
build(appConfig: String, referenceDate: Option[String], isLocal: Boolean, isShared: Boolean, doMigration: Boolean, prependVariables: String, logLvl: Level): Result[AppSettings]
Build application settings object provided with path to an application configuration HOCON file as well as other required initialization parameters.
Build application settings object provided with path to an application configuration HOCON file as well as other required initialization parameters.
- appConfig
Path to an application-level configuration file (HOCON)
- referenceDate
Reference date string
- isLocal
Boolean flag indicating whether spark application must be run locally.
- isShared
Boolean flag indicating whether spark application running within shared spark context.
- doMigration
Boolean flag indication whether DQ storage database migration needs to be run prior result saving.
- prependVariables
Collected variables that will be prepended to job configuration file (if one will be provided). These variables should already be transformed to a multiline HOCON string.
- logLvl
Application logging level.
- returns
Either application settings object or a list of building errors.
-
def
build(appConfig: AppConfig, referenceDate: Option[String], isLocal: Boolean, isShared: Boolean, doMigration: Boolean, prependVariables: String, logLvl: Level, versionInfo: VersionInfo): Result[AppSettings]
Builds application settings object provided with application-level configuration and other required initialization parameters.
Builds application settings object provided with application-level configuration and other required initialization parameters. The whole purpose of this method is to provide additional validation while initializing the application-level settings:
- catch possible errors when parsing execution and reference datetime;
- catch possible errors when setting up spark configuration.
- appConfig
Application-level configuration
- referenceDate
Reference date string
- isLocal
Boolean flag indicating whether spark application must be run locally.
- isShared
Boolean flag indicating whether spark application running within shared spark context.
- doMigration
Boolean flag indication whether DQ storage database migration needs to be run prior result saving.
- prependVariables
Collected variables that will be prepended to job configuration file (if one will be provided). These variables should already be transformed to a multiline HOCON string.
- logLvl
Application logging level.
- versionInfo
Information about application and configuration API versions.
- returns
Either application settings object or a list of building errors.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()