blob: 5bb30112a77123c8db6d5e47d71d75f18ff3d25a (
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 Yahoo. 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);
}
|