@Counted(name="rest_request_count", description="Total number of REST requests.", tags={"group=REST","metric=rest_request_count"}) @ConcurrentGauge(name="concurrent_request_count", description="Number of concurrent REST requests.", tags={"group=REST","metric=concurrent_request_count"}) @Timed(name="rest_response_time", description="Time of a request-response interval.", tags={"group=REST","metric=rest_response_time"}, unit="milliseconds") public class ConfigResourceImpl extends AbstractResource implements ConfigResource
log
Constructor and Description |
---|
ConfigResourceImpl() |
Modifier and Type | Method and Description |
---|---|
CompatibilityLevelDto |
getGlobalCompatibilityLevel()
Get global compatibility level.
|
CompatibilityLevelDto |
getSubjectCompatibilityLevel(String subject)
Get compatibility level for a subject.
|
CompatibilityLevelDto |
updateGlobalCompatibilityLevel(CompatibilityLevelDto request)
Update global compatibility level.
|
CompatibilityLevelDto |
updateSubjectCompatibilityLevel(String subject,
CompatibilityLevelDto request)
Update compatibility level for the specified subject.
|
public CompatibilityLevelDto getGlobalCompatibilityLevel()
ConfigResource
getGlobalCompatibilityLevel
in interface ConfigResource
public CompatibilityLevelDto updateGlobalCompatibilityLevel(CompatibilityLevelDto request)
ConfigResource
updateGlobalCompatibilityLevel
in interface ConfigResource
public CompatibilityLevelDto updateSubjectCompatibilityLevel(String subject, CompatibilityLevelDto request)
ConfigResource
updateSubjectCompatibilityLevel
in interface ConfigResource
subject
- (string) – Name of the subject
Request:
- compatibility (string) – New compatibility level for the subject. Must be one of
BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE
Status Codes:
422 Unprocessable Entity –
Error code 42203 – Invalid compatibility level
500 Internal Server Error –
Error code 50001 – Error in the backend data store
Error code 50003 – Error while forwarding the request to the primarypublic CompatibilityLevelDto getSubjectCompatibilityLevel(String subject)
ConfigResource
getSubjectCompatibilityLevel
in interface ConfigResource
subject
- (string) – Name of the subject
Request:
- compatibility (string) – Compatibility level for the subject. Will be one of
BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE
Status Codes:
404 Not Found – Subject not found
500 Internal Server Error –
Error code 50001 – Error in the backend data storeCopyright © 2020 Red Hat. All rights reserved.