xyz.block.ftl.v1.GrpcControllerServiceClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ftl-runtime Show documentation
Show all versions of ftl-runtime Show documentation
Towards a 𝝺-calculus for large-scale systems
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: xyz.block.ftl.v1.ControllerService in xyz/block/ftl/v1/ftl.proto
@file:Suppress("DEPRECATION")
package xyz.block.ftl.v1
import com.squareup.wire.GrpcCall
import com.squareup.wire.GrpcClient
import com.squareup.wire.GrpcMethod
import com.squareup.wire.GrpcStreamingCall
import kotlin.Suppress
public class GrpcControllerServiceClient(
private val client: GrpcClient,
) : ControllerServiceClient {
/**
* Ping service for readiness.
*/
override fun Ping(): GrpcCall = client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/Ping",
requestAdapter = PingRequest.ADAPTER,
responseAdapter = PingResponse.ADAPTER
))
/**
* List "processes" running on the cluster.
*/
override fun ProcessList(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/ProcessList",
requestAdapter = ProcessListRequest.ADAPTER,
responseAdapter = ProcessListResponse.ADAPTER
))
override fun Status(): GrpcCall = client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/Status",
requestAdapter = StatusRequest.ADAPTER,
responseAdapter = StatusResponse.ADAPTER
))
/**
* Get list of artefacts that differ between the server and client.
*/
override fun GetArtefactDiffs(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/GetArtefactDiffs",
requestAdapter = GetArtefactDiffsRequest.ADAPTER,
responseAdapter = GetArtefactDiffsResponse.ADAPTER
))
/**
* Upload an artefact to the server.
*/
override fun UploadArtefact(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/UploadArtefact",
requestAdapter = UploadArtefactRequest.ADAPTER,
responseAdapter = UploadArtefactResponse.ADAPTER
))
/**
* Create a deployment.
*/
override fun CreateDeployment(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/CreateDeployment",
requestAdapter = CreateDeploymentRequest.ADAPTER,
responseAdapter = CreateDeploymentResponse.ADAPTER
))
/**
* Get the schema and artefact metadata for a deployment.
*/
override fun GetDeployment(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/GetDeployment",
requestAdapter = GetDeploymentRequest.ADAPTER,
responseAdapter = GetDeploymentResponse.ADAPTER
))
/**
* Stream deployment artefacts from the server.
*
* Each artefact is streamed one after the other as a sequence of max 1MB
* chunks.
*/
override fun GetDeploymentArtefacts():
GrpcStreamingCall =
client.newStreamingCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/GetDeploymentArtefacts",
requestAdapter = GetDeploymentArtefactsRequest.ADAPTER,
responseAdapter = GetDeploymentArtefactsResponse.ADAPTER
))
/**
* Register a Runner with the Controller.
*
* Each runner issue a RegisterRunnerRequest to the ControllerService
* every 10 seconds to maintain its heartbeat.
*/
override fun RegisterRunner(): GrpcStreamingCall =
client.newStreamingCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/RegisterRunner",
requestAdapter = RegisterRunnerRequest.ADAPTER,
responseAdapter = RegisterRunnerResponse.ADAPTER
))
/**
* Update an existing deployment.
*/
override fun UpdateDeploy(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/UpdateDeploy",
requestAdapter = UpdateDeployRequest.ADAPTER,
responseAdapter = UpdateDeployResponse.ADAPTER
))
/**
* Gradually replace an existing deployment with a new one.
*
* If a deployment already exists for the module of the new deployment,
* it will be scaled down and replaced by the new one.
*/
override fun ReplaceDeploy(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/ReplaceDeploy",
requestAdapter = ReplaceDeployRequest.ADAPTER,
responseAdapter = ReplaceDeployResponse.ADAPTER
))
/**
* Stream logs from a deployment
*/
override fun StreamDeploymentLogs():
GrpcStreamingCall =
client.newStreamingCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/StreamDeploymentLogs",
requestAdapter = StreamDeploymentLogsRequest.ADAPTER,
responseAdapter = StreamDeploymentLogsResponse.ADAPTER
))
/**
* Get the full schema.
*/
override fun GetSchema(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/GetSchema",
requestAdapter = GetSchemaRequest.ADAPTER,
responseAdapter = GetSchemaResponse.ADAPTER
))
/**
* Pull schema changes from the Controller.
*
* Note that if there are no deployments this will block indefinitely, making it unsuitable for
* just retrieving the schema. Use GetSchema for that.
*/
override fun PullSchema(): GrpcStreamingCall =
client.newStreamingCall(GrpcMethod(
path = "/xyz.block.ftl.v1.ControllerService/PullSchema",
requestAdapter = PullSchemaRequest.ADAPTER,
responseAdapter = PullSchemaResponse.ADAPTER
))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy