Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Rename serviceLifecycleGetter api #5734

Merged
merged 2 commits into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-5734.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: Rename `getServerId` endpoint to `getServerLifecycleId`.
links:
- https://github.com/palantir/atlasdb/pull/5734
4 changes: 2 additions & 2 deletions timelock-api/src/main/conjure/timelock-management-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ services:
users will not see two different lock services servicing the same startTransactions request), but not atomic
as a whole.

getServerId:
http: POST /getServerId
getServerLifecycleId:
http: POST /getServerLifecycleId
returns: uuid
docs: |
Gets the randomly generated server id associated with the server's current lifecycle upon start up.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public ListenableFuture<Void> invalidateResources(AuthHeader authHeader, Set<Str
}

@Override
public ListenableFuture<UUID> getServerId(AuthHeader authHeader) {
public ListenableFuture<UUID> getServerLifecycleId(AuthHeader authHeader) {
return Futures.immediateFuture(serviceLifecycleController.getServerId());
}

Expand Down Expand Up @@ -169,8 +169,8 @@ public void invalidateResources(AuthHeader authHeader, Set<String> namespaces) {
}

@Override
public UUID getServerId(AuthHeader authHeader) {
return unwrap(resource.getServerId(authHeader));
public UUID getServerLifecycleId(AuthHeader authHeader) {
return unwrap(resource.getServerLifecycleId(authHeader));
}

@Override
Expand Down