diff options
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/Service.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/Service.java | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/Service.java b/config-model/src/main/java/com/yahoo/vespa/model/Service.java index d5d33a08b5d..0af4355764c 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/Service.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/Service.java @@ -11,7 +11,7 @@ import java.util.Optional; * * @author gjoranv */ -public interface Service extends ConfigProducer { +public interface Service extends ConfigProducer, NetworkPortRequestor { /** * Services that should be started by config-sentinel must return @@ -44,39 +44,6 @@ public interface Service extends ConfigProducer { boolean getAutorestartFlag(); /** - * Returns the type of service. E.g. the class-name without the - * package prefix. - */ - String getServiceType(); - - /** - * Returns the name that identifies this service for the config-sentinel. - */ - String getServiceName(); - - /** - * Returns the desired base port for this service, or '0' if this - * service should use the default port allocation mechanism. - * - * @return The desired base port for this service. - */ - int getWantedPort(); - - /** - * Returns true if the desired base port (returned by - * getWantedPort()) for this service is the only allowed base - * port. - * - * @return true if this Service requires the wanted base port. - */ - boolean requiresWantedPort(); - - /** - * Returns the number of ports needed by this service. - */ - int getPortCount(); - - /** * Returns a PortsMeta object, giving access to more information * about the different ports of this service. */ |