Packages

c

cloudflow.blueprint.StreamletDescriptorBuilder

StreamletDescriptorBuilderOps

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StreamletDescriptorBuilderOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StreamletDescriptorBuilderOps(streamletDescriptor: StreamletDescriptor)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def asBox: StreamletDescriptor

    Transforms the descriptor into a streamlet that has no connections (just for testing)

  5. def asEgress[T](inletName: String = "in")(implicit arg0: ClassTag[T], arg1: SchemaFor[T]): StreamletDescriptor
  6. 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.

  7. def asIngress[T](implicit arg0: ClassTag[T], arg1: SchemaFor[T]): StreamletDescriptor
  8. 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 T and used in the outlet.

  9. def asIngress(outlets: Vector[OutletDescriptor]): StreamletDescriptor

    Transforms the descriptor into an ingress

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. 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
  12. 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.

  13. def asProcessor[I, O](implicit arg0: ClassTag[I], arg1: SchemaFor[I], arg2: ClassTag[O], arg3: SchemaFor[O]): StreamletDescriptor
  14. 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 I and O, used in the outlet and inlet.

  15. 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
  16. 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.

  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def in: InletDescriptor
  24. def in0: InletDescriptor
  25. def in1: InletDescriptor
  26. def inlet: InletDescriptor
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def out: OutletDescriptor
  32. def outlet: OutletDescriptor
  33. def randomRef: StreamletRef

    Creates a random StreamletRef reference to this streamlet.

  34. def randomRefName: String

    creates a random reference name

  35. def ref(refName: String, metadata: Option[Config] = None): StreamletRef

    Creates a StreamletRef reference to this streamlet.

  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  41. def withAttributes(attributes: Vector[StreamletAttributeDescriptor]): StreamletDescriptor

    Adds attributes to the streamlet.

  42. def withConfigParameters(descriptors: ConfigParameterDescriptor*): StreamletDescriptor

    Adds config parameters to the streamlet.

  43. def withRuntime(runtime: String): StreamletDescriptor
  44. def withServerAttribute: StreamletDescriptor

    Adds a server attribute to the streamlet.

  45. def withVolumeMounts(volumeMounts: VolumeMountDescriptor*): StreamletDescriptor

    Adds volume mounts to the streamlet.

Inherited from AnyRef

Inherited from Any

Ungrouped