IRecordIdDatabase

This service provides a descriptive name for record IDs.

Get the service

The service is provided by the name database using a getter method.

final IRecordIdDatabase db = nameDb.getRecordIdDatabase();

Store an ID

void putName(@NotNull IId aId,
             @NotNull String aName);

Remove an ID

void removeName(@NotNull IId aId);

Get a name

If the ID does not exist in the map, the ID itself will be returned as String.

@NotNull String getName(@NotNull IId aId);

If the ID does not exist in the map, null is returned.

@Nullable String getNameOrNull(@NotNull IId aId);

Debug support

The logger has the name "de.sillysky.nyssr.impl.namedb.CRecordIdDatabase".

Level INFO:
Output the number of IDs contained.

Level TRACE:
Output of all IDs and their names.

void dump();

nyssr.net - Innovative Distributed System