-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kindrat
committed
Nov 14, 2015
1 parent
b007725
commit ac9d5e6
Showing
8 changed files
with
51 additions
and
7 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
6 changes: 3 additions & 3 deletions
6
src/main/java/com/github/nginate/kafka/core/ClusterMetadata.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
2 changes: 1 addition & 1 deletion
2
...hub/nginate/kafka/protocol/KafkaNode.java → ...m/github/nginate/kafka/dto/KafkaNode.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
2 changes: 1 addition & 1 deletion
2
...hub/nginate/kafka/protocol/Partition.java → ...m/github/nginate/kafka/dto/Partition.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
2 changes: 1 addition & 1 deletion
2
...ginate/kafka/protocol/TopicPartition.java → ...hub/nginate/kafka/dto/TopicPartition.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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/github/nginate/kafka/exceptions/ApiException.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,13 @@ | ||
package com.github.nginate.kafka.exceptions; | ||
|
||
public class ApiException extends KafkaException { | ||
private static final long serialVersionUID = 2342116151549303556L; | ||
|
||
public ApiException(String message) { | ||
super(message); | ||
} | ||
|
||
public ApiException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/github/nginate/kafka/protocol/ApiKeys.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,26 @@ | ||
package com.github.nginate.kafka.protocol; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum ApiKeys { | ||
PRODUCE(0, "produce"), | ||
FETCH(1, "fetch"), | ||
LIST_OFFSETS(2, "list_offsets"), | ||
METADATA(3, "metadata"), | ||
LEADER_AND_ISR(4, "leader_and_isr"), | ||
STOP_REPLICA(5, "stop_replica"), | ||
OFFSET_COMMIT(8, "offset_commit"), | ||
OFFSET_FETCH(9, "offset_fetch"), | ||
CONSUMER_METADATA(10, "consumer_metadata"), | ||
JOIN_GROUP(11, "join_group"), | ||
HEARTBEAT(12, "heartbeat"); | ||
|
||
/** the perminant and immutable id of an API--this can't change ever */ | ||
private final int id; | ||
/** an english description of the api--this is for debugging and can change */ | ||
private final String name; | ||
|
||
} |
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,5 @@ | ||
package com.github.nginate.kafka.protocol; | ||
|
||
public enum Type { | ||
INT8, INT16, INT32, INT64, STRING, BYTES | ||
} |