aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/clusterinformation.cpp
blob: c9f9723bef63fb7762a83a084b51a1148542164a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "clusterinformation.h"
#include <vespa/vdslib/distribution/distribution.h>
#include <vespa/vdslib/state/cluster_state_bundle.h>
#include <vespa/vdslib/state/clusterstate.h>

namespace storage::distributor {

uint16_t
ClusterInformation::getStorageNodeCount() const
{
    return getClusterStateBundle().getBaselineClusterState()->getNodeCount(lib::NodeType::STORAGE);
}

}