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

import com.yahoo.component.ComponentSpecification;
import com.yahoo.container.bundle.BundleInstantiationSpecification;
import com.yahoo.osgi.provider.model.ComponentModel;
import com.yahoo.vespa.model.container.component.SimpleComponent;

/**
 * Sets up a simple component to keep the state of the cluster controller, even when configuration changes.
 */
public class ClusterControllerComponent extends SimpleComponent
{
    public ClusterControllerComponent() {
        super(new ComponentModel(new BundleInstantiationSpecification(
                new ComponentSpecification("clustercontroller"),
                new ComponentSpecification("com.yahoo.vespa.clustercontroller.apps.clustercontroller.ClusterController"),
                new ComponentSpecification("clustercontroller-apps"))));
    }
}