implicit class StreamletDescriptorBuilderOps extends AnyRef
Adds builder methods to StreamletDescriptor for ease of testing. (In the docs, StreamletDescriptor and streamlet are used interchangeably.)
Start with a randomStreamlet() or streamlet(name) in BlueprintBuilder to create a streamlet, which
can then be easily modified by using asIngress, asProcessor, ... to a shape that is required for testing.
- Alphabetic
- By Inheritance
- StreamletDescriptorBuilderOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StreamletDescriptorBuilderOps(streamletDescriptor: StreamletDescriptor)
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
asBox: StreamletDescriptor
Transforms the descriptor into a streamlet that has no connections (just for testing)
- def asEgress[T](inletName: String = "in")(implicit arg0: ClassTag[T], arg1: SchemaFor[T]): StreamletDescriptor
-
def
asEgress[T](implicit arg0: ClassTag[T], arg1: SchemaFor[T]): StreamletDescriptor
Transforms the streamlet into an egress.
Transforms the streamlet into an egress. A schema is auto generated for
T, used in the inlet. - def asIngress[T](implicit arg0: ClassTag[T], arg1: SchemaFor[T]): StreamletDescriptor
-
def
asIngress[T](outletName: String = "out")(implicit arg0: ClassTag[T], arg1: SchemaFor[T]): StreamletDescriptor
Transforms the streamlet into an ingress.
Transforms the streamlet into an ingress. A schema is auto generated for
Tand used in the outlet. -
def
asIngress(outlets: Vector[OutletDescriptor]): StreamletDescriptor
Transforms the descriptor into an ingress
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asMerge[I0, I1, O](inletName0: String = "in-0", inletName1: String = "in-1", outletName: String = "out")(implicit arg0: ClassTag[I0], arg1: SchemaFor[I0], arg2: ClassTag[I1], arg3: SchemaFor[I1], arg4: ClassTag[O], arg5: SchemaFor[O]): StreamletDescriptor
-
def
asMerge[I0, I1, O](implicit arg0: ClassTag[I0], arg1: SchemaFor[I0], arg2: ClassTag[I1], arg3: SchemaFor[I1], arg4: ClassTag[O], arg5: SchemaFor[O]): StreamletDescriptor
Transforms the streamlet into a merge.
Transforms the streamlet into a merge. A schema is auto generated for
I0,I1,O, used as inlets and outlet respectively. - def asProcessor[I, O](implicit arg0: ClassTag[I], arg1: SchemaFor[I], arg2: ClassTag[O], arg3: SchemaFor[O]): StreamletDescriptor
-
def
asProcessor[I, O](inletName: String = "in", outletName: String = "out")(implicit arg0: ClassTag[I], arg1: SchemaFor[I], arg2: ClassTag[O], arg3: SchemaFor[O]): StreamletDescriptor
Transforms the streamlet into a processor.
Transforms the streamlet into a processor. A schema is auto generated for
IandO, used in the outlet and inlet. - def asSplitter[I, O0, O1](inletName: String = "in", outletName0: String = "out-0", outletName1: String = "out-1")(implicit arg0: ClassTag[I], arg1: SchemaFor[I], arg2: ClassTag[O0], arg3: SchemaFor[O0], arg4: ClassTag[O1], arg5: SchemaFor[O1]): StreamletDescriptor
-
def
asSplitter[I, O0, O1](implicit arg0: ClassTag[I], arg1: SchemaFor[I], arg2: ClassTag[O0], arg3: SchemaFor[O0], arg4: ClassTag[O1], arg5: SchemaFor[O1]): StreamletDescriptor
Transforms the streamlet into a splitter.
Transforms the streamlet into a splitter. A schema is auto generated for
I0,O0,O1, used as inlet and outlets respectively. -
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()
- def in: InletDescriptor
- def in0: InletDescriptor
- def in1: InletDescriptor
- def inlet: InletDescriptor
-
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 out: OutletDescriptor
- def outlet: OutletDescriptor
-
def
randomRef: StreamletRef
Creates a random StreamletRef reference to this streamlet.
-
def
randomRefName: String
creates a random reference name
-
def
ref(refName: String, metadata: Option[Config] = None): StreamletRef
Creates a StreamletRef reference to this streamlet.
-
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()
-
def
withAttributes(attributes: Vector[StreamletAttributeDescriptor]): StreamletDescriptor
Adds attributes to the streamlet.
-
def
withConfigParameters(descriptors: ConfigParameterDescriptor*): StreamletDescriptor
Adds config parameters to the streamlet.
- def withRuntime(runtime: String): StreamletDescriptor
-
def
withServerAttribute: StreamletDescriptor
Adds a server attribute to the streamlet.
-
def
withVolumeMounts(volumeMounts: VolumeMountDescriptor*): StreamletDescriptor
Adds volume mounts to the streamlet.