Package org.togglz.spring.boot.actuate
Class TogglzEndpoint
java.lang.Object
org.togglz.spring.boot.actuate.AbstractTogglzEndpoint
org.togglz.spring.boot.actuate.TogglzEndpoint
Spring Boot 2+
Endpoint to expose Togglz info as an actuator endpoint.
This endpoint is exposed as Spring Boot Actuator endpoint. It allows the user to get an overview of
all available toggles without adding the togglz-console dependency.
The user can also read the state of specific toggles and even enable or disable specific toggles.- Author:
- Rui Figueira
-
Field Summary
Fields inherited from class org.togglz.spring.boot.actuate.AbstractTogglzEndpoint
featureManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFeature(String name) setFeatureState(String name, Boolean enabled, String strategy, String parameters) Allows to change the state of toggles via http post.Methods inherited from class org.togglz.spring.boot.actuate.AbstractTogglzEndpoint
changeFeatureStatus, findFeature, generateTogglzFeature, parseParameterMap
-
Constructor Details
-
TogglzEndpoint
public TogglzEndpoint(org.togglz.core.manager.FeatureManager featureManager)
-
-
Method Details
-
getAllFeatures
-
getFeature
-
setFeatureState
@WriteOperation public TogglzFeature setFeatureState(@Selector String name, @Nullable Boolean enabled, @Nullable String strategy, @Nullable String parameters) Allows to change the state of toggles via http post.- Parameters:
name- the name of the toggle/featureenabled- the name of the field containing the toggle/feature statusstrategy- the ID of the activation strategy to useparameters- activation strategy parameters as comma separated list of key=value pairs
-