-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1569 | Introduced RawSchemaAdminClient interface, which provides met…
…hods to read and modify the schema. Modified RawSchemaClient to provide only read methods.
- Loading branch information
1 parent
f8fa305
commit 23b4ba8
Showing
19 changed files
with
355 additions
and
307 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
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
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
32 changes: 32 additions & 0 deletions
32
...in/java/pl/allegro/tech/hermes/common/schema/ReadMetricsTrackingRawSchemaAdminClient.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,32 @@ | ||
package pl.allegro.tech.hermes.common.schema; | ||
|
||
import pl.allegro.tech.hermes.api.RawSchema; | ||
import pl.allegro.tech.hermes.api.TopicName; | ||
import pl.allegro.tech.hermes.common.metric.MetricsFacade; | ||
import pl.allegro.tech.hermes.schema.RawSchemaAdminClient; | ||
|
||
public class ReadMetricsTrackingRawSchemaAdminClient extends ReadMetricsTrackingRawSchemaClient implements RawSchemaAdminClient { | ||
private final RawSchemaAdminClient rawSchemaAdminClient; | ||
|
||
public ReadMetricsTrackingRawSchemaAdminClient( | ||
RawSchemaAdminClient rawSchemaAdminClient, | ||
MetricsFacade metricsFacade) { | ||
super(metricsFacade, rawSchemaAdminClient); | ||
this.rawSchemaAdminClient = rawSchemaAdminClient; | ||
} | ||
|
||
@Override | ||
public void registerSchema(TopicName topic, RawSchema rawSchema) { | ||
rawSchemaAdminClient.registerSchema(topic, rawSchema); | ||
} | ||
|
||
@Override | ||
public void deleteAllSchemaVersions(TopicName topic) { | ||
rawSchemaAdminClient.deleteAllSchemaVersions(topic); | ||
} | ||
|
||
@Override | ||
public void validateSchema(TopicName topic, RawSchema rawSchema) { | ||
rawSchemaAdminClient.validateSchema(topic, rawSchema); | ||
} | ||
} |
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
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
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
Oops, something went wrong.