Uses of Interface
io.kroxylicious.proxy.topology.VirtualNode
Packages that use VirtualNode
Package
Description
The router API.
Topology types: cluster structure, node identity, and topology
caching for routers (and potentially filters).
-
Uses of VirtualNode in io.kroxylicious.proxy.router
Methods in io.kroxylicious.proxy.router that return VirtualNodeModifier and TypeMethodDescriptionReturns a virtual node that, when passed toRouterContext.sendRequest(io.kroxylicious.proxy.topology.VirtualNode, org.apache.kafka.common.message.RequestHeaderData, org.apache.kafka.common.protocol.ApiMessage), causes the runtime to send the request to an arbitrary broker on the named route's cluster.RouterContext.nodeForId(int virtualNodeId) Converts an integer node ID from a protocol response body into aVirtualNode.Methods in io.kroxylicious.proxy.router that return types with arguments of type VirtualNodeModifier and TypeMethodDescriptionRouterContext.virtualNode()Returns the virtual node of the broker that the client connected to.Methods in io.kroxylicious.proxy.router with parameters of type VirtualNodeModifier and TypeMethodDescriptionCompletionStage<org.apache.kafka.common.protocol.ApiMessage> RouterContext.sendRequest(VirtualNode node, org.apache.kafka.common.message.RequestHeaderData header, org.apache.kafka.common.protocol.ApiMessage request) Sends a request to a specific broker identified by virtual node. -
Uses of VirtualNode in io.kroxylicious.proxy.topology
Methods in io.kroxylicious.proxy.topology that return VirtualNodeModifier and TypeMethodDescriptionPartitionInfo.leader()Returns the value of theleaderrecord component.Methods in io.kroxylicious.proxy.topology that return types with arguments of type VirtualNodeModifier and TypeMethodDescriptionCoordinators.coordinatorFor(String key) Returns the coordinator for the given key, or empty if the coordinator was not discovered (e.g. the group or transaction does not exist, or the coordinator is unavailable).PartitionInfo.isr()Returns the value of theisrrecord component.Returns the leader for the given topic-partition, or empty if the leader was not discovered (e.g. the topic does not exist, or the partition has no leader).PartitionInfo.replicas()Returns the value of thereplicasrecord component.Methods in io.kroxylicious.proxy.topology with parameters of type VirtualNodeModifier and TypeMethodDescriptionTopologyService.brokerInfo(VirtualNode node) Returns broker metadata (host, port, rack) for a virtual node, or empty if not cached.Constructors in io.kroxylicious.proxy.topology with parameters of type VirtualNodeModifierConstructorDescriptionPartitionInfo(VirtualNode leader, List<VirtualNode> replicas, List<VirtualNode> isr) Defensive-copies the replica and ISR lists.Constructor parameters in io.kroxylicious.proxy.topology with type arguments of type VirtualNodeModifierConstructorDescriptionPartitionInfo(VirtualNode leader, List<VirtualNode> replicas, List<VirtualNode> isr) Defensive-copies the replica and ISR lists.