Class ConfigResourceImpl
- java.lang.Object
-
- io.apicurio.registry.ccompat.rest.impl.AbstractResource
-
- io.apicurio.registry.ccompat.rest.impl.ConfigResourceImpl
-
- All Implemented Interfaces:
ConfigResource
@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
- Author:
- Ales Justin, Jakub Senko 'jsenko@redhat.com'
-
-
Field Summary
-
Fields inherited from class io.apicurio.registry.ccompat.rest.impl.AbstractResource
log
-
-
Constructor Summary
Constructors Constructor Description ConfigResourceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompatibilityLevelParamDto
getGlobalCompatibilityLevel()
Get global compatibility level.CompatibilityLevelParamDto
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.
-
-
-
Method Detail
-
getGlobalCompatibilityLevel
public CompatibilityLevelParamDto getGlobalCompatibilityLevel()
Description copied from interface:ConfigResource
Get global compatibility level. Response: - compatibility (string) – Global compatibility level. Will be one of BACKWARD, BACKWARD_TRANSITIVE, FORWARD, FORWARD_TRANSITIVE, FULL, FULL_TRANSITIVE, NONE Status Codes: 500 Internal Server Error Error code 50001 – Error in the backend data store- Specified by:
getGlobalCompatibilityLevel
in interfaceConfigResource
-
updateGlobalCompatibilityLevel
public CompatibilityLevelDto updateGlobalCompatibilityLevel(CompatibilityLevelDto request)
Description copied from interface:ConfigResource
Update global compatibility level. Request: - compatibility (string) – New global compatibility level. 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- Specified by:
updateGlobalCompatibilityLevel
in interfaceConfigResource
-
updateSubjectCompatibilityLevel
public CompatibilityLevelDto updateSubjectCompatibilityLevel(String subject, CompatibilityLevelDto request)
Description copied from interface:ConfigResource
Update compatibility level for the specified subject.- Specified by:
updateSubjectCompatibilityLevel
in interfaceConfigResource
- Parameters:
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 primary
-
getSubjectCompatibilityLevel
public CompatibilityLevelParamDto getSubjectCompatibilityLevel(String subject)
Description copied from interface:ConfigResource
Get compatibility level for a subject.- Specified by:
getSubjectCompatibilityLevel
in interfaceConfigResource
- Parameters:
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 store
-
-