Package

akkeeper

api

Permalink

package api

Visibility
  1. Public
  2. All

Type Members

  1. case class ActorLaunchContext(name: String, fqn: String) extends Product with Serializable

    Permalink

    A launch context that represents an actor that has to be launched in container.

    A launch context that represents an actor that has to be launched in container.

    name

    the name of the actor.

    fqn

    the full qualified name of the actor, i.e. "com.myproject.MyActor".

  2. trait ApiJsonProtocol extends CommonApiJsonProtocol with ContainerApiJsonProtocol with DeployApiJsonProtocol with MonitoringApiJsonProtocol

    Permalink
  3. class AutoRequestIdFormat[T <: WithRequestId] extends RootJsonFormat[T] with RequestIdJsonProtocol

    Permalink
  4. trait CommonApiJsonProtocol extends DefaultJsonProtocol with RequestIdJsonProtocol

    Permalink

    JSON (de)serialization for the Common API requests and responses.

  5. case class ContainerAlreadyExists(requestId: RequestId, name: String) extends ContainerResponse with Product with Serializable

    Permalink

    A response that indicates that the container with the given name already exists.

    A response that indicates that the container with the given name already exists. This is one of the possible responses to the CreateContainer request.

    requestId

    the ID of the original request.

    name

    the name of the container.

  6. trait ContainerApiJsonProtocol extends DefaultJsonProtocol with RequestIdJsonProtocol with ContainerDefinitionJsonProtocol

    Permalink

    JSON (de)serialization for the Container API requests and responses.

  7. case class ContainerCreated(requestId: RequestId, name: String) extends ContainerResponse with Product with Serializable

    Permalink

    A response that indicates a successful creation of the container.

    A response that indicates a successful creation of the container. This is a result of the CreateContainer operation.

    requestId

    the ID of the original request.

    name

    the name of the created container.

  8. case class ContainerDefinition(name: String, cpus: Int, memory: Int, actors: Seq[ActorLaunchContext], jvmArgs: Seq[String] = Seq.empty, jvmProperties: Map[String, String] = Map.empty, environment: Map[String, String] = Map.empty) extends Product with Serializable

    Permalink

    Contains all the necessary information to launch a new instance in container.

    Contains all the necessary information to launch a new instance in container.

    name

    the unique name of the container.

    cpus

    the number of CPUs that will be allocated for each instance of this container.

    memory

    the amount of RAM in MB that will be allocated for each instance of this container.

    actors

    the list of actors that will be deployed. See ActorLaunchContext.

    jvmArgs

    the list of JVM arguments that will be passed to each instance of this container. I.e. "-Xmx1g"

    jvmProperties

    the map of JVM properties that will be passed to each instance of this container. This map reflects the behaviour of the "-Dproperty=value" JVM argument.

    environment

    the map of environment variables that will passed to each instance of this container. The key of the map is an environment variable name and the value is a variable's value.

  9. trait ContainerDefinitionJsonProtocol extends DefaultJsonProtocol

    Permalink
  10. case class ContainerDeleted(requestId: RequestId, name: String) extends ContainerResponse with Product with Serializable

    Permalink

    A response that indicates a successful removing of the container.

    A response that indicates a successful removing of the container. This is a result of the DeleteContainer operation.

    requestId

    the ID of the original request.

    name

    the name of the removed container.

  11. case class ContainerGetResult(requestId: RequestId, container: ContainerDefinition) extends ContainerResponse with Product with Serializable

    Permalink

    A result of the GetContainer request.

    A result of the GetContainer request. Contains the definition of the request container.

    requestId

    the ID of the original request.

    container

    the definition of the requested container.

  12. case class ContainerNotFound(requestId: RequestId, name: String) extends ContainerResponse with Product with Serializable

    Permalink

    A response that indicates that the requested container was not found.

    A response that indicates that the requested container was not found.

    requestId

    the ID of the original request.

    name

    the name of the requested container.

  13. sealed trait ContainerRequest extends WithRequestId

    Permalink

    The base interface for all requests related to Container API.

  14. sealed trait ContainerResponse extends WithRequestId

    Permalink

    The base interface for all responses related to Container API.

  15. case class ContainerUpdated(requestId: RequestId, name: String) extends ContainerResponse with Product with Serializable

    Permalink

    A response that indicates a successful update of the container.

    A response that indicates a successful update of the container. This is a result of the UpdateContainer operation.

    requestId

    the ID of the original request.

    name

    the name of the updated container.

  16. case class ContainersList(requestId: RequestId, containers: Seq[String]) extends ContainerResponse with Product with Serializable

    Permalink

    A response that contains the list of existing container names as a result of the GetContainers request.

    A response that contains the list of existing container names as a result of the GetContainers request.

    requestId

    the ID of the original request.

    containers

    the list of container names.

  17. case class CreateContainer(container: ContainerDefinition, requestId: RequestId = RequestId()) extends ContainerRequest with Product with Serializable

    Permalink

    A container creation request.

    A container creation request. The possible responses are:

    container

    the container definition. See ContainerDefinition.

    requestId

    the optional request ID. If not specified a random ID will be generated.

  18. case class DeleteContainer(name: String, requestId: RequestId = RequestId()) extends ContainerRequest with Product with Serializable

    Permalink

    A container delete request.

    A container delete request. The possible responses are:

    name

    the name of the container that has to be deleted.

    requestId

    the optional request ID. If not specified a random ID will be generated.

  19. trait DeployApiJsonProtocol extends DefaultJsonProtocol with RequestIdJsonProtocol with InstanceIdJsonProtocol

    Permalink

    JSON (de)serialization for the Deploy API requests and responses.

  20. case class DeployContainer(name: String, quantity: Int, jvmArgs: Option[Seq[String]] = None, properties: Option[Map[String, String]] = None, requestId: RequestId = RequestId()) extends WithRequestId with Product with Serializable

    Permalink

    A request to deploy (launch) new instance(s) of the given container.

    A request to deploy (launch) new instance(s) of the given container. The possible responses are:

    name

    the name of the container that will be deployed.

    quantity

    the number of instances that will be deployed.

    jvmArgs

    the list of JVM arguments that override/extend JVM arguments from the container definition.

    properties

    the map of properties, where the key - is a property name, and the value is a property value. Overrides/extends properties from the container definition.

    requestId

    the optional request ID. If not specified a random ID will be generated.

  21. case class GetContainer(name: String, requestId: RequestId = RequestId()) extends ContainerRequest with Product with Serializable

    Permalink

    A request to retrieve the definition of the container with the given name.

    A request to retrieve the definition of the container with the given name. The possible responses are:

    name

    the container's name

    requestId

    the optional request ID. If not specified a random ID will be generated.

  22. case class GetContainers(requestId: RequestId = RequestId()) extends ContainerRequest with Product with Serializable

    Permalink

    A request to retrieve names of all existing containers.

    A request to retrieve names of all existing containers. The possible responses are:

    requestId

    the optional request ID. If not specified a random ID will be generated.

  23. case class GetInstance(instanceId: InstanceId, requestId: RequestId = RequestId()) extends InstanceRequest with Product with Serializable

    Permalink

    A request to retrieve the information about the instance using its ID.

    A request to retrieve the information about the instance using its ID. The possible responses are:

    instanceId

    the ID of the instance.

    requestId

    the optional request ID. If not specified a random ID will be generated.

  24. case class GetInstances(requestId: RequestId = RequestId()) extends InstanceRequest with Product with Serializable

    Permalink

    A request to retrieve the IDs of all existing instances.

    A request to retrieve the IDs of all existing instances. The possible responses are:

    requestId

    the optional request ID. If not specified a random ID will be generated.

  25. case class GetInstancesBy(roles: Set[String], containerName: Option[String], statuses: Set[InstanceStatus], requestId: RequestId = RequestId()) extends InstanceRequest with Product with Serializable

    Permalink

    A request to find the instance IDs that match specific requirements.

    A request to find the instance IDs that match specific requirements. The possible responses are:

    roles

    the list of roles the requested instance must have. An empty list means any roles. Note: an instance must include all roles enumerated in this list in order to meet the search requirements.

    containerName

    the name of the container the requested instance must belong to. If not specified instance with any container will match.

    statuses

    the list of desired statuses.

    requestId

    the optional request ID. If not specified a random ID will be generated.

  26. final case class InstanceAddress(protocol: String, system: String, host: Option[String], port: Option[Int]) extends Product with Serializable

    Permalink
  27. case class InstanceId(containerName: String, uuid: UUID) extends Product with Serializable

    Permalink

    Represents a unique ID of the instance.

    Represents a unique ID of the instance.

    containerName

    the name of the container this instance belongs to.

    uuid

    the unique ID of the instance.

  28. trait InstanceIdJsonProtocol extends DefaultJsonProtocol

    Permalink
  29. case class InstanceInfo extends Product with Serializable

    Permalink

    A complete information about the instance.

  30. trait InstanceInfoJsonProtocol extends DefaultJsonProtocol with InstanceIdJsonProtocol

    Permalink
  31. case class InstanceInfoResponse(requestId: RequestId, info: InstanceInfo) extends InstanceResponse with Product with Serializable

    Permalink

    A response that contains an information about the requested instance.

    A response that contains an information about the requested instance. This is a result of the GetInstance operation.

    requestId

    the ID of the original request.

    info

    the information about the requested instance. See InstanceInfo.

  32. case class InstanceNotFound(requestId: RequestId, instanceId: InstanceId) extends InstanceResponse with Product with Serializable

    Permalink

    A response that indicates that the request instance was not found.

    A response that indicates that the request instance was not found.

    requestId

    the ID of the original request.

    instanceId

    the requested instance ID.

  33. sealed trait InstanceRequest extends WithRequestId

    Permalink

    The base interface for all requests related to Monitoring API.

  34. sealed trait InstanceResponse extends WithRequestId

    Permalink

    The base interface for all responses related to Monitoring API.

  35. sealed trait InstanceStatus extends AnyRef

    Permalink

    Represents a status of the instance.

  36. case class InstanceTerminated(requestId: RequestId, instanceId: InstanceId) extends InstanceResponse with Product with Serializable

    Permalink

    A response that indicates the successful termination of the instance.

    A response that indicates the successful termination of the instance. This is a result of the TerminateInstance operation.

    requestId

    the ID of the original request.

    instanceId

    the ID of the terminated intance.

  37. final case class InstanceUniqueAddress(address: InstanceAddress, longUid: Long) extends Product with Serializable

    Permalink
  38. case class InstancesList(requestId: RequestId, instanceIds: Seq[InstanceId]) extends InstanceResponse with Product with Serializable

    Permalink

    A response that contains the list of IDs of existing instances.

    A response that contains the list of IDs of existing instances. This is a result of the GetInstances operation.

    requestId

    the ID of the original request.

    instanceIds

    the list of instance IDs.

  39. trait MonitoringApiJsonProtocol extends DefaultJsonProtocol with InstanceIdJsonProtocol with RequestIdJsonProtocol with InstanceInfoJsonProtocol

    Permalink

    JSON (de)serialization for the Monitoring API requests and responses.

  40. case class OperationFailed(requestId: RequestId, cause: Throwable) extends WithRequestId with Product with Serializable

    Permalink

    A response message that represents an arbitrary general error.

    A response message that represents an arbitrary general error. It's usually used when some unexpected or unhandled error occurs.

    requestId

    the ID of the original request that caused an operation that failed.

    cause

    the reason of the failure.

  41. case class RequestId(uuid: UUID) extends Product with Serializable

    Permalink

    The unique ID of the API request.

    The unique ID of the API request.

    uuid

    the unique ID.

  42. trait RequestIdJsonProtocol extends DefaultJsonProtocol

    Permalink
  43. case class SubmittedInstances(requestId: RequestId, containerName: String, instanceIds: Seq[InstanceId]) extends WithRequestId with Product with Serializable

    Permalink

    A response that indicates a successful deployment of new instances.

    A response that indicates a successful deployment of new instances. Note: this response only indicates the successful allocation of containers and doesn't imply that actors are launched successfully too.

    requestId

    the ID of the original request.

    containerName

    the name of the container that has been deployed.

    instanceIds

    the list of IDs of newly launched instances.

  44. case class TerminateInstance(instanceId: InstanceId, requestId: RequestId = RequestId()) extends InstanceRequest with Product with Serializable

    Permalink

    A request to terminate a running instance.

    A request to terminate a running instance. The possible responses are:

    instanceId

    the ID of the instance that has to be terminated.

    requestId

    the optional request ID. If not specified a random ID will be generated.

  45. case class UpdateContainer(container: ContainerDefinition, requestId: RequestId = RequestId()) extends ContainerRequest with Product with Serializable

    Permalink

    A container update request.

    A container update request. The possible responses are:

    container

    the updated definition of the existing container. See ContainerDefinition.

    requestId

    the optional request ID. If not specified a random ID will be generated.

  46. trait WithRequestId extends AnyRef

    Permalink

    The base interface for all messages that include unique request ID.

