tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ISwarmService.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Threading;
4using System.Threading.Tasks;
5
8
10{
15 {
20
28 ValueTask<SwarmPrepareResult> PrepareUpdate(ISeekableFileStreamProvider fileStreamProvider, Version version, CancellationToken cancellationToken);
29
35 ValueTask<SwarmCommitResult> CommitUpdate(CancellationToken cancellationToken);
36
41 List<SwarmServerInformation>? GetSwarmServers();
42 }
43}
IFileStreamProvider that provides MemoryStreams.
Used for swarm operations. Functions may be no-op based on configuration.
ValueTask< SwarmPrepareResult > PrepareUpdate(ISeekableFileStreamProvider fileStreamProvider, Version version, CancellationToken cancellationToken)
Signal to the swarm that an update is requested.
List< SwarmServerInformation >? GetSwarmServers()
Gets the list of SwarmServerInformations in the swarm, including the current one.
bool ExpectedNumberOfNodesConnected
Gets a value indicating if the expected amount of nodes are connected to the swarm.
ValueTask< SwarmCommitResult > CommitUpdate(CancellationToken cancellationToken)
Signal to the swarm that an update is ready to be applied.
Allows aborting a swarm distributed update operation.