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> {
|
class TCServerInfo : public ReferenceCounted<TCServerInfo> {
|
||||||
friend class TCServerInfoImpl;
|
friend class TCServerInfoImpl;
|
||||||
|
friend class DDTeamCollectionUnitTest;
|
||||||
UID id;
|
UID id;
|
||||||
bool inDesiredDC;
|
bool inDesiredDC;
|
||||||
DDTeamCollection* collection;
|
DDTeamCollection* collection;
|
||||||
|
@ -47,6 +48,9 @@ class TCServerInfo : public ReferenceCounted<TCServerInfo> {
|
||||||
std::vector<Reference<TCTeamInfo>> teams;
|
std::vector<Reference<TCTeamInfo>> teams;
|
||||||
ErrorOr<GetStorageMetricsReply> serverMetrics;
|
ErrorOr<GetStorageMetricsReply> serverMetrics;
|
||||||
|
|
||||||
|
void setServerMetrics(GetStorageMetricsReply serverMetrics) { this->serverMetrics = serverMetrics; }
|
||||||
|
void markTeamUnhealthy(int teamIndex);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Reference<TCMachineInfo> machine;
|
Reference<TCMachineInfo> machine;
|
||||||
Promise<std::pair<StorageServerInterface, ProcessClass>> interfaceChanged;
|
Promise<std::pair<StorageServerInterface, ProcessClass>> interfaceChanged;
|
||||||
|
@ -99,12 +103,6 @@ public:
|
||||||
static Future<Void> updateServerMetrics(Reference<TCServerInfo> server);
|
static Future<Void> updateServerMetrics(Reference<TCServerInfo> server);
|
||||||
Future<Void> serverMetricsPolling();
|
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();
|
~TCServerInfo();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue