summaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/VespaUser.java
blob: 78ccca80beb230433e05701b4bedf5c2c0ed11ff (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
28
29
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.nodeagent;

import java.util.Objects;

/**
 * Describes Vespa user inside the container user namespace.
 * 
 * @author valerijf
 */
public class VespaUser {

    private final String name;
    private final String group;
    private final int uid;
    private final int gid;

    public VespaUser(String name, String group, int uid, int gid) {
        this.name = Objects.requireNonNull(name);
        this.group = Objects.requireNonNull(group);
        this.uid = uid;
        this.gid = gid;
    }

    public String name() { return name; }
    public String group() { return group; }
    public int uid() { return uid; }
    public int gid() { return gid; }
}