Class SettingsMapImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.SettingsMapImpl
-
- All Implemented Interfaces:
EventListener,ChangeListener,SettingsMap
public class SettingsMapImpl extends Object implements SettingsMap, ChangeListener
- Since:
- 7.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description SettingsMapImpl(File storageFile, FileWatcherFactory fileWatcherFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeOccured(String requestor)Method is called when a change was occurred.StringgetValue(String key)Returns the value for thekey, ornullif there is no one.Stringremove(String key)Removes and persists the entry associated with thekey.voidsetValue(String key, String value)Sets and persists thekey/valueentry.
-
-
-
Constructor Detail
-
SettingsMapImpl
public SettingsMapImpl(@NotNull File storageFile, @NotNull FileWatcherFactory fileWatcherFactory)
-
-
Method Detail
-
getValue
public String getValue(@NotNull String key)
Description copied from interface:SettingsMapReturns the value for thekey, ornullif there is no one. The call may require the I/O operations, so can be potentially slow.- Specified by:
getValuein interfaceSettingsMap- Parameters:
key- the key- Returns:
- the value, or null
-
setValue
public void setValue(@NotNull String key, @NotNull String value)Description copied from interface:SettingsMapSets and persists thekey/valueentry. The call requires the I/O operations, hence can be slow.- Specified by:
setValuein interfaceSettingsMap- Parameters:
key- the keyvalue- the value
-
remove
public String remove(@NotNull String key)
Description copied from interface:SettingsMapRemoves and persists the entry associated with thekey. The call requires the I/O operations, hence can be slow.- Specified by:
removein interfaceSettingsMap- Parameters:
key- the key- Returns:
- the previous value associated with the key, or null
-
changeOccured
public void changeOccured(String requestor)
Description copied from interface:ChangeListenerMethod is called when a change was occurred.- Specified by:
changeOccuredin interfaceChangeListener- Parameters:
requestor- source of the change, same asChangeProvider.getRequestor()
-
-