Skip to content

Commit

Permalink
[INLONG-9985][Manager] Support authentication params for pulsar source (
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweng11 authored Apr 15, 2024
1 parent b1de06b commit 4ebe63f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public ExtractNode createExtractNode(StreamNode streamNodeInfo) {
primaryKey,
pulsarSource.getSubscription(),
scanStartupSubStartOffset,
"",
"");
pulsarSource.getClientAuthPluginClassName(),
pulsarSource.getClientAuthParams());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public class PulsarSource extends StreamSource {
@Builder.Default
private String wrapType = MessageWrapType.INLONG_MSG_V0.getName();

@ApiModelProperty(value = "Client auth plugin class name")
private String clientAuthPluginClassName;

@ApiModelProperty(value = "Client auth params")
private String clientAuthParams;

@ApiModelProperty("Reset subscription time")
private Long resetTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ public class PulsarSourceDTO {
@ApiModelProperty(value = "The message body wrap wrap type, including: RAW, INLONG_MSG_V0, INLONG_MSG_V1, etc")
private String wrapType;

@ApiModelProperty(value = "Client auth plugin class name")
private String clientAuthPluginClassName;

@ApiModelProperty(value = "Client auth params")
private String clientAuthParams;

@ApiModelProperty("Reset subscription time")
private Long resetTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public class PulsarSourceRequest extends SourceRequest {
+ " Available options are earliest, latest, external-subscription, and specific-offsets.")
private String scanStartupMode = "earliest";

@ApiModelProperty(value = "Client auth plugin class name")
private String clientAuthPluginClassName;

@ApiModelProperty(value = "Client auth params")
private String clientAuthParams;

@ApiModelProperty("Reset subscription time")
private Long resetTime;

Expand Down

0 comments on commit 4ebe63f

Please sign in to comment.