Class/Object

com.typesafe.conductr.clientlib.akka

ControlClient

Related Docs: object ControlClient | package akka

Permalink

class ControlClient extends AbstractControlClient

Akka 2.3 flavor of the AbstractControlClient. Uses Akka HTTP and Akka streams to interact with ConductR.

Linear Supertypes
AbstractControlClient, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ControlClient
  2. AbstractControlClient
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ControlClient(handler: ConnectionHandler, conductrAddress: URL, apiVersion: scala.models.ApiVersion.Value)

    Permalink

    handler

    The connection handler contains the logic how to interact with the ConductR HTTP server

    conductrAddress

    contains the protocol://host:port of the ConductR control server

    apiVersion

    The version of ConductR's REST API

Type Members

  1. class BasePayload extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractControlClient
  2. trait BaseResponseHandler extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractControlClient
  3. type CC = ConnectionContext

    Permalink
    Attributes
    protected
    Definition Classes
    ControlClient → AbstractControlClient

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Payload extends BasePayload

    Permalink

    Akka 2.3 Payload object

  5. object ResponseHandler extends BaseResponseHandler

    Permalink

    Akka 2.3 Response handler object

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def downMember(address: URI)(implicit cc: ConnectionContext): Future[Boolean]

    Permalink

    address

    The uri representing the ConductR cluster member.

    cc

    implicit connection context

    returns

    true if the request has been succeeded. false if the request has been failed.

    Definition Classes
    ControlClient → AbstractControlClient
    See also

    com.typesafe.conductr.clientlib.scala.AbstractControlClient.downMember()

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getBundleEvents(bundleId: BundleId, count: Option[Int] = None)(implicit cc: ConnectionContext): Future[BundleEventsResult]

    Permalink

    bundleId

    An existing bundle identifier, a shortened version of it (min 7 characters) or a non-ambiguous name given to the bundle during loading.

    count

    The number of events to return. Defaults to 10.

    cc

    implicit connection context

    returns

    The result as a Future[BundleEventsResult]. BundleEventsResult is a sealed trait and can be either:

    • BundleEventsSuccess if the request has been succeeded. This object contains the requested events.
    • BundleEventsFailure if the request has been failed. This object contains the HTTP status code and error message.
    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.getBundleEvents()

  13. def getBundleLogs(bundleId: BundleId, count: Option[Int] = None)(implicit cc: ConnectionContext): Future[BundleLogsResult]

    Permalink

    bundleId

    An existing bundle identifier, a shortened version of it (min 7 characters) or a non-ambiguous name given to the bundle during loading.

    count

    The number of events to return. Defaults to 10.

    cc

    implicit connection context

    returns

    The result as a Future[BundleLogsResult]. BundleEventsResult is a sealed trait and can be either:

    • BundleLogsSuccess if the request has been succeeded. This object contains the requested log messages.
    • BundleLogsFailure if the request has been failed. This object contains the HTTP status code and error message.
    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.getBundleLogs()

  14. def getBundlesInfo()(implicit cc: ConnectionContext): Future[Seq[Bundle]]

    Permalink

    cc

    implicit connection context

    returns

    the bundles

    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.getBundlesInfo()

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getMemberInfo(address: URI)(implicit cc: ConnectionContext): Future[MemberInfoResult]

    Permalink

    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.getMemberInfo()

  17. def getMembersInfo()(implicit cc: ConnectionContext): Future[MembersInfoResult]

    Permalink

    cc

    implicit connection context

    returns

    the current ConductR cluster members.

    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.getMembersInfo()

  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def joinMember(joinTo: URI)(implicit cc: ConnectionContext): Future[Boolean]

    Permalink

    joinTo

    The uri representing the ConductR cluster member.

    cc

    implicit connection context

    returns

    true if the request has been succeeded. false if the request has been failed.

    Definition Classes
    ControlClient → AbstractControlClient
    See also

    com.typesafe.conductr.clientlib.scala.AbstractControlClient.joinMember()

  21. def leaveMember(address: URI)(implicit cc: ConnectionContext): Future[Boolean]

    Permalink

    address

    The uri representing the ConductR cluster member.

    cc

    implicit connection context

    returns

    true if the request has been succeeded. false if the request has been failed.

    Definition Classes
    ControlClient → AbstractControlClient
    See also

    com.typesafe.conductr.clientlib.scala.AbstractControlClient.leaveMember()

  22. def loadBundle(bundle: URI, config: Option[URI] = None)(implicit cc: ConnectionContext): Future[BundleRequestResult]

    Permalink

    bundle

    The file that is the bundle. The filename is important with its hex digest string and is required to be consistent with the SHA-256 hash of the bundle’s contents. Any inconsistency between the hashes will result in the load being rejected.

    config

    Optional: Similar in form to the bundle, only that is the file that describes the configuration. Again any inconsistency between the hex digest string in the filename, and the SHA-256 digest of the actual contents will result in the load being rejected.

    cc

    implicit connection context

    returns

    The result as a Future[BundleRequestResult]. BundleRequestResult is a sealed trait and can be either:

    • BundleRequestSuccess if the loading request has been succeeded. This object contains the request and bundle id
    • BundleRequestFailure if the loading request has been failed. This object contains the HTTP status code and error message.
    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.loadBundle()

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def runBundle(bundleId: BundleId, scale: Option[Int] = None, affinity: Option[String] = None)(implicit cc: ConnectionContext): Future[BundleRequestResult]

    Permalink

    bundleId

    An existing bundle identifier, a shortened version of it (min 7 characters) or a non-ambiguous name given to the bundle during loading.

    scale

    The number of instances of the bundle to start. Defaults to 1.

    affinity

    Optional: Identifier to other bundle. If specified, the current bundle will be run on the same host where the specified bundle is currently running.

    cc

    implicit connection context

    returns

    The result as a Future[BundleRequestResult]. BundleRequestResult is a sealed trait and can be either:

    • BundleRequestSuccess if the scaling request has been succeeded. This object contains the request and bundle id
    • BundleRequestFailure if the scaling request has been failed. This object contains the HTTP status code and error message.
    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.runBundle()

  27. def stopBundle(bundleId: BundleId)(implicit cc: ConnectionContext): Future[BundleRequestResult]

    Permalink

    bundleId

    An existing bundle identifier, a shortened version of it (min 7 characters) or a non-ambiguous name given to the bundle during loading.

    returns

    The result as a Future[BundleRequestResult]. BundleRequestResult is a sealed trait and can be either:

    • BundleRequestSuccess if the stopping request has been succeeded. This object contains the request and bundle id
    • BundleRequestFailure if the BundleRequestSuccess request has been failed. This object contains the HTTP status code and error message.
    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.stopBundle()

  28. def streamBundlesEvents(events: Set[String] = Set.empty)(implicit cc: CC): Future[EventStreamResult]

    Permalink

    Returns a stream of all bundle events.

    Returns a stream of all bundle events. Each event is represented by a ServerSentEvent. Each ServerSentEvent is transferred in a Source to easily access a stream of events.

    events

    The requested events the stream should return. A Set.empty is returning every event type.

    cc

    implicit connection context

    returns

    The stream as a Source wrapped inside a scala.concurrent.Future

  29. def streamMembersEvents()(implicit cc: ConnectionContext): Future[EventStreamResult]

    Permalink

    Returns a stream of all member events.

    Returns a stream of all member events. Each event is represented by a de.heikoseeberger.akkasse.ServerSentEvent. Each de.heikoseeberger.akkasse.ServerSentEvent is transferred in a Source to easily access a stream of events.

    cc

    implicit connection context

    returns

    The stream as a Source wrapped inside a scala.concurrent.Future

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def unloadBundle(bundleId: BundleId)(implicit cc: ConnectionContext): Future[BundleRequestResult]

    Permalink

    bundleId

    An existing bundle identifier, a shortened version of it (min 7 characters) or a non-ambiguous name given to the bundle during loading.

    cc

    implicit connection context

    returns

    The result as a Future[BundleUnloadResult]. BundleUnloadResult is a sealed trait and can be either:

    • BundleUnloadSuccess if the unloading request has been succeeded. This object contains the request id
    • BundleUnloadFailure if the unloading request has been failed. This object contains the HTTP status code and error message.
    Definition Classes
    ControlClient → AbstractControlClient
    See also

    AbstractControlClient.unloadBundle()

  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AbstractControlClient

Inherited from AnyRef

Inherited from Any

Ungrouped