Class 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'
    • Constructor Detail

      • ConfigResourceImpl

        public ConfigResourceImpl()
    • 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 interface ConfigResource
      • 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 interface ConfigResource
      • updateSubjectCompatibilityLevel

        public CompatibilityLevelDto updateSubjectCompatibilityLevel​(String subject,
                                                                     CompatibilityLevelDto request)
        Description copied from interface: ConfigResource
        Update compatibility level for the specified subject.
        Specified by:
        updateSubjectCompatibilityLevel in interface ConfigResource
        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 interface ConfigResource
        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