Skip to content

Commit

Permalink
Fix JNI name of nested classes (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored May 20, 2022
1 parent 7ed1ad8 commit d852182
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public enum ConfigSource

public class ConfigSynonym : JCOBridge.C2JBridge.JVMBridgeBase<Config>
{
public override string ClassName => "org.apache.kafka.clients.admin.ConfigEntry.ConfigSynonym";
public override string ClassName => "org.apache.kafka.clients.admin.ConfigEntry$ConfigSynonym";

public string Name => IExecute<string>("name");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ public class DeleteAclsResult : JCOBridge.C2JBridge.JVMBridgeBase<DeleteAclsResu

public class FilterResults : JCOBridge.C2JBridge.JVMBridgeBase<FilterResults>
{
public override string ClassName => "org.apache.kafka.clients.admin.DeleteAclsResult.FilterResults";
public override string ClassName => "org.apache.kafka.clients.admin.DeleteAclsResult$FilterResults";

public List<FilterResult> Values => IExecute<List<FilterResult>>("values");
}

public class FilterResult : JCOBridge.C2JBridge.JVMBridgeBase<FilterResult>
{
public override string ClassName => "org.apache.kafka.clients.admin.DeleteAclsResult.FilterResult";
public override string ClassName => "org.apache.kafka.clients.admin.DeleteAclsResult$FilterResult";

public AclBinding Binding => IExecute<AclBinding>("binding");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public KafkaFuture<PartitionProducerState> PartitionResult(TopicPartition partit

public class PartitionProducerState : JCOBridge.C2JBridge.JVMBridgeBase<DescribeProducersResult>
{
public override string ClassName => "org.apache.kafka.clients.admin.DescribeProducersResult.PartitionProducerState";
public override string ClassName => "org.apache.kafka.clients.admin.DescribeProducersResult$PartitionProducerState";

public PartitionProducerState(List<ProducerState> activeProducers)
:base(activeProducers)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class DescribeReplicaLogDirsResult : JCOBridge.C2JBridge.JVMBridgeBase<De

public class ReplicaLogDirInfo : JCOBridge.C2JBridge.JVMBridgeBase<DescribeReplicaLogDirsResult>
{
public override string ClassName => "org.apache.kafka.clients.admin.DescribeReplicaLogDirsResult.ReplicaLogDirInfo";
public override string ClassName => "org.apache.kafka.clients.admin.DescribeReplicaLogDirsResult$ReplicaLogDirInfo";

public string GetCurrentReplicaLogDir => IExecute<string>("getCurrentReplicaLogDir");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public KafkaFuture<ListOffsetsResultInfo> PartitionResult(TopicPartition partiti

public class ListOffsetsResultInfo : JCOBridge.C2JBridge.JVMBridgeBase<ListOffsetsResultInfo>
{
public override string ClassName => "org.apache.kafka.clients.admin.ListOffsetsResult.ListOffsetsResultInfo";
public override string ClassName => "org.apache.kafka.clients.admin.ListOffsetsResult$ListOffsetsResultInfo";

[System.Obsolete("This is not public in Apache Kafka API")]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class DescribeLogDirsResponse : JCOBridge.C2JBridge.JVMBridgeBase<Describ

public class LogDirInfo : JCOBridge.C2JBridge.JVMBridgeBase<LogDirInfo>
{
public override string ClassName => "org.apache.kafka.common.requests.DescribeLogDirsResponse.LogDirInfo";
public override string ClassName => "org.apache.kafka.common.requests.DescribeLogDirsResponse$LogDirInfo";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ public static TopicNameCollection OfTopicNames(Collection<string> topics)

public class TopicIdCollection : TopicCollection
{
public override string ClassName => "org.apache.kafka.common.TopicCollection.TopicIdCollection";
public override string ClassName => "org.apache.kafka.common.TopicCollection$TopicIdCollection";

public Collection<Uuid> TopicIds => IExecute<Collection<Uuid>>("topicIds");
}

public class TopicNameCollection : TopicCollection
{
public override string ClassName => "org.apache.kafka.common.TopicCollection.TopicNameCollection";
public override string ClassName => "org.apache.kafka.common.TopicCollection$TopicNameCollection";

public Collection<string> TopicNames => IExecute<Collection<string>>("topicNames");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public Headers(params object[] args)
public class HeaderTransform : JVMBridgeBase<HeaderTransform>
{
public override bool IsInterface => true;
public override string ClassName => "org.apache.kafka.connect.header.Headers.HeaderTransform";
public override string ClassName => "org.apache.kafka.connect.header.Headers$HeaderTransform";

public Header Apply(Header header) => IExecute<Header>("apply", header);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class TopologyDescription : JVMBridgeBase<TopologyDescription>

public class Subtopology : JVMBridgeBase<Subtopology>
{
public override string ClassName => "org.apache.kafka.streams.TopologyDescription.Subtopology";
public override string ClassName => "org.apache.kafka.streams.TopologyDescription$Subtopology";

public int Id => IExecute<int>("id");

Expand All @@ -42,7 +42,7 @@ public class Subtopology : JVMBridgeBase<Subtopology>

public class GlobalStore : JVMBridgeBase<GlobalStore>
{
public override string ClassName => "org.apache.kafka.streams.TopologyDescription.GlobalStore";
public override string ClassName => "org.apache.kafka.streams.TopologyDescription$GlobalStore";

public Source Source => IExecute<Source>("source");

Expand All @@ -53,7 +53,7 @@ public class GlobalStore : JVMBridgeBase<GlobalStore>

public class Node : JVMBridgeBase<Node>
{
public override string ClassName => "org.apache.kafka.streams.TopologyDescription.Node";
public override string ClassName => "org.apache.kafka.streams.TopologyDescription$Node";

public string Name => IExecute<string>("name");

Expand All @@ -64,7 +64,7 @@ public class Node : JVMBridgeBase<Node>

public class Source : Node
{
public override string ClassName => "org.apache.kafka.streams.TopologyDescription.Source";
public override string ClassName => "org.apache.kafka.streams.TopologyDescription$Source";

public Set<string> TopicSet => IExecute<Set<string>>("topicSet");

Expand All @@ -73,7 +73,7 @@ public class Source : Node

public class Sink : Node
{
public override string ClassName => "org.apache.kafka.streams.TopologyDescription.Sink";
public override string ClassName => "org.apache.kafka.streams.TopologyDescription$Sink";

public string Topic => IExecute<string>("topic");

Expand All @@ -82,7 +82,7 @@ public class Sink : Node

public class Processor : Node
{
public override string ClassName => "org.apache.kafka.streams.TopologyDescription.Processor";
public override string ClassName => "org.apache.kafka.streams.TopologyDescription$Processor";

public Set<string> Stores => IExecute<Set<string>>("stores");
}
Expand Down

0 comments on commit d852182

Please sign in to comment.