xyz.block.ftl.v1.GrpcRunnerServiceClient.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.RunnerService in xyz/block/ftl/v1/ftl.proto
package xyz.block.ftl.v1
import com.squareup.wire.GrpcCall
import com.squareup.wire.GrpcClient
import com.squareup.wire.GrpcMethod
/**
* RunnerService is the service that executes Deployments.
*
* The Controller will scale the Runner horizontally as required. The Runner will
* register itself automatically with the ControllerService, which will then
* assign modules to it.
*/
public class GrpcRunnerServiceClient(
private val client: GrpcClient,
) : RunnerServiceClient {
override fun Ping(): GrpcCall = client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.RunnerService/Ping",
requestAdapter = PingRequest.ADAPTER,
responseAdapter = PingResponse.ADAPTER
))
/**
* Reserve synchronously reserves a Runner for a deployment but does nothing else.
*/
override fun Reserve(): GrpcCall = client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.RunnerService/Reserve",
requestAdapter = ReserveRequest.ADAPTER,
responseAdapter = ReserveResponse.ADAPTER
))
/**
* Initiate a deployment on this Runner.
*/
override fun Deploy(): GrpcCall = client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.RunnerService/Deploy",
requestAdapter = DeployRequest.ADAPTER,
responseAdapter = DeployResponse.ADAPTER
))
/**
* Terminate the deployment on this Runner.
*/
override fun Terminate(): GrpcCall =
client.newCall(GrpcMethod(
path = "/xyz.block.ftl.v1.RunnerService/Terminate",
requestAdapter = TerminateRequest.ADAPTER,
responseAdapter = RegisterRunnerRequest.ADAPTER
))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy