Class MetadataUtils
java.lang.Object
io.confluent.kafka.schemaregistry.validator.licensing.MetadataUtils
Utility class for retrieving metadata from SchemaRegistryClient instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<LocalV1License> getLicenses(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient client) Get license information from a SchemaRegistryClient.static SchemaRegistryMetadatagetMetadata(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient client) Get metadata from a SchemaRegistryClient.static StringgetVersion(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient client) Get version string from a SchemaRegistryClient.
-
Constructor Details
-
MetadataUtils
public MetadataUtils()
-
-
Method Details
-
getMetadata
public static SchemaRegistryMetadata getMetadata(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient client) Get metadata from a SchemaRegistryClient.- Parameters:
client- SchemaRegistryClient to query- Returns:
- SchemaRegistryMetadata containing license and version information
-
getLicenses
public static List<LocalV1License> getLicenses(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient client) Get license information from a SchemaRegistryClient.- Parameters:
client- SchemaRegistryClient to query- Returns:
- List of LocalV1License containing license and deployment information
-
getVersion
public static String getVersion(io.confluent.kafka.schemaregistry.client.SchemaRegistryClient client) Get version string from a SchemaRegistryClient.- Parameters:
client- SchemaRegistryClient to query- Returns:
- Version string, or null if unable to determine
-