diff options
Diffstat (limited to 'configserver/src/main/java/com/yahoo/vespa/serviceview/Service.java')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/serviceview/Service.java | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/serviceview/Service.java b/configserver/src/main/java/com/yahoo/vespa/serviceview/Service.java index f10e2afa046..b5d18bdbb1f 100644 --- a/configserver/src/main/java/com/yahoo/vespa/serviceview/Service.java +++ b/configserver/src/main/java/com/yahoo/vespa/serviceview/Service.java @@ -1,31 +1,37 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.serviceview; -import com.google.common.collect.ImmutableList; -import com.yahoo.text.Utf8; - import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.List; +import com.google.common.collect.ImmutableList; +import com.yahoo.text.Utf8; + +import edu.umd.cs.findbugs.annotations.NonNull; + /** * Model a single service instance as a sortable object. * - * @author Steinar Knutsen + * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a> */ public final class Service implements Comparable<Service> { - + @NonNull public final String serviceType; + @NonNull public final String host; public final int statePort; + @NonNull public final String configId; + @NonNull public final List<Integer> ports; + @NonNull public final String name; public Service(String serviceType, String host, int statePort, String clusterName, String clusterType, - String configId, List<Integer> ports, String name) { + String configId, List<Integer> ports, String name) { this.serviceType = serviceType; this.host = host.toLowerCase(); this.statePort = statePort; @@ -53,7 +59,8 @@ public final class Service implements Comparable<Service> { * Generate an identifier string for one of the ports of this service * suitable for using in an URL. * - * @param port port which this identifier pertains to + * @param port + * port which this identifier pertains to * @return an opaque identifier string for this service */ public String getIdentifier(int port) { |