trait ConfigChecker extends AnyRef
Created by edmundlam on 8/18/17.
This module contains traits which implement basic checking routines targeted at config files and input and output store types. These checking routines are expected to be ran before initialization of the sub-components of the pipes, to weed out malformed configs and store type incompatibility (between input/output DataStores and Computations/Platforms). The generic checks essentially imposes no constraints, hence does nothing. Override the appropriate checking routines to implement specific constraints on config, input and output data stores.
A note on 'type compatibility' check: the design choice of making this a 'dynamic' check was not taken lightly. While I love to attempt to make this statically typed (e.g., by annotating Computation class with DataStore types) but it would introduce too many type parameter clutter to the Computation/Platform classes. I thought that this (below) would be a fair compromise.
- Alphabetic
- By Inheritance
- ConfigChecker
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ConfigChecker to any2stringadd[ConfigChecker] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ConfigChecker, B)
- Implicit
- This member is added by an implicit conversion from ConfigChecker to ArrowAssoc[ConfigChecker] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
checkConfig(conf: PipeConfig): Unit
Check that paths in configuration file relevant to host class are well-formed.
Check that paths in configuration file relevant to host class are well-formed. Default does nothing.
- conf
the config file to check
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (ConfigChecker) ⇒ Boolean, msg: ⇒ Any): ConfigChecker
- Implicit
- This member is added by an implicit conversion from ConfigChecker to Ensuring[ConfigChecker] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ConfigChecker) ⇒ Boolean): ConfigChecker
- Implicit
- This member is added by an implicit conversion from ConfigChecker to Ensuring[ConfigChecker] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ConfigChecker
- Implicit
- This member is added by an implicit conversion from ConfigChecker to Ensuring[ConfigChecker] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ConfigChecker
- Implicit
- This member is added by an implicit conversion from ConfigChecker to Ensuring[ConfigChecker] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ConfigChecker to StringFormat[ConfigChecker] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
def
→[B](y: B): (ConfigChecker, B)
- Implicit
- This member is added by an implicit conversion from ConfigChecker to ArrowAssoc[ConfigChecker] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc