aboutsummaryrefslogtreecommitdiffstats
path: root/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/DistributorNodeInfo.java
blob: 294446cc2516453b8a6ee594653633ffbccdad07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.core;

import com.yahoo.vdslib.distribution.Distribution;
import com.yahoo.vdslib.state.Node;
import com.yahoo.vdslib.state.NodeType;

/**
 * Class encapsulating what the Cluster Controller knows about a distributor node. Most of the information is
 * common between Storage- and Distributor- nodes, and stored in the base class NodeInfo.
 *
 * @author hakonhall
 */
public class DistributorNodeInfo extends NodeInfo {

    public DistributorNodeInfo(ContentCluster cluster, int index, String rpcAddress, Distribution distribution) {
        super(cluster, new Node(NodeType.DISTRIBUTOR, index), false, rpcAddress, distribution);
    }

}