Package com.yahoo.config.model.producer
Class UserConfigRepo
- java.lang.Object
-
- com.yahoo.config.model.producer.UserConfigRepo
-
public class UserConfigRepo extends 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(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()
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()
String
toString()
-
-
-
Constructor Detail
-
UserConfigRepo
public UserConfigRepo()
-
UserConfigRepo
public UserConfigRepo(Map<com.yahoo.vespa.config.ConfigDefinitionKey,com.yahoo.vespa.config.ConfigPayloadBuilder> map)
-
-
Method Detail
-
clone
public UserConfigRepo clone()
-
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()
-
configsProduced
public Set<com.yahoo.vespa.config.ConfigDefinitionKey> configsProduced()
The keys of all the configs contained in this.- Returns:
- a set of ConfigDefinitionsKey
-
-