abstract class AkkaServerStreamlet extends AkkaStreamlet with Server
An AkkaStreamlet that can listen on a port.
Using this trait instead of the AkkaStreamlet ensures that the streamlet will get an endpoint in Kubernetes.
This trait mixes on the Server
trait which is required for using a ServerStreamletLogic.
The ServerStreamletLogic provides a containerPort
and a getContainerPort()
method.
It returns the TCP port that is opened on the container. Listen on all interfaces ("0.0.0.0") and use the port
returned by containerPort
to start a TCP server that will be exposed by an endpoint in Kubernetes.
- Alphabetic
- By Inheritance
- AkkaServerStreamlet
- Server
- AkkaStreamlet
- Streamlet
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AkkaServerStreamlet()
Abstract Value Members
-
abstract
def
createLogic(): AkkaStreamletLogic
Implement this method to define the logic that this streamlet should execute once it is run.
Implement this method to define the logic that this streamlet should execute once it is run.
- Attributes
- protected
- Definition Classes
- AkkaStreamlet
-
abstract
def
shape(): StreamletShape
- Definition Classes
- Streamlet
Concrete 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 attributes: Set[StreamletAttribute]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
configParameters: IndexedSeq[ConfigParameter]
Defines a set of configuration parameters that will be used in this streamlet to lookup environment-specific configuration to be provided at deployment time.
Defines a set of configuration parameters that will be used in this streamlet to lookup environment-specific configuration to be provided at deployment time.
- Definition Classes
- Streamlet
-
final
def
containerPort: Int
Returns a TCP port on the container that a streamlet can listen on.
Returns a TCP port on the container that a streamlet can listen on.
- Definition Classes
- Server
-
implicit final
def
context: AkkaStreamletContext
Returns the StreamletContext in which this streamlet is run.
Returns the StreamletContext in which this streamlet is run. It can only be accessed when the streamlet is run.
- Attributes
- protected
- Definition Classes
- Streamlet
-
final
def
createContext(config: Config): AkkaStreamletContext
Initialize the streamlet from the config.
Initialize the streamlet from the config. In some cases (e.g. the tests) we may pass a context directly to be used instead of building it from the config.
- Attributes
- protected
- Definition Classes
- AkkaStreamlet → Streamlet
-
def
customAttributes: Set[StreamletAttribute]
A set of custom attributes that a streamlet can use to activate features in the Cloudflow runtime.
A set of custom attributes that a streamlet can use to activate features in the Cloudflow runtime.
- Definition Classes
- Streamlet
-
def
defineConfigParameters(): Array[ConfigParameter]
Java API
Java API
Defines configuration parameters that will be used in this streamlet to lookup environment-specific configuration to be provided at deployment time.
- Definition Classes
- Streamlet
-
def
defineCustomAttributes(): Array[StreamletAttribute]
Java API
Java API
Defines a set of custom attributes that a streamlet can use to activate features in the Cloudflow runtime.
- Definition Classes
- Streamlet
-
def
defineVolumeMounts(): Array[VolumeMount]
Java API Defines volume mounts that can be used by the streamlet to mount a volume in a local path.
Java API Defines volume mounts that can be used by the streamlet to mount a volume in a local path.
- Definition Classes
- Streamlet
-
def
description: String
- Definition Classes
- Streamlet
-
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()
-
final
def
getContainerPort(): Int
Java API Returns a TCP port on the container that a streamlet can listen on.
Java API Returns a TCP port on the container that a streamlet can listen on.
- Definition Classes
- Server
-
final
def
getContext(): AkkaStreamletContext
Java API
Java API
Returns the StreamletContext in which this streamlet is run. It can only be accessed when the streamlet is run.
- Attributes
- protected
- Definition Classes
- Streamlet
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
inlets: IndexedSeq[Inlet]
- Definition Classes
- Streamlet
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
jsonDescriptor: String
JSON-Encoded String representing the descriptor of this streamlet.
JSON-Encoded String representing the descriptor of this streamlet.
- Definition Classes
- Streamlet
-
def
labels: IndexedSeq[String]
- Definition Classes
- Streamlet
-
lazy val
log: Logger
- Attributes
- protected
- Definition Classes
- Streamlet
- Annotations
- @transient()
-
def
logStartRunnerMessage(buildInfo: String): Unit
- Definition Classes
- AkkaStreamlet → Streamlet
-
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
outlets: IndexedSeq[Outlet]
- Definition Classes
- Streamlet
-
final
def
run(context: AkkaStreamletContext): StreamletExecution
Runs the streamlet.
Runs the streamlet.
- Definition Classes
- AkkaStreamlet → Streamlet
-
final
val
runtime: AkkaStreamletRuntime.type
- Definition Classes
- AkkaStreamlet → Streamlet
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
volumeMounts: IndexedSeq[VolumeMount]
Defines volume mounts that can be used by the streamlet to mount a volume in a local path.
Defines volume mounts that can be used by the streamlet to mount a volume in a local path.
- Definition Classes
- Streamlet
-
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()