forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft of config management service (digital-asset#3656)
* Add draft of config management service * Add submission id to SetTimeModelRequest
- v1.7.0-snapshot.20201027.5530.0.bdbf8977
- v1.7.0-snapshot.20201023.5508.0.9dec6689
- v1.7.0-snapshot.20201013.5418.0.bda13392
- v1.7.0-snapshot.20201012.5405.0.af92198d
- v1.7.0-snapshot.20201006.5358.0.0c1cadcf
- v1.6.1-snapshot.20201021.5317.0.aafe46a5
- v1.6.0
- v1.6.0-snapshot.20201012.5316.0.d21cb496
- v1.6.0-snapshot.20201007.5314.0.b4a47d0b
- v1.6.0-snapshot.20200930.5312.0.b9a1905d
- v1.6.0-snapshot.20200922.5258.0.cd4a06db
- v1.6.0-snapshot.20200915.5208.0.09014dc6
- v1.6.0-snapshot.20200908.5166.0.1623baec
- v1.5.0
- v1.5.0-snapshot.20200907.5151.0.eb68e680
- v1.5.0-snapshot.20200902.5118.0.2b3cf1b3
- v1.5.0-snapshot.20200825.5071.0.d33e130f
- v1.5.0-snapshot.20200818.5027.0.1b33d374
- v1.5.0-snapshot.20200811.4959.0.bbc2fe56
- v1.5.0-snapshot.20200804.4902.0.de2fef6b
- v1.4.0
- v1.4.0-snapshot.20200729.4851.0.224ab362
- v1.4.0-snapshot.20200724.4812.0.818a52b0
- v1.4.0-snapshot.20200722.4800.0.21a16eef
- v1.4.0-snapshot.20200722.4796.0.28ab504b
- v1.4.0-snapshot.20200715.4733.0.d6e58626
- v1.3.0
- v1.3.0-snapshot.20200714.4687.0.8e10c7a7
- v1.3.0-snapshot.20200708.4686.0.95dfa18e
- v1.3.0-snapshot.20200706.4664.0.5db06051
- v1.3.0-snapshot.20200701.4616.0.bdbefd11
- v1.3.0-snapshot.20200623.4546.0.4f68cfc4
- v1.3.0-snapshot.20200617.4484.0.7e0a6848
- v1.3.0-snapshot.20200617.4474.0.53bddb54
- v1.3.0-snapshot.20200610.4413.0.11b5c362
- v1.3.0-snapshot.20200610.4412.0.0544323d
- v1.3.0-snapshot.20200603.4345.0.1386abc0
- v1.2.0
- v1.2.0-snapshot.20200602.4310.0.1c18058f
- v1.2.0-snapshot.20200528.4309.0.f619dea3
- v1.2.0-snapshot.20200527.4268.0.acc5a21c
- v1.2.0-snapshot.20200520.4228.0.595f1e27
- v1.2.0-snapshot.20200520.4224.0.2af134ca
- v1.2.0-snapshot.20200513.4172.0.021f4af3
- v1.1.1
- v1.1.0-snapshot.20200506.4107.0.7e448d81
- v1.1.0-snapshot.20200430.4057.0.681c862d
- v1.1.0-snapshot.20200422.3991.0.6391ee9f
- v1.0.1
- v1.0.1-snapshot.20200424.3917.0.16093690
- v1.0.1-snapshot.20200417.3908.1.722bac90
- v1.0.0
- v0.13.56-snapshot.20200411.3905.0.f050da78
- v0.13.56-snapshot.20200408.3877.0.1ddcd3c0
- v0.13.56-snapshot.20200408.3871.0.b3ccacc0
- v0.13.56-snapshot.20200407.3859.0.b488b353
- v0.13.56-snapshot.20200407.3843.0.10bac143
- v0.13.56-snapshot.20200404.3816.0.30f2c742
- v0.13.56-snapshot.20200331.3729.0.b43b8d86
- v0.13.56-snapshot.20200325.3626.0.a3ddde3a
- v0.13.56-snapshot.20200318.3529.0.6ea118d6
- v0.13.55
- v0.13.55-snapshot.20200309.3401.0.6f8c3ad8
- v0.13.55-snapshot.20200304.3329.6a1c75cf
- v0.13.55-snapshot.20200226.3267.c9b9293d
- v0.13.54
- v0.13.53
- v0.13.52
- v0.13.51
- v0.13.50
- v0.13.49
- v0.13.46
- v0.13.43
- v0.13.42
- v0.13.41
- v0.13.40
- v0.13.39
Jussi Mäki
authored
Dec 5, 2019
1 parent
1684b22
commit f998887
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
...api/grpc-definitions/com/digitalasset/ledger/api/v1/admin/config_management_service.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// Copyright (c) 2019 The DAML Authors. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
syntax = "proto3"; | ||
|
||
package com.digitalasset.ledger.api.v1.admin; | ||
|
||
option java_outer_classname = "ConfigManagementServiceOuterClass"; | ||
option java_package = "com.digitalasset.ledger.api.v1.admin"; | ||
option csharp_namespace = "Com.DigitalAsset.Ledger.Api.V1.Admin"; | ||
|
||
import "google/protobuf/duration.proto"; | ||
|
||
// Status: experimental interface, will change before it is deemed production | ||
// ready | ||
|
||
// Ledger configuration management service provides methods for the ledger administrator | ||
// to change the current ledger configuration. The services provides methods to modify | ||
// different aspects of the configuration. | ||
service ConfigManagementService { | ||
// Return the currently active time model and the current configuration generation. | ||
rpc GetTimeModel (GetTimeModelRequest) returns (GetTimeModelResponse); | ||
|
||
// Set the ledger time model. | ||
// In case of failure this method responds with: | ||
// - INVALID_ARGUMENT if arguments are invalid, or the provided configuration generation | ||
// does not match the current active configuration generation. The caller is expected | ||
// to retry by again fetching current time model using 'GetTimeModel', applying changes | ||
// and resubmitting. | ||
// - UNIMPLEMENTED if this method is not supported by the backing ledger. | ||
rpc SetTimeModel (SetTimeModelRequest) returns (SetTimeModelResponse); | ||
} | ||
|
||
message GetTimeModelRequest { | ||
} | ||
|
||
message GetTimeModelResponse { | ||
// The current configuration generation. The generation is a monotonically increasing | ||
// integer that is incremented on each change. Used when setting the time model. | ||
int64 configuration_generation = 1; | ||
|
||
// The current ledger time model. | ||
TimeModel time_model = 2; | ||
} | ||
|
||
message SetTimeModelRequest { | ||
// Submission identifier used for tracking the request and to reject | ||
// duplicate submissions. | ||
// Required. | ||
string submission_id = 1; | ||
|
||
// The current configuration generation which we're submitting the change against. | ||
// This is used to perform a compare-and-swap of the configuration to | ||
// safeguard against concurrent modifications. | ||
// Required. | ||
int64 configuration_generation = 2; | ||
|
||
// The new time model that replaces the current one. | ||
// Required. | ||
TimeModel new_time_model = 3; | ||
} | ||
|
||
message SetTimeModelResponse { | ||
} | ||
|
||
message TimeModel { | ||
// The expected minimum latency of a transaction. | ||
// Required. | ||
google.protobuf.Duration min_transaction_latency = 1; | ||
|
||
// The maximum allowed clock skew between the ledger and clients. | ||
// Required. | ||
google.protobuf.Duration max_clock_skew = 2; | ||
|
||
// The maximum allowed time to live for a transaction. | ||
// Must be greater than the derived minimum time to live. | ||
// Required. | ||
google.protobuf.Duration max_ttl = 3; | ||
} | ||
|