-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
support metrics-only mode in ResponsiveKafkaStreams (#189)
- responsive-test-utils-0.38.0
- responsive-test-utils-0.37.0
- responsive-test-utils-0.36.0
- responsive-test-utils-0.35.0
- responsive-test-utils-0.34.0
- responsive-test-utils-0.33.0
- responsive-test-utils-0.32.0
- responsive-test-utils-0.31.0
- responsive-test-utils-0.30.0
- responsive-test-utils-0.29.0
- responsive-test-utils-0.28.0
- responsive-test-utils-0.27.0
- responsive-test-utils-0.26.0
- responsive-test-utils-0.25.0
- responsive-test-utils-0.24.0
- responsive-test-utils-0.23.0
- responsive-test-utils-0.22.0
- responsive-test-utils-0.21.0
- responsive-test-utils-0.20.0
- responsive-test-utils-0.19.0
- responsive-test-utils-0.18.0
- responsive-test-utils-0.17.0
- responsive-test-utils-0.16.0
- responsive-test-utils-0.15.0
- responsive-spring-0.37.0
- responsive-spring-0.36.0
- responsive-spring-0.35.0
- responsive-spring-0.34.0
- responsive-spring-0.33.0
- responsive-spring-0.32.0
- responsive-spring-0.31.0
- responsive-spring-0.30.0
- responsive-spring-0.29.0
- operator-0.16.0-alpha
- operator-0.15.0
- operator-0.15.0-alpha
- operator-0.14.0
- operator-0.14.0-alpha
- operator-0.13.0
- operator-0.13.0-alpha
- operator-0.12.0
- operator-0.12.0-alpha
- operator-0.11.0
- operator-0.11.0-alpha
- operator-0.10.0
- kafka-client-0.39.0-alpha
- kafka-client-0.38.0
- kafka-client-0.38.0-alpha
- kafka-client-0.37.0
- kafka-client-0.37.0-alpha
- kafka-client-0.36.0
- kafka-client-0.36.0-alpha
- kafka-client-0.35.0
- kafka-client-0.35.0-alpha
- kafka-client-0.34.0
- kafka-client-0.34.0-alpha
- kafka-client-0.33.0
- kafka-client-0.33.0-alpha
- kafka-client-0.32.0
- kafka-client-0.32.0-alpha
- kafka-client-0.31.0
- kafka-client-0.31.0-alpha
- kafka-client-0.30.0
- kafka-client-0.30.0-alpha
- kafka-client-0.29.0
- kafka-client-0.29.0-alpha
- kafka-client-0.28.0
- kafka-client-0.28.0-alpha
- kafka-client-0.27.0
- kafka-client-0.27.0-alpha
- kafka-client-0.26.0
- kafka-client-0.26.0-alpha
- kafka-client-0.25.0
- kafka-client-0.25.0-alpha
- kafka-client-0.24.0
- kafka-client-0.24.0-alpha
- kafka-client-0.23.0
- kafka-client-0.23.0-alpha
- kafka-client-0.22.0
- kafka-client-0.22.0-alpha
- kafka-client-0.21.0
- kafka-client-0.21.0-alpha
- kafka-client-0.20.0
- kafka-client-0.20.0-alpha
- kafka-client-0.19.0
- kafka-client-0.19.0-alpha
- kafka-client-0.18.0
- kafka-client-0.18.0-alpha
- kafka-client-0.17.0
- kafka-client-0.16.0
- kafka-client-0.16.0-alpha
- kafka-client-0.15.0
- controller-api-0.19.0-alpha
- controller-api-0.18.0
- controller-api-0.18.0-alpha
- controller-api-0.17.0
- controller-api-0.17.0-alpha
- controller-api-0.16.0
- controller-api-0.16.0-alpha
- controller-api-0.15.0
- controller-api-0.15.0-alpha
- controller-api-0.14.0
Showing
9 changed files
with
406 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
kafka-client/src/main/java/dev/responsive/kafka/api/config/CompatibilityMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2023 Responsive Computing, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package dev.responsive.kafka.api.config; | ||
|
||
import java.util.Arrays; | ||
|
||
public enum CompatibilityMode { | ||
|
||
FULL, | ||
METRICS_ONLY; | ||
|
||
public static String[] names() { | ||
return Arrays.stream(values()).map(Enum::name).toArray(String[]::new); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
kafka-client/src/main/java/dev/responsive/kafka/internal/config/ConfigUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright 2023 Responsive Computing, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package dev.responsive.kafka.internal.config; | ||
|
||
import dev.responsive.kafka.api.config.CompatibilityMode; | ||
import dev.responsive.kafka.api.config.ResponsiveConfig; | ||
import dev.responsive.kafka.api.config.StorageBackend; | ||
import java.util.Locale; | ||
|
||
/** | ||
* Internal utility to make it easier to extract some values from {@link ResponsiveConfig} | ||
* without making those methods part of our public API. | ||
* | ||
* @implNote please keep this in the {@code .internal} package | ||
*/ | ||
public class ConfigUtils { | ||
|
||
private ConfigUtils() { | ||
/* Empty constructor for public class */ | ||
} | ||
|
||
public static StorageBackend storageBackend(final ResponsiveConfig config) { | ||
final var backend = config | ||
.getString(ResponsiveConfig.STORAGE_BACKEND_TYPE_CONFIG) | ||
.toUpperCase(Locale.ROOT); | ||
|
||
return StorageBackend.valueOf(backend); | ||
} | ||
|
||
public static CompatibilityMode compatibilityMode(final ResponsiveConfig config) { | ||
final var backend = config | ||
.getString(ResponsiveConfig.COMPATIBILITY_MODE_CONFIG) | ||
.toUpperCase(Locale.ROOT); | ||
|
||
return CompatibilityMode.valueOf(backend); | ||
} | ||
|
||
} |
Oops, something went wrong.