A C D E F G H I L M N O P R S T U V Y 
All Classes All Packages

A

action() - Method in enum net.morimekta.config.ConfigChangeType
One of 'creating', 'modifying' or 'deleting'.
addChangeListener(ConfigChangeListener<ConfigFileType>) - Method in class net.morimekta.config.ConfigWatcher
Add a config change listener for notification on changes to the loaded config map.
addChangeListener(ConfigChangeListener<ConfigType>) - Method in class net.morimekta.config.ConfigSupplier
Add a config change listener.
addEventListener(ConfigEventListener) - Method in class net.morimekta.config.ConfigSupplier
Add a config event change listener.
addEventListener(ConfigEventListener) - Method in class net.morimekta.config.ConfigWatcher
Add a config event listener for events of what is happening on the config watcher.
addListener(SecretListener) - Method in class net.morimekta.config.Secret
Add a listener for secret changes.
asConfigException(Throwable) - Static method in exception net.morimekta.config.ConfigException
Make a config exception out of an exception.
asConfigException(Throwable, int) - Static method in exception net.morimekta.config.ConfigException
Make a config exception out of an exception.
asUncheckedException() - Method in exception net.morimekta.config.ConfigException
 

C

capitalized() - Method in enum net.morimekta.config.ConfigChangeType
One of 'Created', 'Modified' or 'Deleted'.
capitalizedAction() - Method in enum net.morimekta.config.ConfigChangeType
One of 'Creating', 'Modifying' or 'Deleting'.
close() - Method in class net.morimekta.config.ConfigSupplier
 
close() - Method in class net.morimekta.config.ConfigWatcher
Immediately remove all change listeners and stop watching files.
close() - Method in class net.morimekta.config.SecretsManager
 
config - Variable in class net.morimekta.config.ConfigWatcher.ConfigEntry
 
config(Class<ConfigType>) - Static method in class net.morimekta.config.ConfigSupplier
Make a config supplier, and figure out file reader by detecting file type and using default reader for the type.
config(Class<ConfigType>, Path) - Static method in class net.morimekta.config.ConfigSupplier
Load a config file, and detect file type and using default reader for the type.
ConfigChangeListener<ConfigEntry> - Interface in net.morimekta.config
Listener for changes to config.
ConfigChangeType - Enum in net.morimekta.config
Types of changes on config content.
ConfigEntry(Path, String, Instant, ConfigFileType) - Constructor for class net.morimekta.config.ConfigWatcher.ConfigEntry
 
ConfigEventListener - Interface in net.morimekta.config
Listen to config events.
ConfigEventListener.Status - Enum in net.morimekta.config
The status of the event.
ConfigException - Exception in net.morimekta.config
Exception related to config handling and loading.
ConfigException(String) - Constructor for exception net.morimekta.config.ConfigException
 
ConfigException(String, Throwable) - Constructor for exception net.morimekta.config.ConfigException
 
ConfigExceptionBuffer - Class in net.morimekta.config
A small utility buffer class for accumulating exceptions and passing as a config exception if any happens.
ConfigExceptionBuffer() - Constructor for class net.morimekta.config.ConfigExceptionBuffer
 
ConfigReader<ConfigType> - Interface in net.morimekta.config.readers
A interface to load config files from disk and parse into the specified config type.
ConfigReaderProvider - Interface in net.morimekta.config.readers
Provider of a single type of config readers.
ConfigReaderSupplier<ConfigType> - Interface in net.morimekta.config.readers
A helper class to load config files from disk and parse into the specified config type.
ConfigSupplier<ConfigType> - Class in net.morimekta.config
A wrapper around a config file to handle loading and parsing during application setup.
ConfigSupplier(ConfigReader<ConfigType>) - Constructor for class net.morimekta.config.ConfigSupplier
Create a config supplier.
ConfigSupplier(ConfigReader<ConfigType>, Supplier<FileWatcher>) - Constructor for class net.morimekta.config.ConfigSupplier
Create a config supplier.
ConfigSupplier(ConfigReaderSupplier<ConfigType>) - Constructor for class net.morimekta.config.ConfigSupplier
Create a config supplier.
ConfigSupplier(ConfigReaderSupplier<ConfigType>, Supplier<FileWatcher>, Clock) - Constructor for class net.morimekta.config.ConfigSupplier
Create a config supplier.
ConfigWatcher<ConfigFileType> - Class in net.morimekta.config
The config watcher watches the whole directory of config files of the same type, and notifies listeners of any changes.
ConfigWatcher(Path, ConfigReader<ConfigFileType>, Function<ConfigFileType, String>) - Constructor for class net.morimekta.config.ConfigWatcher
Create a config watcher instance.
ConfigWatcher(Path, ConfigReader<ConfigFileType>, Function<ConfigFileType, String>, Clock) - Constructor for class net.morimekta.config.ConfigWatcher
Create a config watcher instance.
ConfigWatcher(Path, ConfigReader<ConfigFileType>, Function<ConfigFileType, String>, Clock, DirWatcher, FileWatcher) - Constructor for class net.morimekta.config.ConfigWatcher
Create a config watcher instance.
ConfigWatcher.ConfigEntry<ConfigFileType> - Class in net.morimekta.config
A config file entry cached in the watcher.
CREATED - net.morimekta.config.ConfigChangeType
The config entry has just been created.

