Package-level declarations

Types

Link copied to clipboard

Responding information about the model server.

Link copied to clipboard
class BadRequestException(details: String, typeSuffix: String, cause: Throwable? = null) : HttpException

Indicates a bad request from the client with missing or invalid information provided.

Link copied to clipboard
class BranchNotFoundException(branch: String, repositoryId: String, cause: Throwable? = null) : HttpException

A HttpException indicating that a branch was not found in a repository.

Link copied to clipboard
typealias CallContext = PipelineContext<Unit, ApplicationCall>
Link copied to clipboard
class HealthApiImpl(repositoriesManager: RepositoriesManager, storeClient: IStoreClient, inMemoryModels: InMemoryModels)
Link copied to clipboard
open class HttpException(problem: <Error class: unknown class>, cause: Throwable? = null) : RuntimeException

An exception used to indicate a problem serving an HTTP request. It includes details used to construct a proper response.

Link copied to clipboard
class IdsApiImpl(repositoriesManager: IRepositoriesManager, modelClient: LocalModelClient)

Implementation of the REST API that is responsible for handling client and server IDs.

Link copied to clipboard
Link copied to clipboard
class KeyValueLikeModelServer(repositoriesManager: IRepositoriesManager, storeClient: IStoreClient, inMemoryModels: InMemoryModels)
Link copied to clipboard
class LightModelServer(val client: LocalModelClient, val repositoriesManager: RepositoriesManager)
Link copied to clipboard

REST API implementation for providing micrometer metrics.

Link copied to clipboard
class ModelReplicationServer(repositoriesManager: IRepositoriesManager, modelClient: LocalModelClient, inMemoryModels: InMemoryModels)

Implements the endpoints used by the 'model-client', but compared to KeyValueLikeModelServer also understands what client sends. This allows more validations and more responsibilities on the server side.

Link copied to clipboard
sealed interface ObjectData
Link copied to clipboard
class ObjectDataFlow(hashObjectFlow: Flow<Pair<String, String>>) : ObjectData
Link copied to clipboard
class ObjectDataMap(byHashObjects: Map<String, String>) : ObjectData
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class VersionNotFoundException(versionHash: String, cause: Throwable? = null) : HttpException

A HttpException indicating that a version inside a repository or branch was not found.

Properties

Link copied to clipboard

A namespace for problems we use as the first part of every type in an application/problem+json response.

Functions

Link copied to clipboard
fun JSONObject.arrayEntries(): Map<String, JSONArray>
Link copied to clipboard
fun JSONArray.asLongList(): List<Long>
Link copied to clipboard
fun JSONArray.asObjectList(): List<JSONObject>
Link copied to clipboard
fun buildJSONArray(vararg elements: Any?): JSONArray
Link copied to clipboard
fun buildJSONObject(body: JSONObject.() -> Unit): JSONObject
Link copied to clipboard
fun JSONObject.entries(): Map<String, Any?>
Link copied to clipboard
Link copied to clipboard
fun jsonNullToJavaNull(value: Any?): Any?
Link copied to clipboard
fun JSONObject.longEntries(): Map<String, Long?>
Link copied to clipboard
fun problemType(suffix: String): String

Constructs a namespaces problem type for application/problem+json in the format //.

Link copied to clipboard
fun JSONObject.stringEntries(): Map<String, String?>
Link copied to clipboard
fun Iterable<Any?>.toJsonArray(): JSONArray