Make some TCServerInfo methods that are only used in DDTCUnitTest class private

This commit is contained in:
Bharadwaj V.R 2022-03-02 12:56:19 -08:00 committed by Trevor Clinkenbeard
parent 7cb5c8957c
commit c5a17f48c0
1 changed files with 4 additions and 6 deletions

View File

@ -28,6 +28,7 @@ class TCMachineTeamInfo;
class TCServerInfo : public ReferenceCounted<TCServerInfo> {
friend class TCServerInfoImpl;
friend class DDTeamCollectionUnitTest;
UID id;
bool inDesiredDC;
DDTeamCollection* collection;
@ -47,6 +48,9 @@ class TCServerInfo : public ReferenceCounted<TCServerInfo> {
std::vector<Reference<TCTeamInfo>> teams;
ErrorOr<GetStorageMetricsReply> serverMetrics;
void setServerMetrics(GetStorageMetricsReply serverMetrics) { this->serverMetrics = serverMetrics; }
void markTeamUnhealthy(int teamIndex);
public:
Reference<TCMachineInfo> machine;
Promise<std::pair<StorageServerInterface, ProcessClass>> interfaceChanged;
@ -99,12 +103,6 @@ public:
static Future<Void> updateServerMetrics(Reference<TCServerInfo> server);
Future<Void> serverMetricsPolling();
// FIXME: Public for testing only:
void setServerMetrics(GetStorageMetricsReply serverMetrics) { this->serverMetrics = serverMetrics; }
// FIXME: Public for testing only:
void markTeamUnhealthy(int teamIndex);
~TCServerInfo();
};