jetbrains.buildServer.serverSide
Interface CustomDataStorage


public interface CustomDataStorage

Holds custom data values

Since:
5.1

Method Summary
 void flush()
          Flushes data to disk immediately, otherwise flush is performed automatically with some delay
 java.lang.String getValue(java.lang.String key)
          Returns value stored for the specified key
 java.util.Map<java.lang.String,java.lang.String> getValues()
          Retrieves values from the storage
 void putValue(java.lang.String key, java.lang.String value)
          Puts specified value into the storage
 void putValues(java.util.Map<java.lang.String,java.lang.String> data)
          Puts values into the storage, note that existing data will be completely overwritten.
 

Method Detail

putValues

void putValues(@NotNull
               java.util.Map<java.lang.String,java.lang.String> data)
Puts values into the storage, note that existing data will be completely overwritten.

Parameters:
data - custom data to put into the storage

getValues

@Nullable
java.util.Map<java.lang.String,java.lang.String> getValues()
Retrieves values from the storage

Returns:
custom data map or null if there were no data

getValue

@Nullable
java.lang.String getValue(@NotNull
                                   java.lang.String key)
Returns value stored for the specified key

Parameters:
key - key
Returns:
stored value or null

putValue

void putValue(@NotNull
              java.lang.String key,
              @Nullable
              java.lang.String value)
Puts specified value into the storage

Parameters:
key - key
value - value

flush

void flush()
Flushes data to disk immediately, otherwise flush is performed automatically with some delay