aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/entity/EntityService.java
blob: 3762a42e573b2f433a1dc74c594b7f2fb70ec627 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.entity;

import com.yahoo.vespa.hosted.controller.api.identifiers.Property;
import com.yahoo.vespa.hosted.controller.api.identifiers.PropertyId;

import java.util.List;
import java.util.Map;
import java.util.Optional;

/**
 * A service which provides access to business-specific entities.
 *
 * @author mpolden
 */
public interface EntityService {

    /** List all properties known by the service */
    Map<PropertyId, Property> listProperties();

    /** List all nodes owned by this system's property */
    List<NodeEntity> listNodes();

    Optional<NodeEntity> findNode(String hostname);

}