diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2020-03-10 11:08:08 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2020-03-10 11:08:08 +0100 |
commit | 288ce8de5f5ee49c8c91340a86252b38b16ce6f2 (patch) | |
tree | 49b4f9f5c0a847e6d7cf8047df234a04710a13c5 | |
parent | ddd5141d112d44f881da17e83d26ac18ad35c3c1 (diff) |
Add SystemInfo
3 files changed, 15 insertions, 45 deletions
diff --git a/container-core/src/main/java/ai/vespa/cloud/SystemInfo.java b/container-core/src/main/java/ai/vespa/cloud/SystemInfo.java new file mode 100644 index 00000000000..21577e17170 --- /dev/null +++ b/container-core/src/main/java/ai/vespa/cloud/SystemInfo.java @@ -0,0 +1,5 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package ai.vespa.cloud; + +public class SystemInfo { +} diff --git a/container-core/src/main/java/ai/vespa/cloud/package-info.java b/container-core/src/main/java/ai/vespa/cloud/package-info.java new file mode 100644 index 00000000000..259a2bda258 --- /dev/null +++ b/container-core/src/main/java/ai/vespa/cloud/package-info.java @@ -0,0 +1,10 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +/** + * Public API to the Vespa cloud, available when this container runs in a cloud. + */ +@ExportPackage +@PublicApi +package ai.vespa.cloud; + +import com.yahoo.api.annotations.PublicApi; +import com.yahoo.osgi.annotation.ExportPackage; diff --git a/container-core/src/main/java/com/yahoo/container/Server.java b/container-core/src/main/java/com/yahoo/container/Server.java deleted file mode 100644 index a4dec6de5a2..00000000000 --- a/container-core/src/main/java/com/yahoo/container/Server.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.container; - -import com.yahoo.config.subscription.ConfigSubscriber; -import com.yahoo.container.QrConfig.Rpc; - -/** - * The http server singleton managing listeners for various ports, - * and the threads used to respond to requests on the ports - * - * @author bratseth - * @deprecated - */ -@SuppressWarnings("deprecation") -@Deprecated // TODO: Remove this when the last usage og getServerDiscriminator is removed -public class Server { - - //TODO: Make this final again. - private static final Server instance = new Server(); - - /** A short string which is different for all the qrserver instances on a given node. */ - private String localServerDiscriminator = "qrserver.0"; - - private Server() { } - - public static Server get() { - return instance; - } - - public void initialize(QrConfig config) { - localServerDiscriminator = config.discriminator(); - } - - /** - * A string unique for this QRS on this server. - * - * @return a server specific string - * @deprecated do not use - */ - @Deprecated - public String getServerDiscriminator() { - return localServerDiscriminator; - } - -} |