Value Members

  1. object ApiJsonProtocol extends ApiJsonProtocol

    Permalink
  2. object AutoRequestIdFormat

    Permalink
  3. object CommonApiJsonProtocol extends CommonApiJsonProtocol

    Permalink
  4. object ContainerDefinitionJsonProtocol extends ContainerDefinitionJsonProtocol

    Permalink
  5. object Heartbeat extends Product with Serializable

    Permalink

    A heartbeat message to prevent Akkeeper Master from termination.

  6. object InstanceDeployFailed extends InstanceStatus with Product with Serializable

    Permalink
  7. object InstanceDeploying extends InstanceStatus with Product with Serializable

    Permalink
  8. object InstanceId extends Serializable

    Permalink
  9. object InstanceIdJsonProtocol extends InstanceIdJsonProtocol

    Permalink
  10. object InstanceInfo extends Serializable

    Permalink
  11. object InstanceInfoJsonProtocol extends InstanceInfoJsonProtocol

    Permalink
  12. object InstanceLaunching extends InstanceStatus with Product with Serializable

    Permalink
  13. object InstanceStatus

    Permalink
  14. object InstanceUnreachable extends InstanceStatus with Product with Serializable

    Permalink
  15. object InstanceUp extends InstanceStatus with Product with Serializable

    Permalink
  16. object RequestId extends Serializable

    Permalink
  17. object RequestIdJsonProtocol extends RequestIdJsonProtocol

    Permalink
  18. object TerminateMaster extends Product with Serializable

    Permalink

    A command that terminates the Akkeeper Master instance.

Ungrouped