skuber.examples.guestbook

Members list

Type members

Classlikes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class CreateResultHandler(consumer: ActorRef, name: String) extends ServiceResultHandler

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
Show all
object Guestbook extends App

Attributes

Supertypes
trait App
trait DelayedInit
class Object
trait Matchable
class Any
Self type
Guestbook.type

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class GuestbookActor extends Actor, ActorLogging

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any

A KubernetesProxyActor proxies all requests from the Guestbook actors to Kubernetes. It is a slim wrapper around the skuber API, and enables sharing of skuber resources (e.g. underlying WS client connections, watches etc.) by all calling actors. It supports request messages to create/delete/get Service and Replication Controller resources on Kubernetes. For each of the above the actor simply creates and invokes a skuber request, and pipes the (future) response back to a result handler actor specified in the request message.

A KubernetesProxyActor proxies all requests from the Guestbook actors to Kubernetes. It is a slim wrapper around the skuber API, and enables sharing of skuber resources (e.g. underlying WS client connections, watches etc.) by all calling actors. It supports request messages to create/delete/get Service and Replication Controller resources on Kubernetes. For each of the above the actor simply creates and invokes a skuber request, and pipes the (future) response back to a result handler actor specified in the request message.

It also supports a WatchReplicationController message that puts a reactive watch on a specified replication controller that forwards any updates received via the watch to one or more a specified actor. Multiple actors may watch the same controller - they reuse the same underlying watch. These watches are used by ScalerActor for monitoring the progress of scaling up/down of Guestbook services on the cluster.

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class KubernetesProxyActor extends Actor, ActorLogging

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class RemoveResultHandler(consumer: ActorRef, name: String) extends ServiceResultHandler

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class ScaleResultHandler(consumer: ActorRef, name: String) extends ServiceResultHandler

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
Show all
object ScalerActor

The scaler actor is responsible for scaling a replica count up/down for a Guestbook service One scaler actor handles a single scaling request

The scaler actor is responsible for scaling a replica count up/down for a Guestbook service One scaler actor handles a single scaling request

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class ScalerActor(kubernetes: ActorRef, controllerName: String, targetReplicaCount: Int) extends Actor, ActorLogging

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
object ServiceActor

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class ServiceActor(kubernetes: ActorRef, specification: GuestbookServiceSpecification) extends Actor, ActorLogging

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
abstract class ServiceResultHandler(serviceConsumer: ActorRef) extends Actor, ActorLogging

Attributes

Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class StopResultHandler(consumer: ActorRef, name: String) extends ServiceResultHandler

Attributes

Companion
object
Supertypes
trait ActorLogging
trait Actor
class Object
trait Matchable
class Any
Show all
case class Watching(watch: Future[Source[WatchEvent[ReplicationController], _]], watchers: Set[ActorRef])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all