Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): add Java Client for Azkarra
This commit adds a new module azkarra-client containing a java client for Azkarra generated from openapi specification
- Loading branch information
1 parent
21ffbc0
commit eed9aa9
Showing
47 changed files
with
1,751 additions
and
327 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.gitignore | ||
.travis.yml | ||
*gradle* | ||
*sbt* | ||
**/gradle | ||
git_push.sh | ||
README.md | ||
pom.xml | ||
**/AndroidManifest.xml |
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,83 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Azkarra | ||
version: ${project.version} | ||
servers: | ||
- url: / | ||
paths: | ||
/version: | ||
get: | ||
description: get the API current version | ||
operationId: getCurrentVersion | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Version' | ||
description: version of Azkarra | ||
tags: | ||
- azkarra_version | ||
x-accepts: application/json | ||
x-contentType: application/json | ||
/api/v1/streams: | ||
$ref: "./paths/streams.getAllStreamsInstanceIds.yaml" | ||
/api/v1/streams/{containerId}: | ||
$ref: "./paths/streams.getStreamsInstanceDetails.yaml" | ||
/api/v1/streams/{containerId}/stop: | ||
$ref: "./paths/streams.postStreamsInstanceStop.yaml" | ||
/api/v1/streams/{containerId}/restart: | ||
$ref: "./paths/streams.postStreamsInstanceRestart.yaml" | ||
/api/v1/streams/{containerId}/status: | ||
$ref: "./paths/streams.getStreamsInstanceStatus.yaml" | ||
/api/v1/streams/{containerId}/config: | ||
$ref: "./paths/streams.getStreamsInstanceConfig.yaml" | ||
/api/v1/streams/{containerId}/offsets: | ||
$ref: "./paths/streams.getStreamsInstanceConsumerOffsets.yaml" | ||
/api/v1/streams/{containerId}/topology: | ||
$ref: "./paths/streams.getStreamsInstanceTopology.yaml" | ||
/api/v1/streams/{containerId}/metadata: | ||
$ref: "./paths/streams.getStreamsInstanceMetadata.yaml" | ||
/api/v1/streams/{containerId}/store-offsets: | ||
$ref: "./paths/streams.getStreamsInstanceStoreOffsets.yaml" | ||
/api/v1/streams/{containerId}/metrics: | ||
$ref: "./paths/streams.getStreamsInstanceMetrics.yaml" | ||
/api/v1/streams/{containerId}/metrics/group/{group}: | ||
$ref: "./paths/streams.getStreamsInstanceMetricsByGroup.yaml" | ||
/api/v1/streams/{containerId}/metrics/group/{group}/name/{name}: | ||
$ref: "./paths/streams.getStreamsInstanceMetricsByGroupAndName.yaml" | ||
/api/v1/streams/{containerId}/metrics/group/{group}/name/{name}/value: | ||
$ref: "./paths/streams.getStreamsInstanceMetricValue.yaml" | ||
/api/v1/applications: | ||
$ref: "./paths/applications.getAllKafkaStreamsApplicationIds.yaml" | ||
/api/v1/applications/{applicationId}/stores/{storeName}: | ||
$ref: "./paths/applications.postQueryStateStore.yaml" | ||
components: | ||
schemas: | ||
Version: | ||
properties: | ||
azkarraVersion: | ||
description: Version of Azkarra Framework | ||
type: string | ||
commitId: | ||
description: Commit id of Azkarra Framework | ||
type: string | ||
branch: | ||
description: Branch of Azkarra Framework | ||
type: string | ||
v1.TopicPartition: | ||
properties: | ||
topic: | ||
description: The name of the topic | ||
type: string | ||
partition: | ||
description: The partition of the topic | ||
type: integer | ||
required: | ||
- topic | ||
- partition | ||
securitySchemes: | ||
basicAuth: | ||
scheme: basic | ||
type: http | ||
|
22 changes: 22 additions & 0 deletions
22
azkarra-client/api/paths/applications.getAllKafkaStreamsApplicationIds.yaml
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,22 @@ | ||
get: | ||
description: list all ids for the Kafka Streams applications for which at least one instance | ||
is currently running. application | ||
operationId: listKafkaStreamsApplicationIds | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
items: | ||
type: string | ||
type: array | ||
description: Array of Kafka Streams application ids | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json | ||
x-contentType: application/json |
44 changes: 44 additions & 0 deletions
44
azkarra-client/api/paths/applications.postQueryStateStore.yaml
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,44 @@ | ||
post: | ||
description: Query a Kafka Streams state store, also known as executing an 'Interactive | ||
Query'. | ||
operationId: queryStateStore | ||
parameters: | ||
- description: identifier of the KafkaStreams application, also known as the | ||
'application.id' | ||
explode: false | ||
in: path | ||
name: applicationId | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
- description: name of the state store to query | ||
explode: false | ||
in: path | ||
name: storeName | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/applications.query.v1.yaml#/v1.Query' | ||
required: true | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/applications.query.v1.yaml#/v1.QueryResult' | ||
description: OK | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json | ||
x-contentType: application/json |
22 changes: 22 additions & 0 deletions
22
azkarra-client/api/paths/streams.getAllStreamsInstanceIds.yaml
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,22 @@ | ||
get: | ||
description: list the KafkaStreams instances currently active on the local Azkarra | ||
application | ||
operationId: listStreamsInstanceIds | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
items: | ||
type: string | ||
type: array | ||
description: Array of Kafka Streams instance ids | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json | ||
x-contentType: application/json |
28 changes: 28 additions & 0 deletions
28
azkarra-client/api/paths/streams.getStreamsInstanceConfig.yaml
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,28 @@ | ||
get: | ||
description: get the configuration of the KafkaStreams instance | ||
operationId: getStreamsInstanceConfig | ||
parameters: | ||
- description: identifier of the KafkaStreams instance, also known as the 'containerId.id' | ||
explode: false | ||
in: path | ||
name: containerId | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
additionalProperties: true | ||
type: object | ||
description: OK | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json |
27 changes: 27 additions & 0 deletions
27
azkarra-client/api/paths/streams.getStreamsInstanceConsumerOffsets.yaml
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,27 @@ | ||
get: | ||
description: get the offset posititions for the consumers of the Kafka Streams instance | ||
operationId: getStreamsInstanceConsumerOffsets | ||
parameters: | ||
- description: identifier of the KafkaStreams instance, also known as the 'container.id' | ||
explode: false | ||
in: path | ||
name: containerId | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/streams.offsets.v1.yaml#/v1.StreamsConsumerGroupOffsets' | ||
description: OK | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json |
28 changes: 28 additions & 0 deletions
28
azkarra-client/api/paths/streams.getStreamsInstanceDetails.yaml
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,28 @@ | ||
get: | ||
description: get details about a Kafka Streams instance | ||
operationId: getStreamsInstanceDetails | ||
parameters: | ||
- description: identifier of the KafkaStreams instance, also known as the 'container.id' | ||
explode: false | ||
in: path | ||
name: containerId | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/streams.details.v1.yaml#/v1.StreamsDetails' | ||
description: OK | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json | ||
x-contentType: application/json |
29 changes: 29 additions & 0 deletions
29
azkarra-client/api/paths/streams.getStreamsInstanceMetadata.yaml
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,29 @@ | ||
get: | ||
description: list the KafkaStreams instances currently active on the local Azkarra | ||
application | ||
operationId: getStreamsInstanceMetadata | ||
parameters: | ||
- description: identifier of the KafkaStreams instance, also known as the 'container.id' | ||
explode: false | ||
in: path | ||
name: containerId | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/streams.metadata.v1.yaml#/v1.StreamsMetadata' | ||
description: OK | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json | ||
x-contentType: application/json |
45 changes: 45 additions & 0 deletions
45
azkarra-client/api/paths/streams.getStreamsInstanceMetricValue.yaml
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,45 @@ | ||
get: | ||
description: get the current metric value for the streams application, metric | ||
group and name | ||
operationId: getStreamsInstanceMetricValue | ||
parameters: | ||
- description: identifier of the KafkaStreams instance, also known as the 'container.id' | ||
explode: false | ||
in: path | ||
name: containerId | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
- description: name of the group | ||
explode: false | ||
in: path | ||
name: group | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
- description: name of the metric | ||
explode: false | ||
in: path | ||
name: name | ||
required: true | ||
schema: | ||
type: string | ||
style: simple | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
description: OK | ||
"401": | ||
content: {} | ||
description: Unauthorized | ||
security: | ||
- basicAuth: [] | ||
tags: | ||
- azkarra_v1 | ||
x-accepts: application/json | ||
x-contentType: application/json |
Oops, something went wrong.