gerrit/gerrit-cache-h2
Edwin Kempin 42c9cf61c8 Add REST endpoint to list caches
GET /config/server/caches/ lists the server caches. Caches defined by
plugins are included.

The implementation of the SSH show-caches was adapted so that it uses
the new REST endpoint to get the information about the caches. This
avoids code duplication.

For disk caches a new interface was introduced in gerrit-server. This
is done because the list caches REST endpoint needs extra information
for disk caches which can only be provided by the disk cache, aka
H2CacheImpl. H2CacheImpl is defined in gerrit-cache-h2, but
gerrit-server doesn't have a dependency on it and hence can't use
instanceof to check whether a cache is a disk cache. Adding this
dependency is not wanted and also not possible (because
gerrit-cache-h2 already depends on gerrit-server and we can't have
cycles in the dependencies).

Change-Id: I21bf6e114310f98051a0a8db01012511f58d4add
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2014-05-28 09:29:12 +02:00
..
src/main/java/com/google/gerrit/server/cache/h2 Add REST endpoint to list caches 2014-05-28 09:29:12 +02:00
BUCK Update buck build for strict dependencies 2013-05-16 01:14:27 +00:00