public class ConfigUpdatedEvent
extends java.lang.Object
GerritServerConfigReloader
and forwarded to callers
implementing GerritConfigListener
.
The event intends to:
1. Help the callers figure out if any action should be taken, depending on which entries are updated in gerrit.config.
2. Provide the callers with a mechanism to accept/reject the entries of interest: @see
accept(Set
Modifier and Type | Class and Description |
---|---|
static class |
ConfigUpdatedEvent.ConfigEntryType |
static class |
ConfigUpdatedEvent.ConfigUpdateEntry |
static class |
ConfigUpdatedEvent.Update
One Accepted/Rejected Update have one or more config updates (ConfigUpdateEntry) tied to it.
|
static class |
ConfigUpdatedEvent.UpdateResult |
Constructor and Description |
---|
ConfigUpdatedEvent(org.eclipse.jgit.lib.Config oldConfig,
org.eclipse.jgit.lib.Config newConfig) |
Modifier and Type | Method and Description |
---|---|
ConfigUpdatedEvent.Update |
accept(ConfigKey entry) |
ConfigUpdatedEvent.Update |
accept(java.util.Set<ConfigKey> entries) |
ConfigUpdatedEvent.Update |
accept(java.lang.String section) |
org.eclipse.jgit.lib.Config |
getNewConfig() |
org.eclipse.jgit.lib.Config |
getOldConfig() |
boolean |
isEntriesUpdated(java.util.Set<ConfigKey> entries) |
boolean |
isSectionUpdated(java.lang.String section) |
boolean |
isValueUpdated(ConfigKey key) |
boolean |
isValueUpdated(java.lang.String section,
java.lang.String name) |
boolean |
isValueUpdated(java.lang.String section,
java.lang.String subsection,
java.lang.String name) |
ConfigUpdatedEvent.Update |
reject(ConfigKey entry) |
ConfigUpdatedEvent.Update |
reject(java.util.Set<ConfigKey> entries) |
public ConfigUpdatedEvent(org.eclipse.jgit.lib.Config oldConfig, org.eclipse.jgit.lib.Config newConfig)
public org.eclipse.jgit.lib.Config getOldConfig()
public org.eclipse.jgit.lib.Config getNewConfig()
public ConfigUpdatedEvent.Update accept(ConfigKey entry)
public ConfigUpdatedEvent.Update accept(java.util.Set<ConfigKey> entries)
public ConfigUpdatedEvent.Update accept(java.lang.String section)
public ConfigUpdatedEvent.Update reject(ConfigKey entry)
public ConfigUpdatedEvent.Update reject(java.util.Set<ConfigKey> entries)
public boolean isSectionUpdated(java.lang.String section)
public boolean isValueUpdated(java.lang.String section, java.lang.String subsection, java.lang.String name)
public boolean isValueUpdated(ConfigKey key)
public boolean isValueUpdated(java.lang.String section, java.lang.String name)
public boolean isEntriesUpdated(java.util.Set<ConfigKey> entries)