Table of Contents

Class Cluster

Namespace
Org.Apache.Kafka.Common
Assembly
MASES.KNet.dll
public class Cluster : JVMBridgeBase<Cluster>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Cluster>
Cluster
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Cluster>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Cluster>.IsAssignableFrom<T>()
JVMBridgeBase<Cluster>.Execute<T>(params T[])
JVMBridgeBase<Cluster>.DynBridgeClazz
JVMBridgeBase<Cluster>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

Cluster()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public Cluster()

Cluster(String, Collection<Node>, Collection<PartitionInfo>, Set<String>, Set<String>)

public Cluster(String arg0, Collection<Node> arg1, Collection<PartitionInfo> arg2, Set<String> arg3, Set<String> arg4)

Parameters

arg0 String

String

arg1 Collection<Node>

Collection

arg2 Collection<PartitionInfo>

Collection

arg3 Set<String>

Set

arg4 Set<String>

Set

Cluster(String, Collection<Node>, Collection<PartitionInfo>, Set<String>, Set<String>, Set<String>, Node)

public Cluster(String arg0, Collection<Node> arg1, Collection<PartitionInfo> arg2, Set<String> arg3, Set<String> arg4, Set<String> arg5, Node arg6)

Parameters

arg0 String

String

arg1 Collection<Node>

Collection

arg2 Collection<PartitionInfo>

Collection

arg3 Set<String>

Set

arg4 Set<String>

Set

arg5 Set<String>

Set

arg6 Node

Node

Cluster(String, Collection<Node>, Collection<PartitionInfo>, Set<String>, Set<String>, Set<String>, Node, Map<String, Uuid>)

public Cluster(String arg0, Collection<Node> arg1, Collection<PartitionInfo> arg2, Set<String> arg3, Set<String> arg4, Set<String> arg5, Node arg6, Map<String, Uuid> arg7)

Parameters

arg0 String

String

arg1 Collection<Node>

Collection

arg2 Collection<PartitionInfo>

Collection

arg3 Set<String>

Set

arg4 Set<String>

Set

arg5 Set<String>

Set

arg6 Node

Node

arg7 Map<String, Uuid>

Map

Cluster(String, Collection<Node>, Collection<PartitionInfo>, Set<String>, Set<String>, Node)

public Cluster(String arg0, Collection<Node> arg1, Collection<PartitionInfo> arg2, Set<String> arg3, Set<String> arg4, Node arg5)

Parameters

arg0 String

String

arg1 Collection<Node>

Collection

arg2 Collection<PartitionInfo>

Collection

arg3 Set<String>

Set

arg4 Set<String>

Set

arg5 Node

Node

Cluster(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public Cluster(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AvailablePartitionsForTopic(String)

public List<PartitionInfo> AvailablePartitionsForTopic(String arg0)

Parameters

arg0 String

String

Returns

List<PartitionInfo>

List

Bootstrap(List<InetSocketAddress>)

public static Cluster Bootstrap(List<InetSocketAddress> arg0)

Parameters

arg0 List<InetSocketAddress>

List

Returns

Cluster

Cluster

ClusterResource()

public ClusterResource ClusterResource()

Returns

ClusterResource

ClusterResource

Controller()

public Node Controller()

Returns

Node

Node

Empty()

public static Cluster Empty()

Returns

Cluster

Cluster

InternalTopics()

public Set<String> InternalTopics()

Returns

Set<String>

Set

InvalidTopics()

public Set<String> InvalidTopics()

Returns

Set<String>

Set

IsBootstrapConfigured()

public bool IsBootstrapConfigured()

Returns

bool

bool

LeaderFor(TopicPartition)

public Node LeaderFor(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

Node

Node

NodeById(int)

public Node NodeById(int arg0)

Parameters

arg0 int

int

Returns

Node

Node

NodeIfOnline(TopicPartition, int)

public Optional<Node> NodeIfOnline(TopicPartition arg0, int arg1)

Parameters

arg0 TopicPartition

TopicPartition

arg1 int

int

Returns

Optional<Node>

Optional

Nodes()

public List<Node> Nodes()

Returns

List<Node>

List

Partition(TopicPartition)

public PartitionInfo Partition(TopicPartition arg0)

Parameters

arg0 TopicPartition

TopicPartition

Returns

PartitionInfo

PartitionInfo

PartitionCountForTopic(String)

public Integer PartitionCountForTopic(String arg0)

Parameters

arg0 String

String

Returns

Integer

Integer

PartitionsForNode(int)

public List<PartitionInfo> PartitionsForNode(int arg0)

Parameters

arg0 int

int

Returns

List<PartitionInfo>

List

PartitionsForTopic(String)

public List<PartitionInfo> PartitionsForTopic(String arg0)

Parameters

arg0 String

String

Returns

List<PartitionInfo>

List

TopicId(String)

public Uuid TopicId(String arg0)

Parameters

arg0 String

String

Returns

Uuid

Uuid

TopicIds()

public Collection<Uuid> TopicIds()

Returns

Collection<Uuid>

Collection

TopicName(Uuid)

public String TopicName(Uuid arg0)

Parameters

arg0 Uuid

Uuid

Returns

String

String

Topics()

public Set<String> Topics()

Returns

Set<String>

Set

UnauthorizedTopics()

public Set<String> UnauthorizedTopics()

Returns

Set<String>

Set

WithPartitions(Map<TopicPartition, PartitionInfo>)

public Cluster WithPartitions(Map<TopicPartition, PartitionInfo> arg0)

Parameters

arg0 Map<TopicPartition, PartitionInfo>

Map

Returns

Cluster

Cluster