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]
- 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
- 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]
- Definition Classes
- Streamlet
-
def
defineConfigParameters(): Array[ConfigParameter]
- Definition Classes
- Streamlet
-
def
defineCustomAttributes(): Array[StreamletAttribute]
- Definition Classes
- Streamlet
-
def
defineVolumeMounts(): Array[VolumeMount]
- 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
- 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
- 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
- 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]
- 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()