object BlueprintBuilder extends StreamletDescriptorBuilder
Builds Blueprints and VerifiedBlueprints for testing purposes. See BlueprintSpec for how the builder can be used.
- Alphabetic
- By Inheritance
- BlueprintBuilder
- StreamletDescriptorBuilder
- OptionValues
- EitherValues
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class BlueprintOps extends AnyRef
-
class
LeftValuable[L, R] extends AnyRef
- Definition Classes
- EitherValues
-
class
RightValuable[L, R] extends AnyRef
- Definition Classes
- EitherValues
-
implicit
class
StreamletRefOps extends AnyRef
Adds methods to StreamletRef for ease of testing.
Adds methods to StreamletRef for ease of testing. The methods here make it possible to write: -
streamletRef.in-streamletRef.out-streamletRef.in0-streamletRef.in1as a path to the inlet / outlet which can be used for connecting streamlets instead of manually constructing strings. -
class
Valuable[T] extends AnyRef
- Definition Classes
- OptionValues
-
implicit
class
StreamletDescriptorBuilderOps extends AnyRef
Adds builder methods to StreamletDescriptor for ease of testing.
Adds builder methods to StreamletDescriptor for ease of testing. (In the docs,
StreamletDescriptorandstreamletare used interchangeably.) Start with arandomStreamlet()orstreamlet(name)in BlueprintBuilder to create a streamlet, which can then be easily modified by usingasIngress,asProcessor, ... to a shape that is required for testing.- Definition Classes
- StreamletDescriptorBuilder
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buildStreamletDescriptor(className: String): StreamletDescriptor
Creates a streamlet descriptor from defaults.
Creates a streamlet descriptor from defaults. Use the StreamletDescriptorBuilderOps to modify.
- Definition Classes
- StreamletDescriptorBuilder
-
def
buildStreamletDescriptor(className: String, runtime: StreamletRuntimeDescriptor, labels: Vector[String], description: String, inlets: Vector[InletDescriptor], outlets: Vector[OutletDescriptor], configParameters: Vector[ConfigParameterDescriptor], attributes: Vector[StreamletAttributeDescriptor], volumeMounts: Vector[VolumeMountDescriptor]): StreamletDescriptor
- Definition Classes
- StreamletDescriptorBuilder
-
def
buildStreamletDescriptor(className: String, runtime: String): StreamletDescriptor
Creates a streamlet descriptor from defaults.
Creates a streamlet descriptor from defaults. Use the StreamletDescriptorBuilderOps builder methods to modify.
- Definition Classes
- StreamletDescriptorBuilder
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
connectedBlueprint(streamletDescriptors: StreamletDescriptor*): Blueprint
Creates a connected blueprint in the order that the streamlet descriptors are specified.
Creates a connected blueprint in the order that the streamlet descriptors are specified. Defines the given streamlet descriptors to be used in the blueprint, adds / uses a randomly named reference for every provided streamlet descriptor, connects every streamlets one by one. Connections are made to all inlets of the next streamlet that match the outlet schema of the previous streamlet.
-
implicit
def
convertLeftProjectionToValuable[L, R](leftProj: LeftProjection[L, R])(implicit pos: Position): LeftValuable[L, R]
- Definition Classes
- EitherValues
-
implicit
def
convertOptionToValuable[T](opt: Option[T])(implicit pos: Position): Valuable[T]
- Definition Classes
- OptionValues
-
implicit
def
convertRightProjectionToValuable[L, R](rightProj: RightProjection[L, R])(implicit pos: Position): RightValuable[L, R]
- Definition Classes
- EitherValues
-
def
createInletDescriptor[T](name: String, schemaName: String)(implicit arg0: ClassTag[T], arg1: SchemaFor[T]): InletDescriptor
- Definition Classes
- StreamletDescriptorBuilder
-
def
createOutletDescriptor[T](name: String, schemaName: String)(implicit arg0: ClassTag[T], arg1: SchemaFor[T]): OutletDescriptor
- Definition Classes
- StreamletDescriptorBuilder
-
def
createSchemaDescriptor[T](schemaName: String)(implicit arg0: ClassTag[T], arg1: SchemaFor[T]): SchemaDescriptor
- Definition Classes
- StreamletDescriptorBuilder
-
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()
-
def
randomStreamlet(runtime: String): StreamletDescriptor
- Definition Classes
- StreamletDescriptorBuilder
-
def
randomStreamlet(): StreamletDescriptor
Creates a random streamlet (descriptor) which can be further modified with the builder methods in StreamletDescriptorBuilderOps.
Creates a random streamlet (descriptor) which can be further modified with the builder methods in StreamletDescriptorBuilderOps.
- Definition Classes
- StreamletDescriptorBuilder
-
def
streamlet(className: String): StreamletDescriptor
- Definition Classes
- StreamletDescriptorBuilder
-
def
streamlet(className: String, runtime: String): StreamletDescriptor
Creates a streamlet (descriptor) which can be further modified with the builder methods in StreamletDescriptorBuilderOps.
Creates a streamlet (descriptor) which can be further modified with the builder methods in StreamletDescriptorBuilderOps.
- Definition Classes
- StreamletDescriptorBuilder
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unconnectedBlueprint(streamletDescriptors: StreamletDescriptor*): Blueprint
Creates an unconnected blueprint.
Creates an unconnected blueprint. Defines the given streamlets to be used in the blueprint, adds / uses a randomly named reference for every provided streamlet.
-
def
verified(blueprint: Blueprint): VerifiedBlueprint
Forces verification of a blueprint.
Forces verification of a blueprint. Fails with a scalatest value if the blueprint is not valid.
-
def
verifiedConnectedBlueprint(streamletDescriptors: StreamletDescriptor*): VerifiedBlueprint
Creates a connected VerifiedBlueprint, see connectedBlueprint.
-
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()