aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-zone-api/src/main/java/ai/vespa/cloud/SystemInfo.java
blob: c00a199e5bb6954b648c4ac6a7e590816f600664 (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
27
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.cloud;

/**
 * Provides information about the system in which this container is running.
 * This is available and can be injected when running in a cloud environment.
 *
 * @author bratseth
 */
public class SystemInfo {

    private final Zone zone;
    private final Node node;

    public SystemInfo(Zone zone, Node node) {
        this.zone = zone;
        this.node = node;
    }

    /** Returns the zone this is running in */
    public Zone zone() { return zone; }


    /** Returns the node this is running on */
    public Node node() { return node; }

}