D

DELETED - net.morimekta.config.ConfigChangeType
The config entry has been deleted.
deserialize(JsonParser, DeserializationContext) - Method in class net.morimekta.config.Secret.SecretDeserializer
 
deserialize(JsonParser, DeserializationContext) - Method in class net.morimekta.config.SecretsManager.SecretManagerDeserializer
 
dir - Variable in class net.morimekta.config.SecretsManager.SecretsConfig
 

E

equals(Object) - Method in class net.morimekta.config.ConfigWatcher.ConfigEntry
 
equals(Object) - Method in class net.morimekta.config.Secret
 
ERROR - net.morimekta.config.ConfigEventListener.Status
Error on config change update.
exists(String) - Method in class net.morimekta.config.SecretsManager
 

F

file - Variable in class net.morimekta.config.ConfigWatcher.ConfigEntry
The file name of the config file.
FixedConfigReaderSupplier<ConfigType> - Class in net.morimekta.config.readers
Get a fixed config reader.
FixedConfigReaderSupplier(ConfigReader<ConfigType>) - Constructor for class net.morimekta.config.readers.FixedConfigReaderSupplier
Instantiate config reader supplier with given reader.

G

get() - Method in class net.morimekta.config.ConfigSupplier
Get the current config content.
get(String) - Method in class net.morimekta.config.SecretsManager
Get a named secret from the secret store.
getAsBinary() - Method in class net.morimekta.config.Secret
 
getAsBinary(String) - Method in class net.morimekta.config.SecretsManager
 
getAsBytes() - Method in class net.morimekta.config.Secret
 
getAsBytes(String) - Method in class net.morimekta.config.SecretsManager
 
getAsString() - Method in class net.morimekta.config.Secret
 
getAsString(String) - Method in class net.morimekta.config.SecretsManager
 
getConfigDir() - Method in class net.morimekta.config.ConfigWatcher
 
getFile() - Method in class net.morimekta.config.ConfigSupplier
Get the loaded config file.
getKnownSecrets() - Method in class net.morimekta.config.SecretsManager
 
getLastUpdatedAt() - Method in class net.morimekta.config.ConfigSupplier
Get the timestamp of last successful update.
getLoadedConfigMap() - Method in class net.morimekta.config.ConfigWatcher
 
getName() - Method in class net.morimekta.config.Secret
 
getReaderFor(Class<ConfigType>, Path) - Method in interface net.morimekta.config.readers.ConfigReaderProvider
Get a config reader for given type and file, if applicable.
getReaderFor(Class<ConfigType>, Path) - Method in class net.morimekta.config.readers.YamlConfigReaderProvider
 
getReaderFor(Path) - Method in interface net.morimekta.config.readers.ConfigReaderSupplier
 
getReaderFor(Path) - Method in class net.morimekta.config.readers.FixedConfigReaderSupplier
 
getReaderFor(Path) - Method in class net.morimekta.config.readers.ProvidedConfigReaderSupplier
 
getSecretsPath() - Method in class net.morimekta.config.SecretsManager
 

H

hashCode() - Method in class net.morimekta.config.ConfigWatcher.ConfigEntry
 
hashCode() - Method in class net.morimekta.config.Secret
 

I

identifier - Variable in class net.morimekta.config.ConfigWatcher.ConfigEntry
 

L

load(Path) - Method in class net.morimekta.config.ConfigSupplier
Load config from file and store the result as the supplied config.
loadAndMonitor(Path) - Method in class net.morimekta.config.ConfigSupplier
Load config from file, store the result as the supplied config and start monitoring the actual file for updates.
loadAndMonitorUnchecked(Path) - Method in class net.morimekta.config.ConfigSupplier
Load config from file, store the result as the supplied config and start monitoring the actual file for updates.
loadUnchecked(Path) - Method in class net.morimekta.config.ConfigSupplier
Load config from file and store the result as the supplied config.
lowercase() - Method in enum net.morimekta.config.ConfigChangeType
One of 'created', 'modified' or 'deleted'.

M

MODIFIED - net.morimekta.config.ConfigChangeType
The config entry has been modified from a previously known state.

N

net.morimekta.config - module net.morimekta.config
Utils : Config
net.morimekta.config - package net.morimekta.config
 
net.morimekta.config.readers - package net.morimekta.config.readers
 

O

OK - net.morimekta.config.ConfigEventListener.Status
The operation succeeded.
onConfigChange(ConfigChangeType, ConfigEntry) - Method in interface net.morimekta.config.ConfigChangeListener
Called on changes to config.
onConfigFileRead(FileEvent, Path, ConfigEventListener.Status) - Method in interface net.morimekta.config.ConfigEventListener
Called when the config file events are triggered.
onConfigFileUpdate(ConfigChangeType, Path, String, ConfigEventListener.Status) - Method in interface net.morimekta.config.ConfigEventListener
Called on listeners whenever the content of a config is changed.
onSecretChange(Secret) - Method in interface net.morimekta.config.SecretListener
Called when the secret changes.

