Skip to content

Commit

Permalink
fixes #195 update pom.xml, values.yml and handler.yml for cache admin…
Browse files Browse the repository at this point in the history
… endpoint (#196)
  • Loading branch information
stevehu authored Jun 18, 2024
1 parent 4445298 commit e06023c
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/client-gateway/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/client-proxy-market/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/client-proxy-transform/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/light-portal/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/local/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/metrics-test/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/server-gateway/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/server-proxy-petstore/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions config/shared-gateway/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@
<artifactId>caffeine-cache</artifactId>
<version>${version.light-4j}</version>
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>cache-explorer</artifactId>
<version>${version.light-4j}</version>
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>stateless-auth</artifactId>
Expand Down
1 change: 1 addition & 0 deletions product/external-access-point/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ handler.handlers:
# Framework endpoint handlers
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions product/light-balancer/config/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ handler.handlers:
# Control Pane middleware handlers and API handler
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions product/light-proxy-client/config1/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions product/light-proxy-client/config2/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
1 change: 1 addition & 0 deletions product/light-proxy-server/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/config/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ paths:
- admin
- shutdown

- path: '/adm/cache/{name}'
method: 'get'
exec:
- admin
- cache

- path: '/adm/chaosmonkey'
method: 'get'
exec:
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/config/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ handler.handlers:
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.networknt.cache.CacheExplorerHandler@cache
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
Expand Down

0 comments on commit e06023c

Please sign in to comment.