Package com.yahoo.config.model.producer
Class UserConfigRepo
- java.lang.Object
-
- com.yahoo.config.model.producer.UserConfigRepo
-
public class UserConfigRepo extends java.lang.Object
A UserConfigRepo is a repository for user configs, typically for a particular config producer. The repo encapsulates how the user configs are stored, and defines the methods to retrieve user configs and merge the repo with others.- Author:
- Ulf Lilleengen
-
-
Constructor Summary
Constructors Constructor Description UserConfigRepo()
UserConfigRepo(java.util.Map<com.yahoo.vespa.config.ConfigDefinitionKey,com.yahoo.vespa.config.ConfigPayloadBuilder> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserConfigRepo
clone()
java.util.Set<com.yahoo.vespa.config.ConfigDefinitionKey>
configsProduced()
The keys of all the configs contained in this.com.yahoo.vespa.config.ConfigPayloadBuilder
get(com.yahoo.vespa.config.ConfigDefinitionKey key)
boolean
isEmpty()
void
merge(UserConfigRepo newRepo)
int
size()
java.lang.String
toString()
-
-
-
Method Detail
-
clone
public UserConfigRepo clone()
- Overrides:
clone
in classjava.lang.Object
-
get
public com.yahoo.vespa.config.ConfigPayloadBuilder get(com.yahoo.vespa.config.ConfigDefinitionKey key)
-
merge
public void merge(UserConfigRepo newRepo)
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
configsProduced
public java.util.Set<com.yahoo.vespa.config.ConfigDefinitionKey> configsProduced()
The keys of all the configs contained in this.- Returns:
- a set of ConfigDefinitionsKey
-
-