P

PARSE_FAILED - net.morimekta.config.ConfigEventListener.Status
Parsing a config file failed.
ProvidedConfigReaderSupplier<ConfigType> - Class in net.morimekta.config.readers
Get config readers from the providers providing ConfigReaders.
ProvidedConfigReaderSupplier(Class<ConfigType>) - Constructor for class net.morimekta.config.readers.ProvidedConfigReaderSupplier
Makea config reader service to provide readers for the specific type.

R

READ_FAILED - net.morimekta.config.ConfigEventListener.Status
Reading a config file failed.
readConfig(Path) - Method in interface net.morimekta.config.readers.ConfigReader
 
readConfig(Path) - Method in class net.morimekta.config.readers.YamlConfigReader
 
removeListener(SecretListener) - Method in class net.morimekta.config.Secret
Remove a listener for secret changes.

S

Secret - Class in net.morimekta.config
Keeps a secret.
Secret(String, boolean, Binary) - Constructor for class net.morimekta.config.Secret
Create a secret.
Secret.SecretDeserializer - Class in net.morimekta.config
 
SecretDeserializer() - Constructor for class net.morimekta.config.Secret.SecretDeserializer
 
SecretListener - Interface in net.morimekta.config
Listen to changes in secrets.
SecretManagerDeserializer() - Constructor for class net.morimekta.config.SecretsManager.SecretManagerDeserializer
 
SecretsConfig() - Constructor for class net.morimekta.config.SecretsManager.SecretsConfig
 
SecretsManager - Class in net.morimekta.config
A class managing secrets as read from files in a single directory.
SecretsManager(Path) - Constructor for class net.morimekta.config.SecretsManager
 
SecretsManager(Path, FileWatcher) - Constructor for class net.morimekta.config.SecretsManager
 
SecretsManager.SecretManagerDeserializer - Class in net.morimekta.config
A deserializer for secrets manager to make it easy to include the manager in a standard jackson-parsed config file (JSON or YAML).
SecretsManager.SecretsConfig - Class in net.morimekta.config
Simple configuration of the secrets manager as an object.
setSecret(Binary) - Method in class net.morimekta.config.Secret
Set the secret to a new value.
start() - Method in class net.morimekta.config.ConfigWatcher
Start the NetworkConfigWatcher and throw exception if unable to read and update config.

T

throwIfPresent() - Method in class net.morimekta.config.ConfigExceptionBuffer
Throw the accumulated exception, if it has an exception.
toString() - Method in class net.morimekta.config.ConfigSupplier
 
toString() - Method in class net.morimekta.config.ConfigWatcher.ConfigEntry
 
toString() - Method in class net.morimekta.config.ConfigWatcher
 
toString() - Method in class net.morimekta.config.Secret
 
toString() - Method in class net.morimekta.config.SecretsManager
 

U

UncheckedConfigException - Exception in net.morimekta.config
A runtime / unchecked variant of ConfigException.
UncheckedConfigException(ConfigException) - Constructor for exception net.morimekta.config.UncheckedConfigException
Create an unchecked config exception
update(Exception) - Method in class net.morimekta.config.ConfigExceptionBuffer
Add exception to the buffer.
updatedAt - Variable in class net.morimekta.config.ConfigWatcher.ConfigEntry
 

V

valueOf(String) - Static method in enum net.morimekta.config.ConfigChangeType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.morimekta.config.ConfigEventListener.Status
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.morimekta.config.ConfigChangeType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.morimekta.config.ConfigEventListener.Status
Returns an array containing the constants of this enum type, in the order they are declared.

Y

yamlConfig(Class<ConfigType>) - Static method in class net.morimekta.config.ConfigSupplier
Load config as YAML, just using available jackson modules.
yamlConfig(Class<ConfigType>, Path, Consumer<ObjectMapper>) - Static method in class net.morimekta.config.ConfigSupplier
Load config as YAML.
yamlConfig(Class<ConfigType>, Consumer<ObjectMapper>) - Static method in class net.morimekta.config.ConfigSupplier
Load config as YAML.
YamlConfigReader<ConfigType> - Class in net.morimekta.config.readers
Read config as YAML.
YamlConfigReader(Class<ConfigType>) - Constructor for class net.morimekta.config.readers.YamlConfigReader
 
YamlConfigReader(Class<ConfigType>, Consumer<ObjectMapper>) - Constructor for class net.morimekta.config.readers.YamlConfigReader
 
YamlConfigReaderProvider - Class in net.morimekta.config.readers
Provide config readers for YAML files.
YamlConfigReaderProvider() - Constructor for class net.morimekta.config.readers.YamlConfigReaderProvider
 
A C D E F G H I L M N O P R S T U V Y 
All Classes All Packages