Skip to content

Commit 5231121

Browse files
authored
fix doclint errors (#46)
1 parent 4326b83 commit 5231121

14 files changed

+59
-9
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Kafka WebView
22

3+
[![Build Status](https://travis-ci.org/SourceLabOrg/kafka-webview.svg?branch=master)](https://travis-ci.org/SourceLabOrg/kafka-webview)
4+
35
This project aims to be a full-featured web-based [Apache Kafka](https://kafka.apache.org/) consumer. **Kafka WebView** presents an easy-to-use web based interface for reading data out of kafka topics and providing basic filtering and searching capabilities.
46

57
### Features

kafka-webview-ui/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@
103103
<artifactId>spring-boot-starter-actuator</artifactId>
104104
</dependency>
105105

106+
<dependency>
107+
<groupId>javax.interceptor</groupId>
108+
<artifactId>javax.interceptor-api</artifactId>
109+
<version>1.2.1</version>
110+
</dependency>
111+
106112
<!-- Allows for auto-reloading resources -->
107113
<dependency>
108114
<groupId>org.springframework.boot</groupId>

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/configuration/PluginConfig.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public class PluginConfig {
4444

4545
/**
4646
* Upload manager, for handling uploads of Plugins and Keystores.
47+
* @param appProperties Definition of app properties.
48+
* @return UploadManager for Plugins
4749
*/
4850
@Bean
4951
public UploadManager getPluginUploadManager(final AppProperties appProperties) {
@@ -52,6 +54,8 @@ public UploadManager getPluginUploadManager(final AppProperties appProperties) {
5254

5355
/**
5456
* PluginFactory for creating instances of Deserializers.
57+
* @param appProperties Definition of app properties.
58+
* @return PluginFactory for Deserializers.
5559
*/
5660
@Bean
5761
public PluginFactory<Deserializer> getDeserializerPluginFactory(final AppProperties appProperties) {
@@ -61,6 +65,8 @@ public PluginFactory<Deserializer> getDeserializerPluginFactory(final AppPropert
6165

6266
/**
6367
* PluginFactory for creating instances of Record Filters.
68+
* @param appProperties Definition of app properties.
69+
* @return PluginFactory for Record Filters.
6470
*/
6571
@Bean
6672
public PluginFactory<RecordFilter> getRecordFilterPluginFactory(final AppProperties appProperties) {
@@ -70,6 +76,8 @@ public PluginFactory<RecordFilter> getRecordFilterPluginFactory(final AppPropert
7076

7177
/**
7278
* For handling secrets, symmetrical encryption.
79+
* @param appProperties Definition of app properties.
80+
* @return SecretManager
7381
*/
7482
@Bean
7583
public SecretManager getSecretManager(final AppProperties appProperties) {
@@ -78,6 +86,8 @@ public SecretManager getSecretManager(final AppProperties appProperties) {
7886

7987
/**
8088
* For creating Kafka Consumers.
89+
* @param appProperties Definition of app properties.
90+
* @return Web Kafka Consumer Factory instance.
8191
*/
8292
@Bean
8393
public WebKafkaConsumerFactory getWebKafkaConsumerFactory(final AppProperties appProperties) {
@@ -91,6 +101,8 @@ public WebKafkaConsumerFactory getWebKafkaConsumerFactory(final AppProperties ap
91101

92102
/**
93103
* For creating Kafka operational consumers.
104+
* @param appProperties Definition of app properties.
105+
* @return Web Kafka Operations Client Factory instance.
94106
*/
95107
@Bean
96108
public KafkaOperationsFactory getKafkaOperationsFactory(final AppProperties appProperties) {

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/configuration/WebSocketConfig.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public PresenceEventListener presenceEventListener(final WebSocketConsumersManag
7171
/**
7272
* This thread runs the WebSocketConsumerManager, which manages any consumers for web sockets.
7373
* It only needs a single thread, because the manager starts up its own managed thread pool.
74+
* @return new ThreadPool Task executor.
7475
*/
7576
@Bean
7677
public TaskExecutor backgroundConsumerExecutor() {
@@ -86,6 +87,11 @@ public TaskExecutor backgroundConsumerExecutor() {
8687

8788
/**
8889
* Manages kafka consumers running in a background processing thread for websocket consumers.
90+
* @param webKafkaConsumerFactory Factory for creating new Consumers
91+
* @param messagingTemplate messaging template instance for passing websocket messages.
92+
* @param backgroundConsumerExecutor The executor to run our manager in.
93+
* @param appProperties defined app properties.
94+
* @return manager instance for web socket consumers.
8995
*/
9096
@Bean
9197
public WebSocketConsumersManager getWebSocketConsumersManager(

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/manager/kafka/SocketKafkaConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private void seekToTimestamp(final long timestamp) {
228228

229229
/**
230230
* Seek to the specified offsets.
231-
* @param partitionOffsetMap Map of PartitionId => Offset to seek to.
231+
* @param partitionOffsetMap Map of PartitionId to Offset to seek to.
232232
* @return ConsumerState representing the consumer's positions.
233233
*/
234234
private void seek(final Map<TopicPartition, Long> partitionOffsetMap) {

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/manager/kafka/WebKafkaConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public KafkaResults consumePerPartition() {
132132

133133
/**
134134
* Seek to the specified offsets.
135-
* @param partitionOffsetMap Map of PartitionId => Offset to seek to.
135+
* @param partitionOffsetMap Map of PartitionId to Offset to seek to.
136136
* @return ConsumerState representing the consumer's positions.
137137
*/
138138
public ConsumerState seek(final Map<Integer, Long> partitionOffsetMap) {

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/manager/socket/StartingPosition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public static StartingPosition newPositionFromTimestamp(final long timestamp) {
148148
}
149149

150150
/**
151-
* @param offsets Maps from Partition => Offset. Any not supplied offsets will resume from HEAD.
151+
* @param offsets Maps from Partition to Offset. Any not supplied offsets will resume from HEAD.
152152
* @return New StartingPosition instance configured to start from the supplied offsets map.
153153
*/
154154
public static StartingPosition newPositionFromOffsets(final Map<Integer, Long> offsets) {

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/manager/socket/WebSocketConsumersManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class WebSocketConsumersManager implements Runnable {
5454
private static final Logger logger = LoggerFactory.getLogger(WebSocketConsumersManager.class);
5555

5656
/**
57-
* Holds a map of ConsumerKey => ConsumerEntry, which is basically a container
57+
* Holds a map of ConsumerKey to ConsumerEntry, which is basically a container
5858
* for the running consumers.
5959
*/
6060
private final Map<ConsumerKey, ConsumerEntry> consumers = new ConcurrentHashMap<>();

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/repository/ClusterRepository.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
public interface ClusterRepository extends CrudRepository<Cluster, Long> {
3636
/**
3737
* Find cluster by name.
38+
* @param name Name of cluster to retrieve.
39+
* @return the Cluster instance, or null if none found.
3840
*/
3941
Cluster findByName(final String name);
4042

4143
/**
4244
* Retrieve all clusters ordered by name.
45+
* @return all clusters ordered by name.
4346
*/
4447
Iterable<Cluster> findAllByOrderByNameAsc();
45-
46-
// @Query(value = "SELECT * FROM location l where l.user_id = :userId order by id desc limit :limit", nativeQuery = true)
47-
// List<Location> findLatest(@Param("userId") final long userId, @Param("limit") final int limit);
4848
}

kafka-webview-ui/src/main/java/org/sourcelab/kafka/webview/ui/repository/FilterRepository.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@
3535
public interface FilterRepository extends CrudRepository<Filter, Long> {
3636
/**
3737
* Retrieve a Filter by the Name field.
38+
* @param name Name of filter to retrieve.
39+
* @return Filter, or null of none found.
3840
*/
3941
Filter findByName(final String name);
4042

4143
/**
4244
* Retrieve all Filters ordered by Name.
45+
* @return all filters ordered by name.
4346
*/
4447
Iterable<Filter> findAllByOrderByNameAsc();
4548
}

0 commit comments

Comments
 (0)