tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ISwarmOperations.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Threading;
4using System.Threading.Tasks;
5
7
9{
14 {
19 void UpdateSwarmServersList(IEnumerable<SwarmServerInformation> swarmServers);
20
27 ValueTask<bool> PrepareUpdateFromController(SwarmUpdateRequest updateRequest, CancellationToken cancellationToken);
28
34 bool ValidateRegistration(Guid registrationId);
35
43 ValueTask<SwarmRegistrationResponse?> RegisterNode(SwarmServer node, Guid registrationId, CancellationToken cancellationToken);
44
51 ValueTask UnregisterNode(Guid registrationId, CancellationToken cancellationToken);
52
59 ValueTask<bool> RemoteCommitReceived(Guid registrationId, CancellationToken cancellationToken);
60 }
61}
Information about a server in the swarm.
A request to update the swarm's TGS version.
Swarm service operations for the Controllers.SwarmController.
ValueTask UnregisterNode(Guid registrationId, CancellationToken cancellationToken)
Attempt to unregister a node with a given registrationId with the controller.
ValueTask< bool > RemoteCommitReceived(Guid registrationId, CancellationToken cancellationToken)
Notify the controller that the node with the given registrationId is ready to commit or notify the n...
ValueTask< bool > PrepareUpdateFromController(SwarmUpdateRequest updateRequest, CancellationToken cancellationToken)
Notify the node of an update request from the controller.
bool ValidateRegistration(Guid registrationId)
Validate a given registrationId .
ValueTask< SwarmRegistrationResponse?> RegisterNode(SwarmServer node, Guid registrationId, CancellationToken cancellationToken)
Attempt to register a given node with the controller.
void UpdateSwarmServersList(IEnumerable< SwarmServerInformation > swarmServers)
Pass in an updated list of swarmServers to the node.
Allows aborting a swarm distributed update operation.