Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added interceptorClasses property to Kafka #1456

Closed
wants to merge 2 commits into from

Conversation

lmlynik
Copy link
Contributor

@lmlynik lmlynik commented Feb 9, 2017

Some monitoring tools require to provide the interceptor classes to work

@oscerd
Copy link
Contributor

oscerd commented Feb 9, 2017

hey @lmlynik thanks for the PR :-)

I will review and merge soon :-)

Copy link
Contributor

@oscerd oscerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just need to remove kafka.adoc and update the documentation about the interceptor. The PR looks good.

Waiting for your update @lmlynik

Thanks





Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this file, we have an auto-generated file in src/main/docs called kafka-component.adoc, all the manual changes to documentation must be there. Can you remove this?

@@ -62,6 +62,10 @@
@UriParam
private String clientId;

//interceptor.classes
@UriParam
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add label = "monitoring" as its kinda intended for this kind of things, isnt it?

@@ -102,11 +102,13 @@ public void testAllProducerConfigProperty() throws Exception {
assertEquals("test", endpoint.getConfiguration().getSslEndpointAlgorithm());
assertEquals("SunX509", endpoint.getConfiguration().getSslKeymanagerAlgorithm());
assertEquals("PKIX", endpoint.getConfiguration().getSslTrustmanagerAlgorithm());
assertEquals("PKIX", endpoint.getConfiguration().getSslTrustmanagerAlgorithm());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove this duplicate line?

Remove unneeded lines

added labels to uri options
import org.apache.kafka.clients.consumer.OffsetAndMetadata;
import org.apache.kafka.common.TopicPartition;

public class MockConsumerInterceptor implements ConsumerInterceptor<String, String> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I don't like this idea, is there something in the current Camel repo which can help mocking such functionality like list backed interceptors?

@davsclaus
Copy link
Contributor

Thanks for the PR it has been merged. Do you mind closing this?

@lmlynik lmlynik closed this Feb 12, 2017
zregvart pushed a commit to zregvart/camel that referenced this pull request Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants