Make some TCServerInfo methods that are only used in DDTCUnitTest class private
This commit is contained in:
parent
7cb5c8957c
commit
c5a17f48c0
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue